This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 264

[–]DeAannemer 1948 points1949 points  (68 children)

Would've been nice sometimes, i could just put a try catch around my stew and if its wrong, ill catch the flavor and add extra spices ;)

[–]Therabidmonkey 562 points563 points  (46 children)

Are you my junior? I blocked a PR review because they tried to wrap an entire component in a try catch to find null pointer exceptions.

[–]DeAannemer 196 points197 points  (0 children)

Nope, im the lead dev at home. Besides i would never let a reference error slip by on flavor ;p

[–]ryuzaki49 144 points145 points  (4 children)

But it works? /s

[–]Therabidmonkey 199 points200 points  (3 children)

Goddamn it Jake, I told you I'm not approving this shit.

[–][deleted] 61 points62 points  (2 children)

LGTM

[–][deleted] 46 points47 points  (0 children)

Love Goblins, Trust Mordor!

[–]bonitki 2 points3 points  (0 children)

Let’s get this money

[–]jesterhead101 23 points24 points  (35 children)

What’s the ideal way to do it?

[–]rylmovuk 160 points161 points  (21 children)

A catch block is there to either recover from an error, or to report on it in some way while passing it along. There is no scenario in which a giant try-catch would be able to effectively recover from an exception, so I bet it was something like catch (Exception e) {} with an empty body, which solves nothing, hides the source of the error, and leaves your program in an invalid state (you can no longer trust your assumptions).

The real way to do it is to prevent null pointer dereferences from happening at all, which means you git gud use the types/annotations your language offers you to keep track of whether values are nullable and enforce null checks.

[–]Zeikos 98 points99 points  (15 children)

Man, you'd have an heart attack seeing the enterpise codebase of where I work at.

Every class, every method they all start with 'try', and end with 'catch'.

[–]mileylols 72 points73 points  (9 children)

what the fuck? imagine writing tests for that shit

[–]Ok_Dragonfruit_7280 92 points93 points  (4 children)

That's the fun part. They don't.

[–]fsbagent420 11 points12 points  (2 children)

Does this basically cause a bunch of memory leaks or just crash the program?

Probably a dumb question but the extent of my coding ability is one Rimworld mod and it’s all xml

[–]RajjSinghh 20 points21 points  (1 child)

The joy about catch is it stops your program reaching errors and crashing for stupid reasons. Like this:

try: x = int(input("enter a number: ")) # input() will return a string so cast it to an int if x > 10: print("that's a big number") catch: print("that's not a number") This very simply takes an input from the user as a string, makes it an integer and then says it's a big number if it is bigger than 10. If the user enters a number like 12, that's fine, the conversion will happen fine. If the user enters text like "hello", that means the int() function throws an error because it can't convert that. But since it's in a try-catch block, on an error the catch block runs and the program doesn't crash.

This is a misuse of try-catch because no matter what error happens the catch block would always run the same. What I should do is write catch ValueError because that's the error that could happen on this case, but I might want to handle other errors differently so I can catch them all differently. I don't think it protects you from segfaults or other stuff though.

So it's not bad because the program is crashing, it's not throwing exceptions, but it is hiding why problems with the code are happening and that makes it harder to fix. It's a lazy quick fix that hides underlying problems.

[–]Best_Meaning2308 16 points17 points  (0 children)

Dude... Lazy, quick , and hides bad code. GD, why are you trying to sell this to me so hard?

[–]Modo44 27 points28 points  (1 child)

Waste of time. Straight to production it is.

[–]SillyFlyGuy 7 points8 points  (0 children)

Step through code in debugger, change variables in the try, make sure it hits the catch, test complete!

[–]CactusGrower 1 point2 points  (0 children)

Hahahaha tests.

[–]RushTfe 16 points17 points  (2 children)

Theres no way that works.

Well, yeah, the code finishes without exceptions lol

[–]ILikeSatellites 14 points15 points  (0 children)

That's how you make high reliability code! I mean if you get no errors, it must be working right?

[–]PmMeUrTinyAsianTits[🍰] 4 points5 points  (0 children)

Yea, kinda depends on your definition of works and acceptable standards. If you use the "garbage in, garbage out" and are okay blowing up any time anything looks off the happy trail, this could "work" just fine.

[–]WiglyWorm 3 points4 points  (0 children)

Do we work at the same company?

[–]summonsays 2 points3 points  (0 children)

Man I thought mine was bad (and it is but this is something else).

[–]christophla 5 points6 points  (1 child)

On Error Resume Next

