Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Post History

77%
+5 −0
Meta New solution to same challenge in same language: Change existing answer or add new one?

A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy. Now I wonder if I s...

1 answer  ·  posted 3y ago by celtschk‭  ·  edited 1y ago by trichoplax‭

#3: Post edited by user avatar trichoplax‭ · 2023-09-26T19:29:29Z (about 1 year ago)
Typo in title
  • New solution to same challence in same language: Change existing answer or add new one?
  • New solution to same challenge in same language: Change existing answer or add new one?
A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy.

Now I wonder if I should add that solution to my current answer, or instead add a new answer with that different solution.

Note that if it were a mere variation of the old code, it would clearly go to the existing answer, but it is a completely independent solution.

[This][old] is my existing post, and [here][new] you can see my new solution on TIO.

 [old]: https://codegolf.codidact.com/posts/279365/279383#answer-279383
 [new]: https://tio.run/##S9ZNT07@/z/TOjcxM09Ds7o8IzMnVSNTW9vG0MBAszo5I7FIoTg61lbJLbOqyqm0qkpJR6vEtljbREtRUSNT1VjTOjMNSJtqFkebxNoaWGuV2BeUlhRrlGhaFRRl5pWkaSippsTkKelkalrX1v7/DwA
#2: Post edited by user avatar celtschk‭ · 2021-11-16T11:28:43Z (about 3 years ago)
  • A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy.
  • Now I wonder if I should add that solution to my current answer, or instead add a new answer with that different solution.
  • [This][old] is my existing post, and [here][new] you can see my new solution on TIO.
  • [old]: https://codegolf.codidact.com/posts/279365/279383#answer-279383
  • [new]: https://tio.run/##S9ZNT07@/z/TOjcxM09Ds7o8IzMnVSNTW9vG0MBAszo5I7FIoTg61lbJLbOqyqm0qkpJR6vEtljbREtRUSNT1VjTOjMNSJtqFkebxNoaWGuV2BeUlhRrlGhaFRRl5pWkaSippsTkKelkalrX1v7/DwA
  • A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy.
  • Now I wonder if I should add that solution to my current answer, or instead add a new answer with that different solution.
  • Note that if it were a mere variation of the old code, it would clearly go to the existing answer, but it is a completely independent solution.
  • [This][old] is my existing post, and [here][new] you can see my new solution on TIO.
  • [old]: https://codegolf.codidact.com/posts/279365/279383#answer-279383
  • [new]: https://tio.run/##S9ZNT07@/z/TOjcxM09Ds7o8IzMnVSNTW9vG0MBAszo5I7FIoTg61lbJLbOqyqm0qkpJR6vEtljbREtRUSNT1VjTOjMNSJtqFkebxNoaWGuV2BeUlhRrlGhaFRRl5pWkaSippsTkKelkalrX1v7/DwA
#1: Initial revision by user avatar celtschk‭ · 2021-11-16T11:25:13Z (about 3 years ago)
New solution to same challence in same language: Change existing answer or add new one?
A while ago I wrote an answer in C (gcc) to the FizzBuzz challenge. Now I've found a shorter solution for the same compiler, which however uses a completely different strategy.

Now I wonder if I should add that solution to my current answer, or instead add a new answer with that different solution.

[This][old] is my existing post, and [here][new] you can see my new solution on TIO.

 [old]: https://codegolf.codidact.com/posts/279365/279383#answer-279383
 [new]: https://tio.run/##S9ZNT07@/z/TOjcxM09Ds7o8IzMnVSNTW9vG0MBAszo5I7FIoTg61lbJLbOqyqm0qkpJR6vEtljbREtRUSNT1VjTOjMNSJtqFkebxNoaWGuV2BeUlhRrlGhaFRRl5pWkaSippsTkKelkalrX1v7/DwA