Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "throw"
-
Sometimes when I'm writing Javascript I want to throw up my hands and say "this is bullshit!" but I can never remember what "this" refers to
#oldbutgold12 -
Declare variables not wars,
Build packages not walls,
Execute programs not people,
Throw exceptions not stones.12 -
IOS SUCKS!! SWIFT SUCKS !! OBJECTIVE-C SUCKS!! SUCK MY DICK APPLE YOU PIECE OF SHIT !! Why did you have to make the language sooo counter intuitive, and so different from the popular languages you pain in the ass piece of shit, Why can't I throw exceptions from a constructor of a class?? Why do I have to use a fucking struct to just throw exceptions?? Can't class constructions fail you peice of shit?? huh? GOD DAMN IOS MAGGOT DEVELOPERS IF I EVER RUN INTO THOSE FUCKERS IM GONNA FUCKING RAPE EM BURN THEM ALIVE AND HAVE THEM FOR DINNER68
-
Everytime I throw my stress ball (and miss...because sports are hard) at a co-worker, they ALWAYS think I'm throwing an orange at them.8
-
Oh fuck off Google.
YouTube has stories now.
Brb going to throw up in a trash can. The most fucking stupid feature for YouTube.17 -
When anyone tells you some app idea you have already heard a thousand times, do you throw a OutOfFucksToGiveException?5
-
If you come to me, and ask for my opinion about something, then you throw “You’re wrong” at my face. Then why the fuck did you ask me in the first place? Fucking cunt21
-
Today is April 1, 2017. Saturday.
Okay, checking emails.
...
WTF errors in production??
Checking...
Oh...
throw new \Exception('April fools!')
-___-2 -
It's sooo awesome when a challenging project starts giving results. The confidence levels go straight to - THROW ANYTHING AT ME BITCH! I CAN DO IT!2
-
I'm old school. These are the only emojis I use.
:)
:(
:\
And I don't select them I use text...Sometimes I throw in a Kirby flicking people off for good measure.
<('.')^13 -
Developers coding cycle:
Start of Project - "Right, I am going to make this code clean and structured."
Deadline looming - "F**k it, just throw the code in there and get it finished".2 -
You know it's a bad day when you buy a snickers bar, and then accidentally throw away the bar but keep the wrapper....3
-
Sell a 2000€ laptop with all the ram cpu power 4k display you name it.
Throw in a 5400rpm mechanical hdd as standard.5 -
This job advert of an IT company would throw a compile-time error. Perfectly geared to the target group.12
-
If you don't format your code correctly in a time where IDE's do it with a fucking shortcut you should boil a kettle, pour it over your useless fucking head, and throw yourself off the nearest building, you absolute useless cunt.5
-
"The client has no idea what they want, just throw your best guess out there and let's see what they say" -- best project manager in the world2
-
Bad: it works but throws errors
Worse: it doesn’t work but throws errors
Worst: it doesn’t work and doesn’t throw errors7 -
1 bottle of beer on the wall take one away throw it away, 0 bottles of beer on the wall.
0 bottles of beer on the wall take one throw it away, 3560890 bottles of beer on the wall6 -
What the fuck is this. I swear every time I look at this codebase I find something more stupid than I did last time.
I can't wait to throw the whole legacy system away.13 -
bool success = false
if !success {
success = try()
}
if !success {
success = try()
}
if !success {
throw new GiveUpException()
}8 -
A former colleague of mine:
Convert.ToInt("One");
When told that this throw an error, he responded: "No, because see, it compiles".2 -
You copy and ____
You throw it in the ____
MwF4yCq2 is what you need
Combine them and you shall succeed
hQEMAxqqW80aYJqQAQgAl8d8lKc8aOf9g16t3qJdwJTm5P2CzPhx94BUX8/lFrTC
2w0sPjFV1l+M1fau6H19uYHohNeNv1nqHfRyXO7rYylp5Y7YGp2CLpx5ApTSG1a4
lvUccxy5OddnNMlA+s5jDSWRw0j32tv1fQvALS6C/UjtNA7P6+nfEaEZHfSqvoFj
gr5cptzjsmTw3FsWsgMP08WDXRyQ1jgwaqBG/51IOkUL2xexi+xbo0pL2sW2AyoW
UlVmUzzpszNWph5l+UjqUPbihYh+X37mBWRZ/BmhP5AKS0XtMABZZTdH2a+FynAd
7I7XU4TKqBDTbviJbPbfT+2YQH9P4SZOP8sYWeLFxtJaAVr1JUfpCW05S/1VgR2T
WmmP6UVagIRBJGy9vog1Q7j74YXJAiS334JQnSq3RU2q3AQ4S7TO/Lspv3tgkDi/
aARzU8iT0cA+X67TCa74lG51oPWyihEG9OzN
=MT3J48 -
Elixir:
solution = problem |> process |> process_more |> finalize |> format
Java:
New class() implements quantum mechanics; get(); set(); get(); set(); super.fuckshitup(); throw new nonsense 300 line error and crash6 -
Just found this piece of code from one of my coworkers:
restMethod() {
try {
// some complicated logic
} catch (WebApplicationException e) {
throw e;
}
}
Why?!
And btw: Hi fellow devRant ppl! 👋6 -
try {
// code that will someday
// throw an exception. Today is
// not that day.
}
catch(Exception ex) {
// The big day has arrived! BUT...
// I'm a heartless bastard who
// does not log errors.
// Good luck finding me!
}2 -
Honestly I gave Apple a chance and bought an iPhone but oh my fucking god i’m going to throw this overpriced piece of horseshit they call a phone so hard at steve job’s grave that CNN is gonna report it as a meteor strike7
-
<rant>
I swear to god if see another "Here's how I made my amazing new website with Wixs" advert on Youtube, I'm going to throw my laptop out the god damn window!
</rant>8 -
OH FOR HEAVENS SAKE!!!
*I* take care of my food in the department fridge, *NOT* you!
And start to fucking realize:
IT IS CALLED: "Best Before End"
and ABSOLUTELY FUCKING NOT: "Guaranteed To Be Deadly From"
Next time you throw away my perfectly fine food, I'll dig into the reflog, throw a dice and throw away 3 random commits of yours claiming that THEY EXPIRED!
YOU ARSE!5 -
[God creating manager]
God: Take a blood sucking Dracula
Angel: okay
God: Wrap in a human costume
Angel: wait, is that legal?
God: Now make it dumb
Angel: -_-
God: Throw it between intelligent people
Angel: Is everything alright at your home?8 -
Everyone seems to have a stress ball, I have a stress dice that says "Yes", "No", "Take a break", "Tomorrow" and "Maybe". It's good for whenever I don't know I should just quit or throw the PC through the window 😅9
-
Thanks java! FAILURE :java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available5
-
That cringe fest when non IT people throw random phrases related to IT which doesn't even make sense just to impress the audience6
-
Boss: we follow scrum here
Me: yeah, tell that to those shitheads who call themselves "product managers" and throw whatever features they want at us at the middle of the sprint with a fixed deadline, not regarding the team capacity.2 -
By looking at our source code, I see what makes a bad programmer. I see "invalid data" in error logs, guess which of the following 3 conditions caused this:
function somefunc() {
if(condition_1) {
throw "invalid data"
}
if(condition_2) {
throw "invalid data"
}
if(condition_3) {
throw "invalid data"
}
return some_response;
}3 -
Fatal Exception: java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available4
-
You can say what you want but cloud services are awesome. I can literally throw my laptop in a bag, travel to the most beautiful place in the world and work from there.14
-
From Datamation magazine circa 1968. Now you can really geek out your friends. This is the kind of stuff you can throw out at a party to kill any discussion.6
-
Yea, that's seems about right.When the user gives incorrect password,throw an Internal Server Error.
Great API design!2 -
Devrant...
... give me the serenity to accept code that don't work
... The courage to fix code I can
... And the wisdom to find the typo before I throw my pc out of the window.
Amen.2 -
Been away from devrant for almost 8 months, and all these months the app was sitting idle on my phone.
Now, since I am part of industry and have a terrible boss, I am back to throw some anger1 -
OutfofMemoryError thrown while trying to throw OutfofMemoryError; no stack trace available.
What the.... ????
😒4 -
One time, I was working with an org that got a new senior executive from Microsoft. He decided we needed to throw out our application's java stack and replace it with SharePoint. The code error was committing anything other than my immediate resignation.4
-
It's a pain in the ass that you are given a really short deadline with a huge system scope, i think the clients think that i just throw some pixie dust to my pc then it magically code it self.8
-
I am having murderous feeling and wanting to throw everything around me. The fucking internet is slower than a dickless dude to get erection.2
-
Oh PHP, I love your silly quirks ❤️
Error: Use of undefined constant JSON_THROW_ON_ERROR - assumed JSON_THROW_ON_ERROR (this will throw an Error in a future version of PHP)2 -
The seventh fishcake.
Usually, I buy six fishcakes in the weekly shopping. Today, the seller accidentally put on seven, wanted to put back the seventh, but it fell into the egg salad. She took the fishcake and was about to throw it away because no customer would buy a fish cake with egg salad sauce on it. I intervened in time and bought it to avoid throwing food away.
Afterwards, I thought about how sick and decadent it actually is that it would have been perfectly normal to throw food away just because food was sticking on the food.10 -
Trump and Biden flying small Cessna. Biden says: I can throw out a $100 bill and make one person happy. Trump says: I can throw out ten bills and make ten people happy. Pilot says: I can throw out both of you and make 8 billion people happy!6
-
Hey im a fullstack DEVELOPER, not a fullstack DESIGNER, so dont fucking ask a colorblind person to 'just throw a simple design together, it shouldnt take more than 10 minutes'3
-
"In programming mutable state is evil. In future programming we need to avoid mutable state because we will throw cores at our code which will work on it in parallel."
debate.init();21 -
Yes of course, my problem is not having enough memory to throw an exception of not enough memory ...5
-
Prior to becoming a dev, one of my numerous jobs was working at Quiznos. They would often send me outside in the cup costume where I would dance around like a fool.
People would throw things...
What was your pre-dev "career"?12 -
When one of your dev's can't keep his variable naming consistent, even within the same line. Throw in non-English comments, bad spelling and incorrect pluralization for good measure
string myVariable = THE_OTHER_VARABLE + AnotherDumbVariable
//This add the string for better working2 -
Programme that simulates the rolling of the dice when playing the Risk board game.
No more dice that fall off the table. No more dice that throw the figures into disarray.12 -
I have no patience when softwares takes time to load.
It ruins my momentum/focus and I just wanna throw everything away.14 -
When I design a website I always give my best to make it look modern and responsive. Then I look at a website of a local company and want to throw up.
-
Every time I hear the word "trailblazing" I throw up a little. Even beats "synergy" as a useless, demonic corporate buzzword.10
-
"java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available"
oh thx3 -
I guess now investors will throw less money on Blockchain startups.. oops but most of them just throw money in 🌊 and pray for good return.1
-
Stuff like this on Friday mornings on the day of code freeze makes you ....
"Fucking throw a monitor at people with such attitudes"😡 -
I am a fucking software developer and not an IT guy, I write code and if the fucking printer is not connecting, throw it out of the window, that's way better than calling me for help, because one day, I'll do that, and you'll regret...3
-
Just because you can do things in one line and throw in ternary operators everywhere, doesn't mean you should.. other people will touch your code. Make it readable instead of making it harder to maintain8
-
that feeling when your (thrice) refactored code executes literally 1000 times faster.
loading excel ranges into vba arrays and process these is much faster than comparing the ranges themselves. also much more readable. please don't throw rocks at me for don't knowing this in advance.6 -
"Your documentation doesn't specify what should be returned if there is no item matching the id, so currently I'm just gonna have it throw a 504"
Why on earth would you? What's wrong with you, you sick bastard?6 -
They say if you throw good stuff out at the universe, it will throw good stuff back. But all it ever throws for me is a NullPointerException.2
-
GOD DAMMIT Amazon is buying roomba. Now I can throw my roomba AND my braava in the trashcan.
F big tech I'm tired of them.24 -
Code FUCKING Rape!!! that kids is when companies throw lots of creative and talented programmers / coders / developers at a system and say FIX IT!
-
I just wanted to turn off my throw it in my backpack and go home. But freaking Windows has just decided that this is a great time for an update 😡6
-
Sometimes my boss wants me to fire a bullet without a gun, they want me to throw the bullet so hard that it feels like it was shot via a gun.
Maintaining a legacy app sucks so bad when you don't even have the full codebase and some douche bag decided to just randomly throw the codebase on the fucking SVN. 😠1 -
Some old tech: exists and functions just fine for 20+ years.
Some tech bro: Yeah we gotta throw this out the window and re-invent the freaking wheel.13 -
When I get mad I purposefully just throw css at the bottom of the last css file references and declare everything with !important.
Sorry future self..figure it out next time. -
Today I had an app throw an out of memory exception, while trying to throw an out of memory exception1
-
"Hi"
Yes? Stop sending Hi, Hello, in slack! FFS not even asking: how are you doing? Throw your question or whatever made you talk to me in the first place! I'm just ignoring everyone like this from now on...14 -
Does anyone else get a serious internal urge to throw their computer out the window while waiting for Android emulators to load?4
-
When it feels impossible to get your javascript callback to happen at the right time, so you just throw the callback somewhere just so it works, but you know that it's not the ideal spot for it... 😡😡😡
🖕💻6 -
I'm at this point where I want to throw a temper tantrum - throw myself on the floor and crying like a child.
Frustrated. Only shit mundane work. Isolation sucks. Health sucks. Everything stinks.
And my willpower is like a candle in the wind.
I know it's not specificly the job, because not everything is mundane. It's my brain and soul poking each other's eyes out.
*scratches head*
Why must everything be so shitty at the moment...4 -
This customer's dev is going to be the end of me. I had to explain to him why it doesn't make any sense to return a value after throwing an exception.
In a function that was supposed to insert a record amd return its id, in the error handling code:
catch(Exception ex) {
//logs the exception
throw ex;
return - 999; //this code will NEVER be reached, and why the f.... - 999?
}
The customer wants us to develop the project together, but he won't listen and always write whatever he wants. Some might be differences in taste. Like me preferring
if(condition) {
return a;
}
return b;
And him preferring :
Foo result = null;
if(condition) {
result = a;
} else {
result = b;
}
return result;
Ok, that I can accept. But things like the one I'm ranting about... I wont.
I'm starting to wonder what was he doing during his "9 years of coding experience"10 -
Why can't laptop makers stop putting windows as the default OS in their systems.. I don't wanna pay extra for some pice of crap I'm going to throw out anyway..12
-
IDK, man, it feels like the LB might still be caching. How 'bout throw yet another no-cache? Just to be sure.7
-
Here you can see our employer trying their best to throw productivity of the devs down the drain.
.
.
.
.
10/10 it's working 🙃3 -
That happiness after you are so close to open the closest window and throw the pc, but you manage to fix the problem.
FUCK YOU GRUB I WON!!!!!!!!!!!! SUCK IT! -
Been a long ass day, then some later afternoon prepush testing that went long and wrong which led into night - and after all was said and done we had to throw our hands up and say...
https://youtu.be/Qy-Y3HJNU_s -
JetBrain's IDE and its possibility to rollback my "sudo rm *" command in the wrong folder just in 3 clicks is one of the few reasons why I didn't throw myself out of a window yet.2
-
CoWorker: I fixed the code so it doesn't throw any errors or warnings anymore.
What He did? Well.. he just commented the whole important part and it's my turn now to really fix this C mess.1 -
Sure go ahead throw me off a bridge into a task thats completely out of my ability in an area I have no experience or understanding almost completely unrelated to the role in which I applied for.2
-
Oh, I've got one.
Selfie trash can. It captures your selfie and uploads it to social media whenever you the throw trash, to promote usage of trash can!6 -
Worst interview question: "How fast can you do x?"
That's depends on the project scope, but I'll just throw a number out there that I think will make you happy. -
If you throw a stone randomly in Bangalore(Silicon valley of India), chances are, it will hit a dog or a software engineer. While the dog may or may not have a strap (a.k.a. leash) around his neck, the software engineer will definitely have one.
-
Dear other developers,
Don't throw exceptions in async callbacks goddammit. It doesn't abort the outer function where you think it does, and it crashes the app because you can't catch it.4 -
I just want to throw out there for Javascript developers, async and await are the two best things to ever happen to promises.3
-
If I ever have to write a RESTful API form scratch again I'm gonna throw myself out of the window.7
-
If you throw a dirty gunk-ice-snow-mix ball into my food while I'm walking to school WHILE I AM REALLY FUCKING HUNGRY, I'm going to pour that now non-edible food onto your head, dimwit.
I don't care if your clothes were expensive or if you threw it in there accidentally. Maybe next time at least throw a non-dirty snowball, there was plenty of fresh snow.6 -
For the first time, wholeheartedly prepared for an interview for a major IT firm, only to be rejected coz i didnt know what methods are present in a library i had never used!! Wanted to throw the guy out of the window!! 😑3
-
Sometimes I wish I could just print out Ubuntu byte by byte onto a paper and then throw it into a fire to just watch it burn... ....🤔.... .....hold on!.... ....waaaait a moment.... can I just literally do "dd if=/dev/sda | lp" ?!! 😈 ...brb1
-
I turn into a 2 yrs old whenever I'm editing a 3D model.
From the perspective that I want to throw everything in sight and my response to everything is "No!". 🙄4 -
Oh Lordy, time to yank out those old RPI's and throw vsCode on them!
https://code.visualstudio.com/docs/...5 -
Ladies and Gentlemen,
Has someone of you created a sexy looking gallery for the web and maybe got it on github to let me throw an eye on it?
It would be sooooo fucking nice!39 -
setInterval(() => {throw new Error("April fools!"}, 100);
Time to make the front end team hate me.4 -
Two evolutionary traits that would've made us decent animals if we never got smart:
1. Running. On the African continent, there are hardly any animals that can outrun humans. Yes, cheetahs and whatnot are faster in a short run, but humans sweat and can cool down their bodies efficiently in a long run. Human can chase down pretty much anything. You can't run away from a human.
2. Throwing. Humans are the best throwers in the animal kingdom. Monkeys can throw too, but because of their long arms, they lose balance and can throw objects nowhere near as far and strong as humans.12 -
try {
thesis.defend();
} catch(TimeoutException reached) {
thesis.attack();
throw new Thesis aimedAt(theProfessorsFaces);
} -
It's so annoying. Whenever you are at a hackathon, every damn team tries to throw these buzzwords- Block chain, AI, ML. And I tell you, their projects just needed a duckin if else.😣
-
Interviewer: Could you please make a class to force it create one instance at most?
Me: Sure!
(I didn't know the singleton pattern)
class A {
public static bool isCreated = false;
A() {
if(isCreated == true)
throw new Exception();
isCreated = true;
}
}5 -
Aight devs, let's start a war.
Throw at me your best UI framework yet.
Anything (except game engines), cross platform preferable.
++ for why and how easy/hard to learn.26 -
If you don't know how to do it the proper way, just throw something together. :D
Might not be pretty, but it works... (only took about 3 hours)13 -
I drew the on-call rotation for Christmas this year. I really hope I get that job offer so I can throw a wrench into the entire rotation.3
-
When a PM or other self proclaimed demi god decides to tap the shoulder of the programmers with headphones on just to look just above their head and say "oh, i see. a programmers thoughts do throw a nullPointerException when disrupted"1
-
So my boss yells at me for texting right after she finished her text. Not sure if I wanna throw back the sass at her.4
-
If I find the genius who thought using getters and setters everywhere was a good idea, i'll gladly throw him into an active volcano.28
-
An application requiring lots of servers to handle the workload is not the problem.
The problem is an application that cannot handle workload no matter how many servers you throw at it.2 -
most memorable bug I fixed
Line 1:
- throw new Error(‘test’)
+ // throw new Error(‘test’)
yes, this was committed code in production4 -
What the fuck is so bad about JavaScript??? Like really. Everyone hates it but why? Developers HEAR JavaScript mentioned and immediately throw shit. Why?? JS is my go-to.28
-
Was working on an algorithm a few months back. I was not liking how long it was taking to process some data. A colleague of mine said: "Just throw out the data that is past a certain distance. You don't need it." At first I was shocked. Throw out data... Seemed so wrong at the time. He was correct, and it made sense. What was I saving it for? Posterity?1
-
Just realized my code was working fine the whole time after spending 5 hours debugging. Turns out I accidentally made it throw an exception at the wrong place .-.
-
The guy who wrote a ton of legacy code at my company apparently had no idea that you need to close a file stream. And also that IO may throw exceptions.
Wooo1 -
The rate with which I say “It’s what it is”, I’m afraid I am going exhaust it and my mind will throw an IndexOutOfBoundsException.5
-
Sometimes, I really want to throw any PC or server out and just have a more simple life
I guess that working with something you love, makes you starting to hate it.4 -
What is it with the every programmer ‘s obsession with providing additional configuration options?
Make a god damned decision please!
Throw one away!21 -
Work overtime for a month to develop a polished product inside and out. Not a peep from anyone. Throw together a simple script in a few minutes to run some daily reports and suddenly you're a god.
-
Have you ever been so confused with the professor requirements for a Java requirement that you had to decompiled his fucking example only to realize he went COMPLETLEY DIFFERENT ROUTE THAT THE BLACK ASSHOLE HE REQUESTED? GOD I FUCKING WANT TO THROW THROW MY MACBOOK AT HIM, IM HERE AT THE UNIVERSITY FOR 12 HOURS, ITS FUCKING 5 AM RIGHT NOW, THE SUN IS FUCKING RISING AND THERE IS LIGHT IN THE SKY TELLING ME TO KILL MYSELF LIKE JESUS CHRIST WHAT AM I A CODESLAVE NOW? FUCK.
FYI, there's also an addition of 7 students with me too, we're doomed.3 -
Writing code to put me to sleep.
try{
me.sleep();
} catch (InterruptedException e) {
throw Pillow.atInterruption(e);
} -
"It takes confidence to throw work away … When people first start drawing, they’re often reluctant to redo parts that aren’t right … they convince themselves that the drawing is not that bad, really — in fact, maybe they meant it to look that way." - Paul Graham
-
Current mood: Preparing a communication plan for how to explain why we have decided to throw out the entire 3-years-worth-of-work code base for the frontend project we have inherited and rewrite it from zero because it's just. THAT. BAD.3
-
I started xampp, atom, chrome at once and my windows launched xampp in 10 seconds, chrome in 23 seconds and guess what atom was up in just 2 minutes....
Still trying to figure out whether to throw my pc or the windows.4 -
I like Scala, but the docs suck.
The FAQ literally uses StackOverflow links as answers.
Not as references, where they write the complete answer and provide the link for reference or credits.
They actually just throw in the links.1 -
fuck you rant
fuck you fake developer
fuck you colleague
throw your laptop out of the window, you are fucking useless
you are still fucking going your own fucking way you fucking piece of shit
fuck you9 -
I fucking hate SO ! No sense of gratitude at all.. :/ Fucking arrogant fucker's ..One thing I've realised during answering question's in SO..It's like a bitch ! You should bang and throw it,shouldn't think about loving it.10
-
I just don't understand why people use the try-catch on calling a method that will throw exceptions just to ONLY re-throw it again, what would you do that for? :(5
-
The best way to debug a program is to boast about it to your family and friends...
It would throw an error in your face almost all the time...
*Feels like a slap on the face*2 -
That's the kind of project I have to work on now which was developed for a year and has no documentation at all... 😰🖕🏻👿1
-
7-zip fucked me over real bad today.
It decompressed 30 gigs of data (about half an hour), from a deeply compressed bz2 archive, then decided to throw an error and delete the decompressed data.
...
There goes my ambition for working on my side project2 -
"XYZ is an API that allows you to throw a bunch of stuff at it, and it will generally do the right thing" - best documentation ever!1
-
```
public someMethod(index: string): Promise<void> {
return Promise.resolve(someAsyncFunction().then(() => {
return;
})
.catch((error) => {
this.logger.error(error);
throw error;
});
```
Somebdoy doesn't know their async / await syntax but they wanted aboard the promise-hype train. There is an entire class in that style.1 -
That moment where you see code of someone who riddles their code with nested if-else and if-elseif statements.
I don't remember writing an else statement for years. It almost always can be avoided (and the rare cases where it makes sense I prefer the switch statement).
Yet I never grasp why people do:
```
if(someCondition) {
// huge nested code block
} else {
throw new Error();
}
```
Instead of
```
if (!someCondition) {
throw new Error();
}
// continue in the normal scope
```
And then we have experts that like doing:
```
if(someCondition) {
if (bar) {
$foo = 'narf';
} else {
$foo = 'poit';
}
// huge code block
if($foo == 'narf') {
if(yetAntherCondition) {
// huge code block
} else {
throw new Error();
}
// huge code block
} else {
throw new Error();
}
} else {
throw new Error();
}
```
Help!
If ever was to design a programming language, I'd forbid the `else` and `elseif` keywords. I have yet to find an instance where I could not replace some `else` by either a guard or an early return or introducing some polymorphism.1 -
I added a method to an interface. Was to lazy to find all use cases so I just hit Run and waited for the compiler to throw all places where the method is missing. #effectiveJava1
-
So tomorrow I start at a new project - super pumped. Looking forward to learning a new language too - Scala. And..
....
I am finally taking the plunge...it's time to throw myself into Linux, as the org has gone all Linux no more Windows! -
Thanks to a couple of 'ranters I felt confident enough to throw this together.
http://bestdistrofor.me/
Watch this space 👀19 -
React hooks are so good that now I don't want to throw my laptop while developing web apps.
Nice approach.3 -
I hate yaml; finding that one wrong indentation level that makes everything goes to hell while still being perfectly parseable is a nightmare. Brackets were created for a reason, please don't throw away that.5
-
Server behaved weird and I couldn't find out why. Nothing on the logs.
As a personal side project, I've translated the whole project to Scala. Boom! FileNotFoundException. There was an incorrect path somewhere.
I still don't know why Java did not throw.2 -
TFW you realize you only have 2 days left until your school-leaving exams.... I'm so fucking nervous right now... Aaand apparently our city has won a soccer match, I can pretty much hear everything that's happening at the stadium... there also seems to be some big rap concert somewhere in the city... I can't open the window otherwise I'll have to listen to all that noise.5
-
Hey, what do you think about WTF capes for duckies?
Oh I'd put like three of those on a duck and the proceed to throw it at the people that displease me. 😇😈
DevRant issue: https://github.com/devRant/devRant/...1 -
Just got on a fb argument because I said something along the lines of: mfkers that throw the finger in a pic are the same mfkers that will quickly disappear from a fight
Yo, if your ass is though enough, then it is. Flipping the bird at a pic makes me think you're willing to throw hands if needed be.
Anecdotal evidence proves it ain't real3 -
throw new exception("There were not enough free threads in the ThreadPool to complete the operation.");
Brain == toast -
Typical Windows 10:
When you don't need to do something fast - I'm super fast OS, I have no bugs and I won't throw BSOD's
When you need to do something REALLY fast - Hey, I've got some updates, I'll be installing them during several eternities and I'll throw you some BSOD's cause I can
PS. In such cases I really want to install linux1 -
Anyone of you use Jetbrains IDE‘s? I love them but sometimes, they have weird bugs and it just triggers me everytime so hard, I could take my Computer and throw it out the window.11
-
Developing, not just maintaining, Classic ASP websites. In Visual Studio. It just pretends it's just HTML and won't highlight or help me with syntax highlights. *Check online for Classic ASP plugins*... *two hours later throw keyboard across room*... then carry on with just HTML hints.4
-
Sometimes when I'm writing Javascript I want to throw up my hands and say "this is bullshit!" but I can never remember what "this" refers to
-
when the website is so huge and a bug is causing every to be delayed a minute before loading, the debugger isn't showing anything, and the project lead's best solution is to throw more RAM at it
-
GitHub Actions. That is all.
Well, not really. Trying to convert a grunt script which we have packaging our WordPress plugins to be done as a GitHub action instead and I'm about to throw my machine out of the window.5 -
"I make all my decisions on intuition. But then, I must know why I made that decision. I throw a spear into the darkness. That is intuition. Then I must send an army into the darkness to find the spear. That is intellect." - Ingmar Bergman4
-
I really want to like react but the more I use it the more frustrated I get, I'm sure it's great once you know it but right now I just want to throw my computer out the window
-
In three days my team closes the book on this monolithic cluster of a project that I thought would never end! I feel like Christmas is coming. Hopefully the PM doesn’t let the business throw us into another scope-less pit like this again! 😩3
-
Don't ya just love it when someone you work with is constantly asking you to do stuff. Even though you literally ask nothing of them. Can't say no though because then they throw a gigantic 11 year old temper tantrum..1
-
When you see a try/catch block where the catch simply throws the caught exception:
try { /*stuff*/ } catch (Exception e) { throw e }
*headdesk*4 -
If I have to write one more uber-complex, goddamn Google Optimize test, I will literally piss and shit and throw up on my computer and then throw it out the window.1
-
Just thought I should throw it out here, you know that we can't post collabs from desktop version of devRant? It's really cancer...2
-
A good IRL metaphor for strong typing is how germans use their pronouns (der/die/das).
Throw your stones guys, but honestly: I hate that too :D3 -
What's SAP?
Piece of shit if you ask me.
Their Crystal Reports is so user-hostile it makes me want to throw up all over the keyboard.8 -
Now let me just throw away most of this pre-work documentation from the PMs and do it right the first time.
-
"When a train goes through a tunnel and it gets dark, you don't throw away the ticket and jump off. You sit still and trust the engineer." by :- Corrie Ten Boom
-
The worst part about switching code from python 2 to python 3:
`map(myfunc, mylist)`, behaves differently, but won't throw an error. It will just show up as nothing.3 -
Java's such a bitch, it won't house pointers but throw a NullPointerException at even the most insignificant lines possible.1
-
try{
If(!res || typeof res == undefined || res == undefined){}
}catch(err){
// you just had to throw an error
} -
Quitting.
If you have any tips on how to get over this point where nothing works and you just want to throw you laptop into the trash can and continue working on the hobby project please write it in the comments.4 -
Debugger still throw an exception, you looking for a bug for hours . Couple hours later someone remands you that CSV is comma-separated but your file has semicolon!!! Wwrrrrr
When I working too long I make noobs mistakes.1 -
I hate to work on old projects with gulp.
console.log('assigning obejct to customer', {custID, itemID});
events.js:174
throw er; // Unhandled 'error' event
^
GulpUglifyError: unable to minify JavaScript
thanks..... -
Ok peeps!
A newbie to nodejs and linux VPS (ubuntu) would appreciate any tips you could throw my way on how to push locally developed nodejs webapp to prod in vps server 😊
Thanks!5 -
I don't think I've ever had a love-hate relationship like the one I have with Visual Studio. It's a great IDE, but sometimes it makes me want to throw my machine through the window..1
-
Just wrote an insanely long wk5 rant with my BT-keyboard, turned it off to throw on a smiley or two - and the whole thing disappeared! ARGH.
-
Throw out the baseline, then inherit the new baseline we paid contractors to develop as a proof of concept using tech you don't know and maintain that.
-
If I had one wish it would be that I could have FaceTime on Android do I could throw this iphone into the nearest body of water.4
-
Finally got Proton to run arbitrary programs with some tinkering. Works fairly well for running nigh anything I throw at it, even some random non-game programs. Might do this more often. (Next up: DXVK)10
-
Why should "Trashcan" be a generic abstract class?
Because otherwhise you could throw all types of trash into the same bucket!2 -
So my mom really really dislikes the Xbox text system. Everytime I would ask for a game on Xbox (when I played Xbox) she would just fucking throw her card at me and bam free games. Not really help, just kinda less stress.
-
All these threads about what music to listen to when coding, thought I'd throw a bunch of tracks into a public playlist and share it: https://open.spotify.com/user/...
New tag: musictocodeto4 -
How to code a translator:
public string Translate(string input, string lang)
{
if (lang is string)
return input;
else throw new NotFoundException();
} -
Is anyone else excited about Mycroft and the Mycroft Mark II? If I had any disposable income, I'd throw money at their Kickstarter cause it looks very promising.1
-
Ok so Sonar had a rule that you should not throw Exception. Rather you should always throw a specific types or catch them...
I don't understand this. So if the underlying function throws 10 different types of exceptions then the calling function should also declare it throws 10 different types rather than just Exception?
Assuming it isn't in a position to handle them?2 -
If you have an old computer, here's what to do:
1. Find a tall building with a window, preferably on the top floor.
2. Throw your computer out of said window.
3. Enjoy your new computer!3 -
How do you find ideas for cool projects. I'm bored and can't think of anything interesting. Maybe you could throw some ideas here?3
-
Somethings I just want to throw my pc around the office because those f*cking unit tests that don't want to work😤🤬😡
-
Needing to approve each and any brainfart open-source library. Having to manipulate transitive package dependencies to throw out dependencies with non-compliant license.
-
Not sure how to ask this. I really enjoy Network side of IT. Maybe even throw in a little Cyber Security as well. I feel like I'm trying to every too fast. I got no certifications yet. This is stressful 😫1
-
When did this sector get too busy to do design? All we do is throw cupcakes against the wall now. Even with breakfixes a simple “what do you need from System X and what can you pass in?” is now deemed too slow.4
-
I hate my boss, he just throw some weird ideas to work on, and at the end it fails. WASTAGE OF TIME !!
-
Today's Friday, so I've gotta go into my clients office. Time to throw on some chinos and pretend that I act like a civilized human being the other 6 days of the week... *glances at chip bag and popcorn container*
-
Dont know why but on the occasion that i throw out a 'do while' snippet of code i chuckle to myself.
-
Come on, throw ANY foreign library or package at me, and I dare you, I double dare you mf, I'll turn your life into a shitshow!
~ Every frickin IDE ever -
Ahhh!!! Stupid ass Android studio taking abt 5 mins for initial build AMD throwing out tricking gradle errors which take up 45 mins to fix
Someone throw it in a river of piranhas already!!1 -
Anyone have something to share about working in Amsterdam?
Thinking of migrating there - I'm an Android developer.
Any company names you can throw at me are also appreciated!! :)4 -
My friend brought up me copy writing my file transferring code and my response was “uh.. I was gonna just throw it on Github”.
So rip that -
Does anyone know of a font, or something, where i can get brand logo icons in their original colors?
Because i dont want to throw a whole folder of icons in my projects manually every time5 -
If you gona reference a web.config key in your code, wrap it in a try/catch and throw a useful error, for fuck sake!
-
Ehm, ok, i'll code this new event calendar concept, but do you realy think it's cool as you think?
.
.
.
At least i can take it as a practice and than throw it to the trash as always.7 -
Looking for a ddos protected webhosting in Europe. Can you recommend something? Was looking at ovh.com but they require you to pay for whole year and I'm not ready to throw ~160EUR and hope for the best.12
-
Dad come home with a computer from his office that they where going to "throw away"... taught me how to move icons around
-
Want to know how to really screw the performance of your web service? Throw in some database row locks with no timeout
-
CoffeeReadyCallback() {
DrinkCoffee();
}
DrinkCoffee() {
QALife();
}
QALife() {
Throw TableFlip
//wait for more coffee to be ready
} -
Design question for y'all
Context: python lambda
Better to make classes for dictionary objects holding strings between methods
Throw strings around separately
Throw the dictionary around6 -
We've got a non minified jQuery in production for months now. Not only do people throw it at every little problem, but some of them don't even use the minified version... 😑
-
How can i throw cube my completely different direction on every click while maintaining restruction shown by cyan lines4
-
How much money you have to throw at hardware for Jenkins to build projects as fast as they are built locally6
-
Nothing beats the feeling after designing a great, versatile function that can handle everything you can throw at it, and then realizing that actually you've built it to translate two (2) strings.
But eh, at least it's extendable! -
I drink enough water to be hydrated, throw on some random rock playlist or System of A Down album & I'm in the mood.
-
If you are one one the retards who has/would buy a fjall raven bag, please throw yourself in front of a moving train. Thanks.4
-
Blog: Never ever try to turn a rushed demo build into a live product.
https://likelikeatemyshield.com/pos... -
Having a code-gasam over here because reuse in Angular > reuse in AngularJS(AJS). Throw in reactive forms instead of template driven forms in AJS and I'm done.
-
Welp my local composer has become unusable. Time to throw all those globally installed packages into the trash.
-
I am trying to make a simple news app using jetpack compose but it throwing a error(
when I rerun the app it runs successfully but when I logged out and try to log in it throw the error) -
Just now I found out I have only 30 ml scotch at home for the night. FML.
"Tonight I don't have even that much of alcohol as I used to throw away in the washbasin" -
is it seo, if i post my domain here? I mean i could just throw some keywords in here like Webdesigner Köln Bonn Homepage and such, then say: visit www.robinoehler.de and it would be a valid Backlink for free to my domain.. am I right?5