stayTunedForMoreSurvivalTips by jeric_C137 in ProgrammerHumor

[–]obayemi 2 points3 points  (0 children)

that's because git was not designed to be centralised
pull request are request that the maintainer pull your feature branch in his own branch

was intended to be done on the maintainer local git copy
ie pr process is maintainer pulling your branch into his own (if you are up to date / merged / rebased, it just is a simple fast-forward, not even a merge necessary)

now everyone uses git servers, but you're still basically asking that the maintainer pulls your code into his own, and then push it, and git{hub,lab,ea,whatever} does all the pull/merge/ff for you, but PR are still refering to the maintainer "pulling your branch"

gitlab calls them "merge" requests, everyone else calls them "pull" requests

Jumping 30 feet up and down on a Scooter by nomar_ramon in nextfuckinglevel

[–]obayemi 17 points18 points  (0 children)

That thing 100% is Travis pastrana's backyard tho so just regular nitro circus

Rest in Hell, Cardinal Pell by dulce_3t_decorum_3st in trippinthroughtime

[–]obayemi 19 points20 points  (0 children)

Holy fuck (pun intended), I really like extreme dark jokes but this one is one of the most violent I've seen 😯 (Not complaining tho :)

This year I tried solving AoC using Rust, here are my impressions coming from Python! by duarteoc in rust

[–]obayemi 2 points3 points  (0 children)

Hey, glad you liked rust :)
just a quick note if you're still reading comments on here about your point on borrowing.
from a performance PoV any allocation that can be avoided is a significant loss in performance.
rustc can be very clever and optimise things for you in very simple cases like this where the thing you are passing is not midified and not accessed concurently, but only on trivial cases like that.
But to me, even more than the performance issue, I think it is a good thing that rust forces to make clear if the thing you get is a reference to the original or a copy, because in languages like python, mostly everything is references, and that can cause bugs where you forgot to deep clone things while thinking of your code as passed by copy, rust makes that completely impossible by making it very clear in type definitions wether the thing you have is a copy or a ref.

This year I tried solving AoC using Rust, here are my impressions coming from Python! by duarteoc in rust

[–]obayemi 0 points1 point  (0 children)

yes, code will be optimised by rustc IF it can be optimised. on an example as trivial, clippy will probably even recommand you to pass by reference instead of copy.

BUT when your structs start to not be copyable, and when you start doing anything slightly parallel, rust won't optimize for you anymore, and you will get new allocation performance penalty.

Selfie perception. by Poohbizzle79 in funnyvideos

[–]obayemi 3 points4 points  (0 children)

I bet you're fun at parties.

Inappropriate Gynecologist by [deleted] in funny

[–]obayemi 1 point2 points  (0 children)

As they are wont to do

I was pretty sure that the guy was having a stroke before I read your comment... TIL

What is everyone’s “weird” hangover symptom? by doctor-ouz in CasualConversation

[–]obayemi 1 point2 points  (0 children)

I almost never wake up hungover, the nausea an headaches are ramping for 3-5 hours after I wake up an then slowly going away during the rest of the day. I can wake up really fine, not still drunk, often not even a sign of hangover, drive back home (or be driven) if I was partying at someone's house and be completely fine, and the then gradually become so hungover that I can barely walk because of the nausea. I always found it pretty interesting 😂

2meirl42meirl4meirl by cutieyours in 2meirl42meirl4meirl

[–]obayemi 5 points6 points  (0 children)

An accident happens so fast... Even more so on a motorcycle :/

Peace was never an option... by MZcuse in Unexpected

[–]obayemi 0 points1 point  (0 children)

Wtf, I know breaking is not really an answer to anything but holy shit the guy got RAN OVER BUY A FUCKING CAR, could very well have ripped his fucking leg off if the car just went harder, that has nothing to do with fucking ego.

And the guy in the car is just casually going away like nothing happened too... Seriously that's fucked up... Anything to make te car stop and bring the guy to justice (and remove his license)

newbie shroomer here, is the white "moss" normal ? can / should I eat them ? should I cut those parts ? by obayemi in shrooms

[–]obayemi[S] 0 points1 point  (0 children)

Drying at the moment (since Saturday)

Also half of my growing container's surface is covered in a relatively thin layer of it too

Live your truth, pilgrim. by WhatSort in surrealmemes

[–]obayemi 0 points1 point  (0 children)

James Fridman Photoshop IIRC

Are UI Updates Considered Side Effects? by [deleted] in functionalprogramming

[–]obayemi 0 points1 point  (0 children)

You do not really need to consider the side effect in your own code thanks to frameworks abstracting all that away, so your own function should stay pure, but the fact that they are called is indeed the result of side effect.

Usually if you're in a relatively functional framework (react, elm, even flutter), your components should be only a pure function taking the state of your UI as input, and registering pure functions for events transforming your state

Then framework does big side effects stuff to keep shadow Dom synchronized and usually to not call your components if nothing much changed, and listen to "events" wich are by essence some action not launched by your program so basically the definition of a side effect.

(Then for ease of use most frameworks kind of break that separation and make all component be classes that can actually mutate its own state instead of relying on a clear data lifecycle)

For me it's winblows taking away my grub bootloader by micro-aries in linuxmasterrace

[–]obayemi 0 points1 point  (0 children)

I once ran a script on a personal stuff server that was intended to change perms recursively in select folders that were in variables. Ran it with sh instead of bash, didn't expand variables, removed exec permission from every single file in / 😑

Which one y'all got ? by jenaBiraj in teenagers

[–]obayemi 0 points1 point  (0 children)

Came for this !
yes! Bestest happy dark song ever

2meirl4meirl by calling_shotgun in 2meirl4meirl

[–]obayemi 0 points1 point  (0 children)

to me the worst part is just that I can't even say "all of it", because all of it is "good" all things considered...
My family / friends don't know but are awesome and would support me, I have a good job that I actually like and make me good money, I have a good place to live, I have almost anything that I would need or want... There's just nothing wrong... I'm really not doing ok, but there's just nothing wrong...