• 0 Posts
  • 478 Comments
Joined 9 months ago
cake
Cake day: October 19th, 2024

help-circle
  • The old school method of learning a programming language, database, framework or whatever was to read books and take classes, do a series of exercises that teach you how to use the features, and the errors you get if you don’t do it right. Then you write code that way for like 10-15 years.

    The Information Age method is to find some sample code, copypaste into an editor and hit Compile, then paste compile errors into google and fix them until there are no more. Then hit Run and copypaste/fix runtime errors until there are no more runtime errors. Old-schoolers used to call this hacking, but now it’s called not having time to deeply learn the hot new thing because before you do you’ll have to start over with the next hot new thing.











  • Lovable Sidekick@lemmy.worldtoFunny@sh.itjust.worksAgree
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    edit-2
    8 days ago

    Completely disagree. Summer is my favorite season and would remain so in the complete absence of PR.

    This post reminds me of a friend in the ad business who told me people only think iced drinks taste better because in the early 1900s some advertising genius created a campaign to convince people of that. No, sorry, cold drinks are more refreshing. The ancient Romans thought so too, and used to haul ice down from the Alps, centuries before the advertising industry even existed.



  • Lovable Sidekick@lemmy.worldtoProgrammer Humor@programming.devCoding chess
    link
    fedilink
    English
    arrow-up
    33
    arrow-down
    3
    ·
    9 days ago

    This reminds me of one of my very first programs, a tic-tac-toe game I wrote in high school. It displayed hardcoded grids of Xs and Os and blanks very similar to what’s shown here. This approach worked because of the much more limited move possibilities. The program could always win if it made the first move, and always win or tie if the human moved first, depending on if the human made mistakes. I wish I still had the code.







  • I’ve been making bread regularly for years. A 1-lb loaf costs me about 90 cents USD for ingredients and 15 cents to run the oven. “Nice” Safeway bakery loaves that roughly correspond to what I make cost anywhere from $3-$6, and the whole process takes me 10-15 minutes of actual effort (including cleanup). I don’t count rising and baking times because I’m doing other stuff.

    Having also consumed a lot of packaged food (I’m not a crusader against it) I would say cooking meals from store-bought ingredients costs around half as much. Home-growing vegetables adds a huge amount more work. I did a garden for 2 years, many years ago - it was more of a fun project. On the scale I did it I never felt the hours of labor paid off dollar-wise. And what with mulch and other things gardening is something you can pretty much spend as much money on as you want lol.

    Fun fact: if you go to the deli counter and get them to slice meat for you it’s about half the price of the store-brand deli packs on the shelves, which are the exact same meats, sliced and packaged by the same people. The only difference is you stand there waiting for a minute while they do it instead just grabbing it off the shelf. The high price of even marginal convenience.