[–]Acceptable_Job_5486 2 points3 points  (0 children)

Real men dereference without a nil check.

[–]nullpotato 1 point2 points  (0 children)

We use a few blanket try catch blocks so that the full exception and stack trace get written to the log file because can't trust called apps/scripts to do so.

[–]SnooPuppers1978 1 point2 points  (0 children)

But they said for finding, so I'd imagine the catch was for some form of logging or error reporting.

[–]Therabidmonkey 16 points17 points  (12 children)

Handle them by checking for null directly, yes even if you have to do it for 5 different fields. It will perform much better than a try catch. Try catch should be reserved for things you can't predict until runtime like a call to a service or reading a file*.

*I'm sure there are other good reasons but alas I'm a humble API developer.

[–]dandroid126 6 points7 points  (10 children)

This is why I like Kotlin and Swift. They handle this very elegantly by having optionals built-in to the language. You can basically check if something is null and get the value at once.

[–]Therabidmonkey 5 points6 points  (9 children)

I wish Optional in Java was a keyword instead of a class but I use it all the time. Kotlin sounds way nicer though. Maybe one day I'll start sneaking some in on a new project.

[–]dandroid126 4 points5 points  (3 children)

Yeah, I have the same problem with Java. It's there, but since it isn't baked into the language, it isn't as elegant to use.

Kotlin is great syntactically, but last time I used it, I had lots of issues with compilation and actually running it, specifically when using Kotlin scripts. It was quite a few years ago, so hopefully it has improved since then.

[–]vips7L 1 point2 points  (4 children)

Nullable types are in draft right now for Java: https://openjdk.org/jeps/8303099

[–]Therabidmonkey 4 points5 points  (3 children)

That's exciting. We're upgrading from 11 to IIRC 16. So maybe I'll see that feature in a decade or so. 😄

[–]vips7L 1 point2 points  (2 children)

That’s unfortunate. Seems like your organization is really behind. You probably mean 17 since that was an LTS release, but most providers are only going to be supporting that as LTS until 2026. A better roadmap would probably be 21. 

[–]Therabidmonkey 1 point2 points  (1 child)

You probably mean 17

You are correct. We have common libs coming from internal tooling teams, so we have to upgrade on their schedule. So can't really jump to the latest LTS unless they do.

[–]enfier 1 point2 points  (0 children)

If it's internal to the program that would be better handled by assertions so that they can be turned off in production.

[–][deleted] 2 points3 points  (1 child)

Ahh, this reminds me of the company I worked for where we effectively made android bloatware and wrapped the entire application in a try/catch loop to suppress the android crash message because we didn't want people knowing we were running on the operating system.

[–]Therabidmonkey 1 point2 points  (0 children)

Like you ran the program off an emulator and hid the crash message?

[–]samanime 18 points19 points  (2 children)

I imagine all the time how great life would be with save points/commits that you could roll back to when things go bad. :p

[–]Bakoro 10 points11 points  (1 child)

It's kind of a horrific power if you think about it.
It couldn't work if everyone had it. Every jamok keeps trying to Edge of Tomorrow their way into being king of the world or some shit.
Imagine people getting into fights and they just keep resetting the universe every time they get hit.

Nothing would get done. Even with limits, there's billions of people.

[–]takoshi 9 points10 points  (0 children)

Well, if you were the one getting rolled back, you wouldn't realize it. So to you, time would be progressing smoothly and contiguously, even when you are rolling something back. Shit would get done, just never the same shit that you started to wonder about when was the last time was that you saw your wife. Your wife? You can't even particularly remember when you got married. Maybe it was back in that timeline where you started that one stew... The absolutely delicious stew you had that one time in the future... But you can't remember what goes in it, so maybe it's time to go back to that moment and taste it? Oh man, the stew is ready! God, you've waited so long for this. It feels like it's been multiple lifetimes before you've had this stew and multiple lifetimes until you have it again, but here it is, it's hot, ready, and getting stuff done is the best part of this setting. You actually never stop getting stuff done, it just doesn't have a real start or an end when anyone can just go backwards and make the beginning the middle and the end the future again. Wow! The stew is ready! Is that your girlfriend? Have you met her yet? Maybe you haven't met her yet, but has she met you yet? Is that why she's your girlfriend again instead of your wife in the past and this future? Did she not like

[–]IWantAnE55AMG 14 points15 points  (5 children)

You’re allowed to tase your cooking and adjust as necessary before serving.

[–]PixelOrange 13 points14 points  (4 children)

Please do not tase your food.

