609
you are viewing a single comment's thread
view the rest of the comments
[-] arctanthrope@lemmy.world 73 points 1 day ago

I'm sure these topics become relevant at some point, but I'm doubtful that it's absolutely necessary to address them in an intro course. how does leftist ideology help kids understand what a while loop does

like, literacy can do all of these things too, that doesn't mean you have to introduce those concepts at the same time as the abc's

[-] dejected_warp_core@lemmy.world 1 points 1 hour ago* (last edited 1 hour ago)

The distinction here is programming vs computer science. You're correct that it's not strictly necessary, but it really depends on the area of study. Please allow me a small rant about the distinction - this isn't directed at you.

Programming, honestly, could be taught like a trade. It's a skillset and a craft, with best practices and even regulations in some industries. But one doesn't need to know anything about how we got here or the fundamentals that make a computer work electronically, in order to write code.

Computer Science necessarily tracks back through the history of computing, in order to provide a grounding in how all this stuff ticks. You can't talk about Babbage without Ada Lovelace, you can't talk about Alan Turing without what the government did to him, and you can't bring up ARPANET or the internet without talking about Berkley techno-hippies. Every step of the way are people taking capitalist and government interest and subverting it to meet more worldly and socialized goals. Everyone in this story has an agenda and, shocker, the smartest people tend to dominate in this field and reliably don't fuck with conservative nonsense.

[-] JasonDJ@lemmy.zip 11 points 13 hours ago* (last edited 3 hours ago)
basket = []
for pos in billionaires: 
    if pos not in basket: 
-       basket += guillotine(b)
+      basket += guillotine(pos)  # Corrected iterable naming
[-] trublu@lemmy.dbzer0.com 6 points 5 hours ago
basket = [ guillotine(billionaire) for billionaire in population ]
[-] abc@suppo.fi 1 points 4 minutes ago* (last edited 3 minutes ago)

Haha, that's either horrible if you don't know what you just did there or brilliant parody if you did.

[-] Randelung@lemmy.world 7 points 5 hours ago

Almost. You just committed genocide.

[-] JasonDJ@lemmy.zip 2 points 3 hours ago* (last edited 3 hours ago)

~~Nah he'll get a TypeError.~~ Not seeing why, honestly...

Unless you consider the merciless and systematic execution of all billionaires to be genocide...which I guess is technically fair...but it's for a good cause! (...said every genocidist ever...)

Of course, I changed the name of the iterable...

And we're talking about intro to compsci...getting a bit ahead of ourselves going right from loops to comprehension.

[-] Strawberry 3 points 1 hour ago
basket = [ guillotine(human) for human in population if is_billionaire(human) ]

There, now you're not killing everyone on Earth

[-] JasonDJ@lemmy.zip 2 points 1 hour ago* (last edited 1 hour ago)

This is why we don't test in prod.

[-] pheelicks@lemmy.zip 3 points 1 hour ago

He just called everyone in the population a billionaire and executed them without actually checking if they are in fact billionaires. Somewhat too close to reality in some scenarios for my taste...

[-] Randelung@lemmy.world 5 points 2 hours ago* (last edited 2 hours ago)

Nope, billionaire is a designator, not a discriminator. They're iterating over population and decapitating everyone regardless of wealth. ;)

It's missing an if <someOtherDesignatorForPopulatioMember> in billionaires in the comprehension.

[-] bort@sopuli.xyz 5 points 22 hours ago

in my first semester of compsci we learned about chomsky hierarchy pretty much on day one, while we learned about while loops like a month later.

this post was submitted on 04 Aug 2026
609 points (100.0% liked)

Microblog Memes

11930 readers
1022 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

RULES:

  1. Your post must be a screen capture of a microblog-type post that includes the UI of the site it came from, preferably also including the avatar and username of the original poster. Including relevant comments made to the original post is encouraged.
  2. Your post, included comments, or your title/comment should include some kind of commentary or remark on the subject of the screen capture. Your title must include at least one word relevant to your post.
  3. You are encouraged to provide a link back to the source of your screen capture in the body of your post.
  4. Current politics and news are allowed, but discouraged. There MUST be some kind of human commentary/reaction included (either by the original poster or you). Just news articles or headlines will be deleted.
  5. Doctored posts/images and AI are allowed, but discouraged. You MUST indicate this in your post (even if you didn't originally know). If an image is found to be fabricated or edited in any way and it is not properly labeled, it will be deleted.
  6. Absolutely no NSFL content.
  7. Be nice. Don't take anything personally. Take political debates to the appropriate communities. Take personal disagreements & arguments to private messages.
  8. No advertising, brand promotion, or guerrilla marketing.

RELATED COMMUNITIES:

founded 3 years ago
MODERATORS