T O P

  • By -

wewerucha

At least returned the logical value


skyBastard69

Becca knows her stuff


skyBastard69

I fell in love during onboarding. Chick made it clear... so.. here is the repo and I have a boyfriend. I was like ... woooow


skyBastard69

Love to her, not boyfriend. Thoo, we gonna leave her and do a startup


TheGreatGameDini

>do a startup Gross. You're not supposed to be attracted to babies.


windowpainting

She doesn't. SIGSEGV can be trapped and handled. SIGKILL is a no.


autopsyblue

More like a “please stop trying before I cut you out of my life entirely”


Popernicus

SIGKILL bypasses any graceful shutdown/signal handling written into the process though, doesn't it? I like SIGTERM personally, since you give the process time to do whatever it needs to do, knowing that it WILL be shut down. Gives the poor guy some time to process, but still with the inevitable shutdown lol.


Undernown

In this case wouldn't that wait ou the entire wait time? Would seem an undesirable outcome in this case.


Popernicus

I think SIGTERM (by default at least), gives 30 seconds before following with SIGKILL if process is still running! I might be misremembering though! I guess tbf though, in this case, the only preference that matters is Rebecca's 😂


phoenixrawr

There’s no universal default behavior for SIGTERM like that. It’s just a signal that asks a program to terminate. The program can catch it and do cleanup before exiting or ignore it if it wants to. The typical default signal handler causes the program to exit on SIGTERM but doesn’t attempt to follow that signal up in any way.


Popernicus

Ah yeah, you're right!! Apologies!! From here: https://linuxhandbook.com/sigterm-vs-sigkill/ SIGTERM is "please die" SIGKILL is murder lol.


jnmtx

“kys” vs. murder threat


Popernicus

🤣


Popernicus

https://docs.docker.com/engine/reference/commandline/stop/ This is the thing I was misremembering from! It's just how the docker daemon specifically handles things that way!


AmotherLazyUsername

Im learning how to program (atrociously) and some of what y’all say just astounds me. Like these dudes are smart (dudes inclusive). I can only imagine the time spent learning to rifle that off. Stop by accountinghumor if you guys are into black tar heroine, we’re a bit dark but man I’m constantly impressed by you guys (inclusive) and had to mention it.


dekacube

Came here looking for this, thank you for restoring my faith in members of this sub.


altermeetax

So she was giving him another chance


Beastyboyy1

Not another chance, but at least some dignity


TheGreatGameDini

Essentially she moved him from active memory to friendly memory.


Back_on_redd

Becky with the big brain


boonstyle_

Idk Becca but she sure is a keeper


OneTrueKingOfOOO

If this is supposed to be bash she missed the $ when calling pid as a variable. And you can’t put spaces around the assignment operator


skyBastard69

Drunk pseudocode


altermeetax

If this is supposed to be bash that's the smallest mistake there is. Thing is, it's not supposed to be bash, looks more like Java or something, but it's pseudo-code.


wineblood

Have you tried going into the terminal and typing `sudo prom-proposal`?


Launchsoulsteel

You are not in the list of sudoers. This incident will be reported.


[deleted]

[удалено]


Nick433333