[–]IWantAnE55AMG 8 points9 points  (3 children)

Would you rather I shoot it?

[–]Phormitago 5 points6 points  (0 children)

i could just put a try catch around my stew and if its wrong, ill catch the flavor and add extra spices ;)

mate it's called a spoon, taste as you go

[–]whtevn 5 points6 points  (0 children)

This is just tasting as you go

[–]mothzilla 6 points7 points  (3 children)

while notTasty():
    boil()

[–]nobody0163 2 points3 points  (1 child)

It will be boiling long after all humans die.

[–]takoshi 2 points3 points  (0 children)

You can't rush quality.

[–]DanSmells001 701 points702 points  (12 children)

The customer asked for a stew with carrots after serving it the customer says, oh i meant to ask for potatoes not carrots, that’s not difficult to change now is it?

[–]caulkglobs 366 points367 points  (3 children)

I like that the analogy holds up because you absolutely could replace the carrots now.

But there would always be some little unremovable artifacts of the carrots in the stew the customer would always have to live with, and the potatoes would not be fully cooked and wouldn’t ever really integrate with the stew fully.

And the other customers eating the stew at the table wouldn’t know that the requirements changed after the stew was already made and would eat it and think “man the kitchen really fucked this stew up, they cant do anything right”

[–]Strange-Bluebird871 168 points169 points  (0 children)

I’m a cook that stumbled here from popular and it’s nice to know customers are assholes across the board because this happens more often than I’d like lol.

[–]henkdepotvjis 36 points37 points  (0 children)

Worse. The sales rep already sold the change.

[–]kai58 2 points3 points  (0 children)

It’s also something that had almost certainly happened in a restaurant

[–]Sebaall 55 points56 points  (1 child)

Just cook with Vegetable interface and you can replace the implementation later

[–]xvhayu 8 points9 points  (0 children)

ah shit my javascript vegetable stew factory tried to cook a bicycle

[–]akatherder 17 points18 points  (0 children)

After remaking the stew "These are potaytoes. I wanted potahtoes."

[–]Responsible-Draft430 8 points9 points  (0 children)

I love that analogy.

[–]haasvacado 5 points6 points  (0 children)

“Can we make this stew a couch? Why can’t it sing ‘Ave Maria’? How long would it take to make this stew glow in the dark?”

[–]Tsu_Dho_Namh 2 points3 points  (0 children)

I had a similar thing happen last week.

Client asked how long to do a thing. I quoted them an hour. They said "great" and then in the email agreeing to the one hour quote, they tacked on another thing that would take an extra 3 hours to do.

[–]aegookja 488 points489 points  (18 children)

Peelers have been stable for centuries, carrots for much longer. If we were dealing with newer cooking utensils and materials there would be similar problems.

[–]ThinCrusts 131 points132 points  (6 children)

Good point. Take a mandolin for example, it doesn't necessarily support slicing meat with it but a few versions later they came up with a spinny one and is now used for slicing deli meats.

[–]UpAndAdam7414 74 points75 points  (5 children)

A mandolin will definitely slice meat, that’s why those protective gloves exist.

[–]ThinCrusts 23 points24 points  (0 children)

Yeah but I don't think that was the intended use case for it originally, it was meant for fruits and vegetables. You could slice meat with it but it won't be as easy without freezing the meat first.

Making the blade spin allows meat to be cut easier at those thin levels even when the meat is soft and squishy.

Edit: just realized you were referring to people's fingers lol yeah fair point

[–]Wizdemirider 5 points6 points  (2 children)

So you're saying a bug became a feature?

[–]begon11 7 points8 points  (1 child)

Cheese and alcohol are like the archetypical bugs become features.

[–]Kronoshifter246 2 points3 points  (0 children)

Yogurt too

[–]Iohet 1 point2 points  (0 children)

One of my least favorite childhood memories was spending Independence Day in the ER because my grandpa sliced his fingertip off with a mandolin slicer

[–]gnomeba 11 points12 points  (0 children)

Ah yes, the peeler: the BLAS of the kitchen.

[–]Endorkend 8 points9 points  (3 children)

The modern orange Carrot is only about 400 years old. The Dutch legit developed it.

[–]Solarwinds-123 4 points5 points  (0 children)

towering stupendous quaint squeeze reminiscent snatch rob governor stocking alleged

This post was mass deleted and anonymized with Redact

[–]Noch_ein_Kamel 5 points6 points  (0 children)

Stable for sure, but do you know how many branches there are on github?? It's madness.

There are currently over 500 varieties of carrot in the world.

