394
top 29 comments
sorted by: hot top controversial new old
[-] nothacking@discuss.tchncs.de 28 points 1 year ago
[-] chris_hayes@lemmy.ml 21 points 1 year ago

Also Linux: zombies, orphans

[-] ehrenschwan@feddit.de 8 points 1 year ago

Meanwhile docker compose: --remove-orphans

[-] russjr08@outpost.zeuslink.net 3 points 1 year ago

Don't forget fork!

[-] dmxk@lemmy.ml 2 points 1 year ago

Just make sure you don't panic()

[-] dullbananas@lemmy.ml 28 points 1 year ago
[-] epyon22@sh.itjust.works 16 points 1 year ago

This is my favorite. I did php early in my career and for years I would have to Google " equivalent explode/implode" because it was so memorable

[-] TwilightKiddy@programming.dev 4 points 1 year ago

Filthy barbaric PHP developers. It's Split() and Join().

[-] curiosityLynx@beehaw.org 1 points 1 year ago

I loved explode back when I frequently used PHP

[-] yaniv@lemmy.ml 21 points 1 year ago

I love die()! but PHP has exit(), too, and it does the same thing

[-] goodnessme@lemmy.world 19 points 1 year ago

C++ is actually std::exit(), exit() is C.

[-] GandhiTheDerg@pawb.social 2 points 1 year ago

Friends explained that to me, yeah. Oh well

[-] Grishaix@feddit.de 17 points 1 year ago
[-] ndguardian@lemmy.studio 6 points 1 year ago

Well I didn’t wake up today expecting to watch a video about task manager, but here I am.

[-] Grishaix@feddit.de 5 points 1 year ago

Now watching the Pinball video before going to bed.

[-] kr0n@lemmy.ml 12 points 1 year ago

php, the Dark Souls of the programming languages

[-] phoenixz@lemmy.ca 1 points 1 year ago
[-] dandroid@dandroid.app 14 points 1 year ago
[-] flashgnash@lemm.ee 3 points 1 year ago

I heard the sound when I read this

[-] lowleveldata@programming.dev 5 points 1 year ago

I have never used System.exit() or sys.exit(). What is a use case where you would call these explicitly?

[-] niq@discuss.tchncs.de 26 points 1 year ago* (last edited 1 year ago)

For example if you want to set an explicit exit code. Calling python scripts will usually result in an exit code 0 after the script is run. If you want to set a different exit code for example 1 to indicate some error occured you can do that via sys.exit(1).

Same thing applies to other languages of course.

[-] epyon22@sh.itjust.works 4 points 1 year ago

Applications where you aren't using some sort of framework. Usually MVC or other frameworks would handle this or are designed to continuously run.

[-] jsveiga@vlemmy.net 16 points 1 year ago

Perl is funnier, as these are valid ways of exiting with an exception:

readFile() or die;

die unless $a > $b;

[-] name_NULL111653@pawb.social 3 points 1 year ago

exit()-ing your step-sys already seems pretty explicit...

[-] JebanuusPisusII@szmer.info 4 points 1 year ago

Libdbus: Trying to remove a child that doesn't believe we're it's parent.

[-] amanaftermidnight@lemmy.world 2 points 1 year ago

PHP is so bad even PHP wants to die().

[-] silenium_dev@etaorion.org 1 points 1 year ago

Fun fact: there's a shorter way to throw a NullPointerException:

throw null;

Because throw throws a NPE if the parameter is null

load more comments
view more: next ›
this post was submitted on 25 Jun 2023
394 points (98.0% liked)

Programmer Humor

32045 readers
1570 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS