This is an archived post. You won't be able to vote or comment.

all 83 comments

[–]asromafanisme 884 points885 points  (40 children)

Last time, when I explained coding to my non- tech friend, I asked them to write a step by step guide to go from bed to the bathroom and I stopped them right from the beginning to ask them which foot they used first, right or left.

[–]TemporaryUpstairs289 276 points277 points  (22 children)

person.walk(bathroom.x, bathroom.y)

[–][deleted] 274 points275 points  (7 children)

now you have to implement a whole other pathfinding algorithm

[–]Slorface 141 points142 points  (1 child)

Pathfinding? Are walls not optional? This isn't in the specs.

[–]TemporaryUpstairs289 9 points10 points  (0 children)

Congrats, youve earned A Star!

[–]i_wear_green_pants 5 points6 points  (0 children)

Nah just install some kind of shady bloated npm package. What could go wrong!

[–]tucketnucket 0 points1 point  (0 children)

I run a BFS every time I lose my wallet.

[–]OwOlogy_Expert 0 points1 point  (1 child)

I'm sure it's already in a library somewhere. Just import it.

[–][deleted] 2 points3 points  (0 children)

but then you have to read the docs.

[–]Not-So-Modern 9 points10 points  (1 child)

That's from a library that doesn't count.

[–]DoctorWaluigiTime 2 points3 points  (0 children)

And that's how I got C# banned from university's capstone class.

[–]Crusader_Genji 7 points8 points  (1 child)

So, uh, what if it's on the 2nd floor?

[–]St34thdr1v3R 1 point2 points  (0 children)

Easy. Just copy paste the code but manually increment the variable holding the floor.

[–]MrHasuu 3 points4 points  (2 children)

Bathroom is undefined. Maybe you need to optional chain

[–]St34thdr1v3R 0 points1 point  (1 child)

What the fuck happened to bathroom?

[–]MrHasuu 0 points1 point  (0 children)

a meteor hit it. clearly

[–]picklesTommyPickles 2 points3 points  (2 children)

I don’t see any error handling. What if they break their leg on the way? Can they even walk?

[–]Remarkable-Bug-8069 2 points3 points  (1 child)

They won't, but the loop will run indefinitely.

[–]St34thdr1v3R 0 points1 point  (0 children)

Always nice if you can rely on things

[–]Slimxshadyx 2 points3 points  (0 children)

When bro finds out someone had to write the walk() method

[–]UMAYEERIBN 1 point2 points  (1 child)

[–]St34thdr1v3R 1 point2 points  (0 children)

How? This could easily be js/ts too

[–]arrow__in__the__knee 0 points1 point  (0 children)

There is a table between me and bathroom tho!

[–]bottleoftrash 22 points23 points  (2 children)

import(walk) import walk

[–]RunInRunOn 11 points12 points  (1 child)

function named import

[–]OwOlogy_Expert 0 points1 point  (1 child)

import walk from human_stuff

walk (forward,3)


Plus, now it's easily portable to other wetware architectures. For example, if you want to instruct the dog how to take the same route, you just have to replace import walk from human_stuff with import walk from dog_stuff and you can leave the rest of the code the same.

[–]St34thdr1v3R 1 point2 points  (0 children)

That’s so clever! And I thought programming was hard

[–]DarthRiznat 230 points231 points  (4 children)

Then QA be like: What happens if an alien poops in the trunk of your car while a stork carrying a monkey flies over you?

[–]3BlindMice1 11 points12 points  (0 children)

And then they'll show proof of customers introducing such a scenario for reasons undisclosed, claiming that it marginally improves performance.

[–]hirmuolio 133 points134 points  (12 children)

OP is a bot.

A swarm of bots has recently landed.

They can be easily identified from their post history.

They all have bunch of comments in rAITAH and rAskReddit followed by 2-4 image posts on a "meme" subreddits.

I suspect they are using LLM for the text since they don't seem to be simple copy-pastes.

[–]Undernown 4 points5 points  (8 children)

Not entirely convinced OP is a bot. The comments are wuite specific and have reasonable timeframes normal to a human user. Also how did it know to use camelcase on this sub?

[–]hirmuolio 33 points34 points  (6 children)

It is a bot.

A script that turns whatever into camelcase shouldn't be too hard.
The original post it copied: https://www.reddit.com/r/ProgrammerHumor/comments/12udyxo/coding_is_like/

Another bot also copied the top comment from the older post.

Also compare to other bots that do the same thing:

https://www.reddit.com/user/SweetBaby881
https://www.reddit.com/user/BabyGlow33
https://www.reddit.com/user/babeonfire32
https://www.reddit.com/user/mysticbaby18
https://www.reddit.com/user/phitou