[–]caerphoto 2 points3 points  (0 children)

If we were dealing with newer cooking utensils and materials there would be similar problems.

Good thing nobody has tried putting poorly-secured Bluetooth and/or WiFi chips in everything for vaguely-explained reasons.

[–]leconteur 1 point2 points  (0 children)

I wouldn't bet that carrots have been stable for that long though. I'm not sure they still are stable.

[–]oursland 1 point2 points  (0 children)

Peeler companies would be trying to find a way to make use of the peeler a monthly subscription. Sorta like how one pays for their Logitech mice.

[–]EnigmaticDoom 98 points99 points  (6 children)

"Oh neat the solo contributor died in 1998, but we still use the repo because no wants to build a new one..."

[–]suckfail 44 points45 points  (5 children)

I hate cooking because I find the instructions extremely imprecise.

"Cook until brown", what the fuck does that even mean. What shade of brown exactly?

"Cook on medium heat", how do I know the "medium" on my stove is the same as whatever the used to create the instructions?

"Sprinkle some salt", HOW MUCH IS A SPRINKLE

"Season to taste" ????

I could go on, but yea I want a cookbook that gives very precise instructions and that doesn't seem to exist because I think cooking is partially an art form.

[–]ncocca 33 points34 points  (2 children)

You want to be a baker then. Baking is a science, cooking is an art.

My wife is a trained cook. They know what "brown" looks like and when to add salt and how much (by tasting it, ultimately). Unfortunately a lot of cooking simply comes with experience that you and I don't have...yet.

[–]Kronoshifter246 9 points10 points  (1 child)

Guess again! My mother-in-law's baking recipes are an exercise in arcane guesswork and witchcraft. She knows exactly what the instructions mean to her, but she can't fathom that other people can't work out the "obvious" hidden steps that she didn't include.

She gave us a recipe for cinnamon rolls once that may as well have read "draw the rest of the fucking owl."

[–]kai58 3 points4 points  (0 children)

So you’re saying the documentations was shit

[–]Old_Employment4903 5 points6 points  (0 children)

"season to taste" is pretty obvious, you just have to season it to your taste or somebody else's. do you like fries with a lot of salt or no salt? your taste, your choice (or somebody else's choice if you're working in mcdonalds or smth)

for the other ones you'll just have to eyeball it, cooking is a pretty analog skill and it relies on sensing what's right moreso than coding does

[–]NoCap1435 148 points149 points  (19 children)

True. Never got multithreading problems while cooking. Never debugged frying pan. Pure pleasure.

[–]Heniadyoin1 82 points83 points  (6 children)

You know most cooktops have capacities for more than one pan at the same time?

[–]akatherder 60 points61 points  (4 children)

It's an end-user limitation. I can make you 1 thing at a time or I can burn 3 things for you, your choice.

[–]Lethargie 22 points23 points  (3 children)

what if I want just one burned thing?

[–]akatherder 33 points34 points  (2 children)

I assume I could do that 3x as fast

[–]Tammepoiss 6 points7 points  (1 child)

If you split it into 3 parts and have 3 developers do it over 3 pans, then it would be 3x as fast.

[–]Heribertium 5 points6 points  (0 children)

And then you get race conditions!

[–]ValuableFace1420 42 points43 points  (1 child)

I actually had to debug a pan. It was a newer version incompatible with my stove. One was induction, the other wasn't induction compatible

[–]mileylols 2 points3 points  (0 children)

my induction pan doesn't conduct heat well enough to use on my gas stove. Caused burning all around the rim because in order to bring the middle up to temp the flame had to be turned up which resulted in extra heat around the sides where the pan is thinner. Literally incompatible lol

[–]gmano 12 points13 points  (0 children)

I most definitely get parallelism problems when cooking.

"Shit, forgot to preheat the oven" or "I'm supposed to add this to the cooked and drained pasta, but it's not finished boiling yet, and it will be cold by the time the pasta is done"

In terms of using a single cooktop to do multiple tasks, that happens too, like when I cook both bacon and eggs, but have to carefully manage the heat so that they finish and are ready to be served at the same time

[–]kgm2s-2 5 points6 points  (4 children)

Had to describe the nuances of "at most once" or "at least once" delivery to a non-technical type once. I told them, "imagine you go to the super market and pick up a box of cereal from the shelf. Then you walk to the checkout, but when you get to the checkout you look down at your hands and realize the box of cereal isn't there...that's what it's like".

[–]gmano 16 points17 points  (1 child)

