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

Friends explained that to me, yeah. Oh well

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

@yaniv@lemmy.ml
link
fedilink
English
201Y

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

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

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
link
fedilink
151Y

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

readFile() or die;

die unless $a > $b;

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.

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

GrishAix
link
fedilink
171Y

MS Developers: Kill all children

ndguardian
link
fedilink
English
51Y

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

GrishAix
link
fedilink
English
51Y

Now watching the Pinball video before going to bed.

I loved explode back when I frequently used PHP

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

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

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

Linux: kill

Chris
link
fedilink
English
201Y

Also Linux: zombies, orphans

Mirodir
link
fedilink
English
91Y

Daemons

ℛ𝒶𝓋ℯ𝓃
link
fedilink
English
31Y

Crypt

Don’t forget fork!

@ehrenschwan@feddit.de
link
fedilink
English
81Y

Meanwhile docker compose: --remove-orphans

@dmxk@lemmy.ml
link
fedilink
English
31Y

Just make sure you don’t panic()

@kr0n@lemmy.ml
link
fedilink
English
121Y

php, the Dark Souls of the programming languages

@phoenixz@lemmy.ca
link
fedilink
English
11Y

Because?

Dandroid
link
fedilink
English
141Y

Y O U D I E D

@flashgnash@lemm.ee
link
fedilink
English
31Y

I heard the sound when I read this

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

throw null;

Because throw throws a NPE if the parameter is null

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.6K Comments
  • Modlog