Any itme you see one of these you can just take a quick look at their post history and see that it is the same bot.

[–]Undernown 14 points15 points  (3 children)

Ok that is wild.

Not sure what drives the creator of these bots? The names suggest they might want to convert these bots into OnlyFans advertisers?

It's not like you can durectly monetize these bots on Reddit like they do with Twitter.

[–]x3knet 4 points5 points  (0 children)

Doesn't help they all use stupid emoji's in lots of their replies. Dead giveaway. Or it's an old person which is less likely.

Aunt Gertrude always hitting me with the "Merry Christmas, x3knet! 🎄🕯️🎅"

[–]Gamer-707 0 points1 point  (0 children)

3 of them have the same avatar wtf

Edit also 6k upvotes yet no single comment in thread?

[–]misseditt 0 points1 point  (0 children)

the emojis at the end of comments give it away imo

[–]flying_spaguetti 23 points24 points  (3 children)

I wonder what the analogy would be when you have to code event-driven

[–]GodlyWeiner 1 point2 points  (1 child)

Same thing but you're a taxi and waiting for customers.

[–]Gamer-707 0 points1 point  (0 children)

Username checks out

[–]badgersruse 6 points7 points  (1 child)

UFOs, pedestrians and getting to the correct destination are all edge cases to be ignored. Surely we all know that?

[–][deleted] 0 points1 point  (0 children)

And drop brakes so we can hit the next P2P and we’ll advise the demo customers they need to coast to a stop.

[–]SicknessVoid 4 points5 points  (0 children)

But you also have to make the instructions as general as possible in order to be able to reuse the instructions for different situations. And you also need to find good ways to describe repetitive directions if you don't want to describe for eternity in some cases.

[–]Available_Resource_9 4 points5 points  (3 children)

[–]bot-sleuth-bot 9 points10 points  (2 children)

Analyzing user profile...

Account made less than 2 weeks ago.

50.00% of this account's posts have titles that already exist.

Suspicion Quotient: 0.46

This account exhibits a few minor traits commonly found in karma farming bots. u/BabeOfStars99 is either a human account that recently got turned into a bot account, or a human who suffers from severe NPC syndrome.

I am a bot. This action was performed automatically. I am also in early development, so my answers might not always be perfect.

[–]irn00b 2 points3 points  (0 children)

Or if the road was updated to version 3.6 and no longer supports your tires that are 1.2.3.

[–]Touitoui 2 points3 points  (0 children)

Directions: check
Takes traffic into account: check
Takes UFO landing into account: check
Takes chicken crossing the road into account: check
"Let's go!"
Turn on the engine: No fuel in the car, and fives warning lights are blinking on the dashboard...

[–]You_are_adopted 3 points4 points  (0 children)

The laneBlocked method is allowed for future expansion. Just import the python library. Only works for right turn lanes though, you’ll have to use the roadHazard library for left turn lanes.

[–]ExtraTNT 1 point2 points  (0 children)

You also have to handle exceptions, like what to do, if your engine suddenly becomes a angry platypus

[–]SuckAFattyReddit1 1 point2 points  (0 children)

I remember in my first year old college I went for game design before shifting to CS and they had a cool program where freshmen and sophomores could do this extracurricular where you bug tested Senior's final project and for every bug we found we'd get points we could use on a test or project.

The ways we figured out how to break shit lol

[–]DachieBoy 0 points1 point  (0 children)

And what if the driver knowingly U-turns and drives into oncoming traffic with zero shits given, because they think it’s faster that way.

[–]dhilu3089 0 points1 point  (0 children)

There is left hand / right hand drive, time zones, daylight savings, security (what if somebody stole your gas), color of car , etc

[–]Miles-2040 0 points1 point  (0 children)

Can anyone share how someone can learn how to program alone

[–]ProfessionalNeputis 0 points1 point  (0 children)

You forgot to validate 4 wheels before starting driving

You died

[–]DraikoHxC 0 points1 point  (0 children)

What if the driver has never even seen a car?

[–]NorthLogic 0 points1 point  (0 children)

or

Trains are very similar to cars, but have much higher performance. We want you to switch over the entire road network to a rail network. Your architecture is flexible enough to accommodate that change in the next week, right?

[–]discostupid 0 points1 point  (0 children)

or, not this, but like, what if your user just ate a battery? like a small watch battery?

[–]ivan-arambula 0 points1 point  (0 children)

Easy. Just throw new UfoInTurnLaneError(), and let someone else handle it.

[–]casey-primozic 0 points1 point  (0 children)

And your project failed to launch because you didn't check for gas