FoxTrot Classics by Bill Amend for September 27, 2024

  1. Grandbudapesthotel cr alamy
    Imagine  2 months ago

    The AI made him do it.

     •  Reply
  2. Badger 4 360
    sirbadger  2 months ago

    She should tell him that if he rewrites that in assembly language, she’ll accept it.

     •  Reply
  3. 69d0b071 fa4d 4ec7 b51d 0862919e3c88
    soundcomm  2 months ago

    Well, he already wrote it once in the code, so perhaps “count <=” could be 499!

     •  Reply
  4. Missing large
    pwil3058  2 months ago

    If he’s so smart why didn’t he write the code in Rust?

     •  Reply
  5. Img 1931
    Sanspareil  2 months ago

    Nice “C” code, brings back memories!

     •  Reply
  6. Missing large
    Benhamean  2 months ago

    There’s no way Jason wouldn’t start his count variable at 0

     •  Reply
  7. Missing large
    cpiller Premium Member 2 months ago

    I’m loving all these geek critiques!!!

     •  Reply
  8. Triscele
    txmystic  2 months ago

    would have been cooler if he used some formatting parameters…

     •  Reply
  9. Apollo 11 launch 04
    Steverino Premium Member about 2 months ago

    C Señor.

     •  Reply
  10. Missing large
    Alverant  about 2 months ago

    To work off @sirbadger comment, he should do it in assembly, C#, python, ruby on rails, PHP, and (for history’s sake) ASP and ColdFusion.

     •  Reply
  11. Missing large
    John Jorgensen  about 2 months ago

    It’s clever enough that I’d accept it. Also, why is she giving out the old Bart Simpson punishment in, when did this first run, 2003?

     •  Reply
  12. Images 3
    Strawberry King  about 2 months ago

    She’s got no sense of humor.

     •  Reply
  13. 20200319 192925
    IndyW  about 2 months ago

    I LUV this kid’s style. I would have wrote it in PASCAL or Tiny BASIC.

     •  Reply
  14. Img 0808
    Brilliant_Birdie   about 2 months ago

    Impressive though!

     •  Reply
  15. 689 6897683 blue rebel alliance logo png transparent png
    KEA  about 2 months ago

    Is that some variation of “C”? It’s one language I haven’t learned. (my programming days got Way back)

     •  Reply
  16. Greg backlit
    mindjob  about 2 months ago

    It’s not the accuracy, it’s the length of the assignment needed

     •  Reply
  17. Missing large
    dflak  about 2 months ago

    This is why I like this strip: I like geek.

     •  Reply
  18. Picture
    M.K.Staffeld  about 2 months ago

    That look of ’I’ve lost count of how many times he’s done this’

     •  Reply
  19. Gcav
    Brian  Premium Member about 2 months ago

    It’s pretty well-formed code, but there are some things that would get a ding on a peer review.

    1. The main thing is that unintialized “count” variable. That’s bad in C, and most compilers would issue a warning for that. As this is ISO standard C, you can just declare and init the variable in the control:

    for (int count = 1; count <= 500; ++count)

    2. In C, for() loops should start at 0 unless there are very good reasons to do something else. None are apparent in the code as written.

    3. I’d also suggest using puts() rather than printf() for efficiency reasons. Now, if he wanted to number the output statements, then printf() would be appropriate as would starting the variable at 1:

    printf(“%d. I will not throw paper airplanes in class.\n”, count);

     •  Reply
  20. Mural me75
    mirwin49 Premium Member about 2 months ago

    A classmate of mine did this in BASIC in the late 70’s. It wasn’t for paper planes but was close enough. And just as successful.

     •  Reply
  21. Grand canyon picture
    Ricky Bennett  about 2 months ago

    The teacher gave him a C for the assignment…

     •  Reply
  22. Donald duck2
    gmu328  about 2 months ago

    those were the days when we first learned how coding worked

     •  Reply
Sign in to comment

More From FoxTrot Classics