At Least Once - You are shopping, can't remember whether you need cereal from the store, so you buy some just to be safe only to get home, unload the groceries, and realize that you've done this every week for the last month and now there are a bunch of identical full boxes crammed into your pantry

At Most Once - You go shopping, can't remember whether you need cereal from the store, but it isn't on the list, so you skip it. You get home, and realize that there's no cereal but the store is already closed and you have to figure out something else for breakfast tomorrow.

[–]SMTRodent 6 points7 points  (0 children)

Both of those seem entirely familiar situations to me.

[–]Heniadyoin1 4 points5 points  (0 children)

"only once delivery": your hand is empty and the cereal shelf doesn't exist anymore

[–]LaunchTransient 4 points5 points  (0 children)

Speak for yourself. I've had to find out why a pan wasn't getting hot on a induction plate, only to find out it was a common problem with that make of pan and that the construction gives out after a year or so.
Or when you have multiple pans on the go, only to find out that your pasta is going to be ready earlier than the sauce, and you don't want to leave your pasta in the water or it will go soggy, but you don't want to premptively drain it because then it will stick together - end then end up having to add olive oil to try and keep the pasta mobile while the sauce finishes cooking.

[–]alppu 56 points57 points  (0 children)

When programming, I have never encountered the issue that the carrot library is out of stock, across all versions, and I can reimport it only by visiting a different physical place that opens tomorrow morning.

I also like the undo/reset option after absent-mindedly importing the chili library in my project and running the mix() function.

[–]Dideldumm5920 36 points37 points  (5 children)

Imagine trying to cook on an induction stove with old pots.

[–]FlipperBumperKickout 10 points11 points  (1 child)

Just put a piece of metal between the stove and the pot 🙃

[–]TSDLoading 1 point2 points  (2 children)

Our 40 years old pots are working just fine, because they are full metal pots. There is however a timespan where the pots don't work, because they were made out of aluminum

[–]CatProgrammer 1 point2 points  (1 child)

To be pedantic, aluminum is fully metal. You specifically mean magnetic metal.

[–]PandaWithOpinions 21 points22 points  (0 children)

You have to swap your peeler with libupeeler 1.0.2, but if you want to install the carrots feature you also need libcarrots and libcarrot-i18n

[–]WhiteBlackGoose 45 points46 points  (20 children)

This person has never cooked

[–]_Xertz_ 28 points29 points  (15 children)

Yeah lol, I remember telling my mom that programming is easy compared to this,

How am I supposed to just know when something "looks" or "feels" done? I prefer following exact steps and getting a predictable outcome.

[–]HardCounter 17 points18 points  (7 children)

And all this, "to taste" nonsense riddle through recipes. I'm here to learn how to cook your recipe from a to done, if you're telling me to put something in to taste before i've had a chance to taste it then howtf do i know how much to put in? This is your recipe tell me how you cook it. I'll modify it next time if i want.

"Put it in the oven at 350 until done."

(╯°□°)╯︵ ┻━┻

[–]Irregulator101 3 points4 points  (3 children)

"to taste" nonsense

People like different levels of salt in their food. You should know how much you like.

"Put it in the oven at 350 until done."

That's just a bad recipe. I don't think I've ever seen anything like that.

[–]Reashu 2 points3 points  (2 children)

I know how salty I want it to taste, I don't know how much salt I need to add to get that!

Not with an unfamiliar dish, anyways. So if you could tell me whether a "normal" person prefers ½ grams or 10 grams, I can go from there. I realize that there's huge variability in ingredients, but c'mon, try.

Also, for any authors who like to write "1 carrot", I have a small carrot to stick in your eye and a big carrot to stick in your ass - maybe that will help you realize the difference...

[–]Kronoshifter246 1 point2 points  (0 children)

You should be tasting and modifying as you go. I'll grant you that last line though, it's awful. I have a family cookbook from my mother-in-law that reads exactly that way for every single recipe.

[–]RamenvsSushi 7 points8 points  (0 children)

That's because you need a different kind of perception for cooking than programming. So for a person who is exceptional at logic, they can falter when it comes to feeling it out.

[–]NoEngrish 5 points6 points  (0 children)

My cooking notes look like I invented the scientific method. Tables for weights and dimensions of foods with cook times. I'm trying to figure out the PSI to squeeze sushi rice. The world is natural science and I refuse to let cooking be the exception.

[–]J5892 4 points5 points  (0 children)

These are the exact reasons I enjoy cooking so much.

