Linux: kill
32 0 ReplyAlso Linux: zombies, orphans
24 0 ReplyDaemons
10 0 ReplyMeanwhile docker compose: --remove-orphans
9 0 ReplyDon't forget
fork
!4 0 ReplyJust make sure you don't panic()
2 0 Reply
30 1 ReplyThis 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
17 0 ReplyFilthy barbaric PHP developers. It's
Split()
andJoin()
.5 0 ReplyEven the php docs says it "splits" the string when it describes what it does.
It could be a good name for a function that turns a container or object into a lot of variables, but I don't remember php supporting multiple returned values.
1 0 Reply
I loved explode back when I frequently used PHP
1 0 Reply
I love die()! but PHP has exit(), too, and it does the same thing
30 3 ReplyC++ is actually std::exit(), exit() is C.
21 1 ReplyFriends explained that to me, yeah. Oh well
2 0 ReplyTechnically isn’t there semicolon ?
1 1 Reply
MS Developers: Kill all children
18 1 ReplyWell I didn’t wake up today expecting to watch a video about task manager, but here I am.
6 0 ReplyNow watching the Pinball video before going to bed.
5 0 Reply
php, the Dark Souls of the programming languages
13 0 ReplyBecause?
2 1 ReplyY O U D I E D
18 0 Reply
I have never used
System.exit()
orsys.exit()
. What is a use case where you would call these explicitly?6 0 ReplyFor 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 example1
to indicate some error occured you can do that viasys.exit(1)
.Same thing applies to other languages of course.
27 0 ReplyApplications where you aren't using some sort of framework. Usually MVC or other frameworks would handle this or are designed to continuously run.
7 1 ReplyPerl is funnier, as these are valid ways of exiting with an exception:
readFile() or die;
die unless $a > $b;
17 0 Reply
exit()-ing your step-sys already seems pretty explicit...
3 0 Reply
Libdbus: Trying to remove a child that doesn't believe we're it's parent.
5 0 ReplyPHP is so bad even PHP wants to
die()
.2 0 ReplyWhy not simply
throw null
?1 0 ReplyFun fact: there's a shorter way to throw a NullPointerException:
throw null;
Because
throw
throws a NPE if the parameter is null1 0 ReplyThe proper way to do this in C is memset((void*)rand(), rand(), SIZE_MAX).
1 0 Reply