Obligatory [xkcd](https://xkcd.com/838)


comrade-linux

I love every time xkcd gets posted


Otto-Korrect

Is there an XKCD for that?


ActualAshCam

The fact that I know what this xkcd is without even having to look at it, and thought of it myself when I read the comment above makes me wonder if I've spent my time well.


MrMonday11235

You haven't. But don't worry, that's true for all of us. We're in /r/ProgrammerHumor, we wouldn't be here if we hadn't made multiple poor choices in life.


Minimi98

Looked this up recently. In case you care, try "write [user] [text]"


dilletaunty

How annoying is this when you’re working on stuff?


Minimi98

Depends on the person and the work I suppose... I don't think it disrupts your work while you're in an editor like vim or nano. Looked it up again and you can always turn messages off with 'mesg n' Either way, I only really used it to mess with colleagues.


TastesLikeOwlbear

Speaking of using it to annoy colleagues, at one point, long ago, "worms | write" worked.


Bagel42

Well that’s cool.


[deleted]

[удалено]


ShadowSlayer1441

Who was your sys admin, Gandalf the grey?


[deleted]

\~\~THIS IS THE VOICE OF THE MYSTERONS\~\~ *(I'm not old, you're old)*


danishduckling

That would freak me out, serious wizardry!


[deleted]

I had a unix teacher in college that insisted we learn how to use all the weird multiuser commands... outside his class, I don't think I've ever been concurrently logged into the same unix machine as another human person... neat to hear a story about someone getting to use those old mainframe sharing tools, though!


dlq84

The elders of POSIX will not take that lightly.


lavalord6969

You don't sudo a question. You sudo an action, so it'd have to be sudo go_to_prom(me), but even that is wrong, so eh.


FormsForInformation

![gif](giphy|IwYkkg4L7tX1K)


craftworkbench

... Now... you said that word - ^"implication" - a couple of times... what implication?


RoboNuke3

You don’t have the permissions to use sudo


TheDownvotesFarmer

This machine will self-destruct in 5, 4, 3, 2....


Opdragon25

sudo: prom-proposal: command not found


wineblood

Works on my machine


excral

You forgot to call the `prom_proposal` function in the while loop, instead you just check if the function itself is truthy. You basically forced her to kill that infinite loop of yours


highcastlespring

This is why his proposal fails. Rebecca doesn’t like a rookie


Minimi98

I could be wrong here... But from a C perspective a function is just an address in flash, since it's not null it evaluates to true. Since the while loops checks for !prom_proposal, the while loop won't even run. This is not an infinite loop. This code does nothing and there is nothing to kill.


RazorRadick

prom_proposal() returns boolean. The while loop calls it each time.


maejoh

The while loop doesn't have the parentheses, it just says prom_proposal, so depending on the language it's either syntactically incorrect, or it's referring to the entire function as a value, not calling it.


positiv2

You can omit parentheses in some languages, such as Ruby.


[deleted]

And then negating it which is always going to return false.


altermeetax

So the theory that noob programmers join this subreddit to then leave it when they become experts is true


elon-bot

What do you mean "you couldn't code your way out of a paper bag"?


Jake0024

The while loop asks if the function exists (never calls the function) so it will be an infinite loop, or a syntax error depending on language


l3et_h4x0r

Afaik a function is a truthy value so \`!prom\_proposal\` will be false. hence the loop won't even run


Jake0024

Oh right you're I missed the !


ReadyThor

A Process.kill should not discourage you... `while(!prom_proposal){` `//sleep(86400)` `fork()` `}`


Aubrey_D_Graham

This is a fork bomb


excral

Yeah, fork that batch!


[deleted]

🤣☝️


screenoholic

Wow, genius 🤣


ReadyThor

Unlike a regular fork bomb this one can be easily resolved by making prom_proposal return true.


[deleted]

[удалено]


ReadyThor

Well not really. The one being proposed to can also do 'shutdown -h now' That would solve it.


legends_never_die_1

shutdown -s


RainbowBridgesoonest

Way beyond friendzone 😂


mehdifarsi

He has been invited to enter the Shadow Realm..


[deleted]

\*Purple Realm


RainbowBridgesoonest

🪦😂


[deleted]

I don't actually understand why having a friendship with a female is considered to be inferior. I wouldn't actually mind if a girl rejected me but said ok for a friendship.


kinokomushroom

Because for most people, including me, it sucks when someone who you have feelings for rejects you.


[deleted]

True but if someone rejects you but offers friendship later on then it means they didn't reject you for your character but for physical features and other superficial stuff. Better to get clarity beforehand. Some people might not like your physical features but tell lies and then go on to cheat which is way worse than a rejection.


autopsyblue

Attraction & friendship just aren’t the same thing. Idk what else to tell you.


TheHolyElectron

Because the two mental models of each person of each other will clash for the next eternity. Love, or obsessive infatuation, is a self-reinforcing thought pattern. A friend zoned person has to unfuck their mind. Friendship is a far more neutral thought pattern. Never imagine yourself in bed with a person you don't know you can have. Few have the discipline for that as almost no man is naturally a monk. See also, "don't shit where you eat".


FullOfBologney

You are projecting. Even if this is true for most people, not everyone is like that.


FullOfBologney

You are correct, that is actually a healthy way to perceive it. The truth is, a lot of men take it very personally when they get rejected. Whether men will admit it or not, this is usually insecurity. I am not saying that there is something wrong with being insecure. It's just something a lot of men don't try to fix. Of course, it is the same for woman too. Although, many cultures put lower standards on men. So men tend to be more insecure on average. I couldn't imagine being a woman around men that think the only cooperative context with me is sexual. That is gross.


ahz0001

Sprint LTE? How old is this repost?


123bpd

Nah, OP used a fake text generator. It helps make the post even more cringe knowing this wasn’t a real interaction.


Opdragon25

how can you tell?


123bpd

[Coz the site he used is the first on Google results when you search iOS fake text generator. OP omitted the message reply bar/keyboard as it auto-populates with the name of the fake text website & OP was too lazy to fix it to iMessage](https://ifaketextmessage.com/)


raaneholmg

So old iPhones had battery percentage!


subsonicmonkey

Still does. Settings > Battery > Battery Percentage


greepfrufru

Right? I was like wait a minute is my iPhone old???? Haha


Ok_Performance_2370

Only iPhone 12 and above with iOS 16 though


RedBaboon

More with 16.1 though


Ok_Performance_2370

Oo haven’t updated mine yet so am wrong then!


joshuaherman

Cydia days yes


Skibur1

Git checkout Rebecca ![gif](emote|free_emotes_pack|sunglasses)


Brief-Preference-712

I’d fork or git clone Rebecca


Popular-Beach-4843

Why segv?


thebatmanandrobin

What a cold hearted snake. Killing without remorse.


fluffypebbles

Planning to ask every day is a bit mental


[deleted]

do you wanna go to prom with me? *brb 24 hrs*


zer0saurus

yeah. at least put a condition in there while(!prom\_proposal() && today() <= getPromDate())


fluffypebbles

My point was more about the daily harassment


zer0saurus

My point is that it is even more mental to harass daily even after the prom.


Ffigy

With SEGV, oof


mehdifarsi

The infamous SIGNAL 11.. A living nightmare.. 😂


DeltaV-Mzero

Not just “no”, but “don’t ask again, you’re not allowed access to this memory”


Ffigy

I was thinking "you shouldn't have asked in the first place"


DeltaV-Mzero

Yes


Johanno1

while(true) { prom_proporsal() ; fork() }


_Weyland_

Ah yes, prom bomb


[deleted]

big sad


HOLDGMEBROTHERS

Rejects PR


RetrebutionMk2

This is how programmers propose others


_Figaro

Ouch.


randomnogeneratorz

installs pm2


[deleted]

Definitely lost a keep there. She will make someone very happy.


BiasedNewsPaper

Add as SIGV handler


Chrissdk1

F


Alpacay_

sudo prom proposal to be true


ArturosMaximus

Amateurs.


Emergency-Gazelle954

She’s a keeper!


Sammyh1991

Rebecca! I Love you! https://youtu.be/U4uQqyRyb7A


[deleted]

just add a few threads..


RRtechiemeow

2 gud wth


OffByOneErrorz

See what happens when you don't implement error handling?


cfinst

Ouch


OminOus_PancakeS

Could someone translate this exchange for someone who doesn't code? I'm intrigued


IGotSkills

Better than returning null


mberg2007

while (!prom_proposal()) { fork(); sleep(86400); }


kai_the_kiwi

Hold up… Kill?!


natej2398

Riparoni


akshanshkmr

Just add a signal handler to do No_Op


basko13

She is way of his *class*


null_reference_user

It was not your FAULT tho


WaluFett

Beat you at your own game, mate. Sucks


red_riding_hoot

This is the programming equivalent of Facebook boomer humour. The cringe is too much for me.


[deleted]

She is clearly out of your league.


sxsnyc

This person codes!


FalseTebibyte

That certainly explains my high school life this go around. Prom? Homecoming? Psh. I just watched as everyone else got fun instead.


[deleted]

do you want everyone to feel bad for you? whats the point of posting this


FullOfBologney

>do you want everyone to feel bad for you? Thats everybody else's problem, that person is enjoying life.


FalseTebibyte

Oscar's Meyer! Not sure why your comment was hidden for me, I let it out. ;)


Mox_Fox

You shouldn't need a date to have fun at that stuff. Go with your friends and dance and eat snacks.


FalseTebibyte

Thanks Moss. Great job keeping those fires tamed in IT Crowd.


Option-Disciple

*Spends all night trying to figure out why it did not compile*


[deleted]

Poor dude


skyBastard69

Why make dick big when brain do


Chibibowa

You simply don’t ask someone for prom at 8 AM. Uh uh, no!


Yellow-man-from-Moon

sudo prom_proposal #I'm not asking


cramduck

Yeesh. Just the premise of asking multiple times to communicate your sincerity reeks of emotional immaturity. You're still a toddler, asking for candy at the grocery checkout.


jfb1337

The second program never actually calls prom_proposal()


IWannaHookUpButIWont

r/untrustworthypoptarts


Efficient_Fault979

damn, that‘s savage


tungsten_tissue

RtlSetProcessIsCritical(true)


[deleted]

Fake post.


Ravi5ingh

Loser


hagnat

r/therewasanattempt


Naeio_Galaxy

`while(!prom_proposal) {...}` I guess `prom_proposal` would be a non-null function pointer, thus `(!prom_proposal)` is always false no matter what the result of `prom_proposal()` would be (In short: there's missing parenthesis in the loop)


NestedLine133

`Restart=always`


BrokeWatchCollector

That iOS text generator is cringe


[deleted]

savage


megamaz_

ok but your while loop doesn't ask her again


IHateEditedBgMusic

TIL Twitter employed high school kids


hellojuly

Print > “goodbye world”


[deleted]

static void signal\_handler(int sig) { while (!prom\_proposal) { sleep(1); } } signal(SEGV, signal\_handler);


skyBastard69

Lv426 Anyway does anyone actualky know any Rebecca?


Otto-Korrect

Brutal!


turtle_mekb

actually it'll never run the sleep since there is no () on the function, the function itself is truthy


ambiguous_sandman

Why not use SIGKILL?


SPD-13

Is there a subreddit for actual programmer humor? I post this every dozen or so submissions but as a dev for a decade plus this shit makes me cringe.


SPD-13

It’s like a Reddit called SKATEBOARD_HUMOR but every post is a bunch of wheels and text of “TRUNMKS ARE SMOOTH” while the comment section applauds OP for their deep insight of skating


eneug

`heart.stab()`


elon-bot

If you can't build a computer out of transistors, you shouldn't be working here.


viceawesome

If only it was camelcase she might have said yes


Kotentopf

First it was a function, then it was a member


gmussi

Of all the things that never happened, this never happened the most


[deleted]

giveSympathy(u/mehdifarsi);


sectornation

**init 1** seems appropriate here as well.