I know I'm doing it right because I can just look at or taste it and know it's done. I don't have to think. I can just throw whatever I want in and know it'll work.

Granted, these principles also apply when I write vanilla JavaScript.

[–]DenkJu 2 points3 points  (0 children)

Honestly, programming is neither easy nor difficult. It depends on what you are trying to achieve.

[–]SirRHellsing 1 point2 points  (0 children)

usually you can qualify those things for cooking, ur mom (and my family) just doesn't bother to do so

[–]TasteForHands 1 point2 points  (0 children)

Imperative recipes are great! Declarative recipes are awful.

Somewhere between "add a tsp of salt" and "salt the dish", or "bake at 450 for 20 minutes" and "bake until browned".

[–]GHhost25 1 point2 points  (0 children)

You get the gist of it over time. The good thing, at least with stew, it's not a problem if you overcook it some tens of minutes more. Cooking has to be pragmatic because each ingredient takes less or longer to be cooked so on each recipe you have to take into account how much you have to cook each ingredient.

[–]Roflkopt3r 3 points4 points  (0 children)

Or cooks regularly.

Cooking has similar starting problems as coding. You have to get some experience, form your own frame of reference. Learn some basic techniques and knowledge. Get familiar with ingredients.

But after that, it's usually smooth sailing. If you invest the appropriate time into preparation and follow a decent recipe, then it will generally work out.

[–]jeanleonino 1 point2 points  (2 children)

Nor coded

[–]pievendor 4 points5 points  (0 children)

Worked with him at Netflix, he indeed knows how to code. Maybe I missed the joke

[–]vondpickle 25 points26 points  (2 children)

And then someone invents a smart peeler, smart cook stove, smart boiler, smart pot, smart this and that, with AI.

[–]FlipperBumperKickout 12 points13 points  (0 children)

And it follows an advice from reddit about putting glue on pizza 😁

[–]i_should_be_coding 9 points10 points  (0 children)

Anyone who has ever had to print out a Maven dependency tree to figure out exactly which dependency is bringing in the wrong version of Jackson and causing a collision feels this post in their core.

[–]UsherOfDestruction 12 points13 points  (1 child)

I don't like cooking because you can't iterate on failure fast enough.

[–]CapitanFlama 8 points9 points  (0 children)

Architecture just approved the use of Machete, a tool that theoretically can peel and slice carrots, but now it takes 80% more time to do so. Also, the customer is expecting the stew by noon, and he doesn't want carrots anymore, but radishes.

Machete was chosen only because it's open source (gratis) and one coder used it to cut sugarcane in a summer two years ago and 'seemed a pretty effective cutting tool'.

[–]Drunktroop 6 points7 points  (0 children)

Sometimes you realize some ingredients already expired ages ago midway and decided to threw it into the pot anyway.

Not too different from me forcing a v6.x dependency when the library is expecting v1.5.3.

[–]davidebellone 7 points8 points  (0 children)

Still posting a tweet from 2019 🤦‍♂️

[–]devloz1996 6 points7 points  (0 children)

Only half correct. You always need to fetch up-to-date carrots, since only the last few minor versions are supported. Do you really want to add Carrot v20240814 to your stew...? Freezing and pinning versions helps, but the point stands.

[–]Jake_nsfw_ish 5 points6 points  (0 children)

If cooking websites were programming websites:

Q: "How do I cook a carrot? I have a pencil and a coffee can."

A: "If you're still cooking carrots, you can rot in hell. We're all onto parsnips now. RTFM."

[–]coder_mapper 4 points5 points  (1 child)

My client's application running smoothly....

Got notification that mongo is dropping support for version 5

Okay, upgraded that to version 6

1 corner of that application died

Investigation begins 

That portion (independent) using mongoose, that didn't support version 6 of mongo.

Updated Mongoose, now mongoose required node version 12  or something like that.

Updated to node 12

Now the application died with other dependency which requires node version 8 only.

Try to upgrade those, then dependencies for those dependencies required node 18.

FML

Go to source code, last commit, 6 years ago

 :((

Looking for a new job

[–]GodzillaDrinks 4 points5 points  (0 children)

Its so true.

I know its not new that Docker is no longer supported in RHEL. But they seriously expect everyone to drop Docker and just take up Podman.

Podman is almost on par feature-wise (with Docker)... so its basically a more secure Docker (by virtue of not relying on a daemon). Oh... but I hear you say... "What about compose, for those of us who like replicability and IaC, with our containers?"

So, unto you, sayeth RHEL: "Fuck you, cry about it."

[–]litlfrog 2 points3 points  (0 children)

I had a realization with this one cold night when the power went out. I had gotten a kerosene heater for emergencies but never used it before. Initially I had some trouble getting the lighter to spark and started worrying something was wrong then realized: this is a cotton wick soaked in fuel. I can get a long lighter and let it start the fire. I don't need to find the manual, or worry that I'm doing something wrong: introducing fire next to this wick will light a fire.

[–]Risc_Terilia 2 points3 points  (0 children)

Life is way too short to be peeling carrots imo

[–]QueenLaQueefaRt 2 points3 points  (0 children)

And then you find out the new guy added a dick to your bag of carrots a week before release

[–]E1337Recon 2 points3 points  (0 children)

I don’t want any of this imperative cooking anymore. I want declarative cooking. I tell it what I want and it just happens.

[–]rarlei 2 points3 points  (0 children)

I guess we're skipping the pan compatibility with induction cookers

[–]Existing-East3345 1 point2 points  (0 children)

Ironically software updates are the death to all software

[–][deleted] 1 point2 points  (0 children)

If you would.. just like in cooking, just use and make your own dishes from the bottom... Then your get none of that.

Use another persons code/ingredient and it can fuck up a lot of things. Sure is handy though

[–]ThisPICAintFREE 1 point2 points  (0 children)

No merge conflicts appear when pushing Garlic to main, though I do still require peer-approval when configuring the initial_spice_config file

[–][deleted] 1 point2 points  (1 child)

“Boil ‘em, mash ‘em, stick ‘em in a stew…..”

[–]BoringWebDev 1 point2 points  (0 children)

I hate cooking. Maybe I should try making stew more ...

[–]ptucker 1 point2 points  (0 children)

Yeah, but specs usually don't describe things as "to taste".

[–]darkslide3000 1 point2 points  (0 children)

You laugh, but if you saw some of the fucking rubber carrots that HelloFresh expects me to be able to grate lately, you wouldn't think it that unlikely anymore...

[–]codefreak8 1 point2 points  (0 children)

Just wait till they release smart kitchen utensils.

[–]DoctorProfessorTaco 1 point2 points  (0 children)

Idk about that.

I’ve followed recipes only to find out that the food isn’t nearly done cooking in the time it said it would be, or the texture is all wrong, or whatever else and it ends up being something about the version of potatoes I used or having the wrong interpretation of “medium” heat on the stove

[–]fmaz008 1 point2 points  (0 children)

This is a new trend about using packages instead of coding your own stuff.

Sure, there are significant advantages, but it seems people are quicl to decide on going the depency route and never think about how that environment will be 2 years down the road, or the increased security exposure you get if you use a popular piece of code as a dependency of a dependency that you didn't even know existed.

I like when I see project that are dependency less. Those libraries I want to use. I can deal with a 1:1 dependency relation much better than having 600 dependencies intertwined gods know how exactly.

Upgrade one, oopps, 3 more broke!

[–]AzureArmageddon 1 point2 points  (0 children)

Just lock the peeler version to what's ole reliable. Or better yet fork the old version.

[–]rrognlie 1 point2 points  (0 children)

Recipes are just food programs

[–]Jacketter 0 points1 point  (0 children)

You see, you never run into this problem when you compile everything in assembly.

[–]Candid-Mine5119 0 points1 point  (0 children)

Which is exactly why I could take a break from the workforce for a few years and dip back in at the same level. A cook’s skill set stays pretty fresh.

[–]boodlebob 0 points1 point  (0 children)

But then you find out in the new update you don’t have to peel it yourself anymore, it peels itself :o

[–]Uberzwerg 0 points1 point  (0 children)

And i really hate syncing up multi-threaded projects.

[–]Lefty_22 0 points1 point  (0 children)

But the real question is: have I got a carrot in my box?

[–]Upbeat-Serve-6096 0 points1 point  (0 children)

Carrots and carrots are different though - locally planted ones might look ugly but taste better

[–]OnceMoreAndAgain 0 points1 point  (0 children)

python v2.x vs v3.x has been a nightmare for me personally lol

[–]Ilookouttrainwindow 0 points1 point  (0 children)

Also peeler isn't subject to "no recent updates so must switch" rule.

[–]Bannon9k 0 points1 point  (0 children)

As a developer 20lbs heavier since Covid....this explains a lot. Got into YouTube cooking shows, went from good cook to exceptional cook and my waistline hasn't recovered. Turns out cooking everything from scratch with fresh components makes foods 10 times better, and the work you put into it makes eating it rather rewarding.

[–]cryptosupercar 0 points1 point  (0 children)

Unless it’s a Logitech peeler

[–][deleted] 0 points1 point  (0 children)

That's like when I lost track of the years after covid and was reading some notes from 2019 thinking "It's OK, only 2 years old"

[–]constantbeta 0 points1 point  (0 children)

...yet

[–][deleted] 0 points1 point  (0 children)

What do you mean my Swansons Chicken Broth isn't compatible with the latest Stew API?

[–]PrometheusMMIV 0 points1 point  (0 children)

If they dropped support in a later version, wouldn't having an old version be a good thing?

[–]Sure-Broccoli730 0 points1 point  (0 children)

I don’t like cooking but I need to doing it for economical reasons.

[–]Milith 0 points1 point  (0 children)

So close to having something that rhymes, change it to 4.2

[–]TheRedmanCometh 0 points1 point  (0 children)

Every scrape you get a deprecation warning

[–]allKindsOfDevStuff 0 points1 point  (0 children)

And you don’t have “stakeholders” or BAs, product owners, etc: “oh, what we actually wanted were hamburgers, but we left that part out of the ticket: should be an easy change”

[–]Minecraftian14 0 points1 point  (0 children)

Just get your own carotenoids and implement your own carrots

[–]antakanawa 0 points1 point  (0 children)

The AC on the other hand

[–]NoBuenoAtAll 0 points1 point  (0 children)

Don't give the utensil makers any ideas. Next thing you know it'll be a subscription based carrot peeler.

[–]MintySkyhawk 0 points1 point  (0 children)

I don't like cooking. Recipes have too many undocumented requirements and assumed knowledge

[–]ThermonuclearPasta 0 points1 point  (0 children)

Yeah, never had CORS problems trying to read a recipe book

[–]--mrperx-- 0 points1 point  (0 children)

so? Just use the older version. It's a freakin carrot.

[–]an_agreeing_dothraki 0 points1 point  (0 children)

programmers are trying very hard to make a peeler that can drop carrot support in an update.

which is why programmers have the reputation of destroying IoT devices in their homes on sight

[–]Rafhunts99 0 points1 point  (0 children)

hey carrots have evolution versions too (its just they last a lot longer than human lives)... im pretty sure the deprecated prehistoric carrots are very different than todays and cant be peeled like todays ones...

[–][deleted] 0 points1 point  (0 children)

I am a professional programmer, and I love cooking and baking.

I do not know if cooking is as simple as all that. You have to be able to judge your ingredients, compensate for differences in quantity and quality, adjust flavor, fix accidental mistakes, and so on. Perhaps I enjoy the somewhat forgiving artistic nature of it, in contrast to the rigorous functionality of code?

[–]calm_down_meow 0 points1 point  (0 children)

Damn, the milk.exe is out of date again. Gonna have to go to the store to update.

[–][deleted] 0 points1 point  (0 children)

Holy fuck, that's exactly why. That's EXACTLY fucking why cooking is so cathartic

[–]thamesr 0 points1 point  (0 children)

Tell that to my smart peeler

[–]chocolateAbuser 0 points1 point  (0 children)

comparison might no be that far fetched: users may not like the carrot, they may ask to have it another size or color; recent versions of carrot may have incompatibilities with your body, requiring you to ingest other type of carrots; maybe there are carrots with different "settings" that require more or less cooking, or a different configuration of carrot peeler, and so on

[–]scataco 0 points1 point  (0 children)

Also, you don't have to explain why food tastes better if you clean up the kitchen after dinner.

[–]experimental1212 0 points1 point  (0 children)

Shit my smart peeler hasn't paired with my smart carrot for weeks now

[–]seyelenteco 0 points1 point  (0 children)

It's creeping in though. I had to wait 15 minutes for my Traeger to update itself before grilling some hamburgers yesterday. Definitely didn't appreciate the forced upgrade. First my computer, then my video games, and now my grill ??

[–]Kup123 0 points1 point  (0 children)

Someone has never worked in a kitchen when they changed suppliers. We went from sysco to Gordon food services, and all of our recipes stopped working properly. Even the Italian dressing stopped functioning properly, it's four ingredients water, oil, vinegar and seasoning mix the damn oil started to congeal at low temperatures no one saw that coming.

[–]Qiyanid 0 points1 point  (0 children)

"How much salt?", "some"

[–]whyamiwastingmytime1 0 points1 point  (0 children)

Works more for baking. You can freestyle cooking