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 - "catch"
-
You know you've made it when you can quickly catch programming crap in other website images.
This site promoted "Top 10 things that make you a good programmer."8 -
Was going through some old gadgets n found this fossil.
Give me the fucken code Blackberry and I'll catch it for you.4 -
Please do rename the "master" branch to "Führer". The umlaut will probably catch a bunch of applications that aren't UTF-8 ready.15
-
She: We've been together for so long and why are you never romantic??
Me: What do you mean? I can say I Love You in 10 different languages!
She: Awww... Really ?!?
Me:
cout<<"I Love You!";
printf("I Love You!);
System.out.println("I Love You!");
print "I Love You!"
echo "I Love You!";
say I Love You
puts "I Love You!
msg db 'I Love You!'
<h1>I Love You!</h1>
dbms_output.put_line ('I Love You!');
Me: Hello.. ?6 -
Fuckin hell!!
Code works everywhere except at one client. Ok, I check logs & see something missing.. I go check the code that handles excel files.. try catch and do nothing.. great.. :/ ok let's log this shit to see what is not ok...
Insert logs, build, update, run.. now it freakin works o.O12 -
Police officer McDucky reporting for duty. Hope we catch a lot of pesky bugs and complete projects.3
-
Void foo() {
try {
//Try something
} catch(exception e) {
foo();
}
}
When I saw this in production I cried a little...9 -
Sorry, but the app had to stay running. It was just a minor exception anyway.
try {
executeMainLoop();
}
catch (Exception ex) {
executeMainLoop();
}4 -
Last week I almost lost my belief in everything..
A friend of minde, he's currently learning programming (Delphi 😂) in some kind of university, just told me:
"Hey, why do you spend so much time caring about error handling? I just surround all my programs with one try catch block and I never have to think about errors!"
Ehm. No statement needed, right?2 -
We should totally be able to use try/ catch irl, especially in social situations
try{
riskyText();
} catch (InappropriateTextError e) {
abort();
}6 -
Comment your best developer pickup line...
here's mine...
I think you're exceptional, I can try & catch you.24 -
If Stack Overflow really crashed it would never be fixed since the devs would be stuck refreshing Stack Overflow forever.2
-
!rant
It's Friday and my boss let us off work early...
So imma just chill and try to catch the sun5 -
static void TryOut<T>(T newStuff)
{
try
{
self.Learn(newStuff);
}
catch (NotUnderstandingException)
{
// At some point, it will work, just call it again
TryOut(newStuff);
}
}4 -
Working on code that we took from other devices company. We found this brilliant thing in one of their function (check catch blok)2
-
Me annoying our dev:
Me: “Is your npm watch running?”
Him: “Yes!”
Me: “You better go catch it then... 🤣”
Him: “....”
I think we gatta let him go :(5 -
import java.util.Exception;
try {
public class A {
public static void main(String args[]) {
new Exception();
}
}
}
catch(Exception e) {
System.out.println("Got you BITCH");
}9 -
imagine the new try/catch block
try
..
catch
...
finally
....
please
...
how dare you?! (Application.Exit())4 -
I still remember when I first started using try/catches, what a wonderful day. And when I learnt to not use it for all... An even better day...
And then there is the other guy, encapsulating his entire code on one giant try/catch to suppress all thrown errors, instead of trying to deal with them.5 -
They see me coding
They testing
The Try and Catch blocks show me coding dirty
Show me coding dirty ...3 -
Catch a sysadmin's laptop unguarded. Put fakeupdate.net on windows 10. I never saw so much pain on a man's face. Priceless!1
-
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! 👋7 -
I'm planning on making a band called Bar Fighters and will play songs like Integer Or Long, The Renderer, Test of U nit, Learn to Try ( catch )5
-
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 -
Had some beers with linuxxx once again. Good to catch up with a fellow devRanter! It's been too long, and I missed the tech talk.23
-
Dilbert or C++.....
Currently Dilbert is winning.... but need to catch up on 1.5 months of strips...
Maybe i should just stop here and finish the rest after...11 -
found this in our codebase today
try {
//do something
} catch () {
try {
//do something else
} catch () {
try {
//do something else else... this goes on 4-5 levels deep
} catch () {
//log... couldn't do
}
}
}9 -
Best way to handle any exception...
try{
something
} catch(e) {
window.location.href =
"http://stackoverflow.com/search/...]+"
+ e.message;
}joke/meme coding c++ tip of the day tricks stack overflow random rant try catch joke but will be useful 😂😂😂 programmer hacks9 -
Got a busy day today so last night I went to bed an hour early to catch up on sleep... Woke up an hour earlier this morning.1
-
By someone who reviewed my code. "Put a null check in the catch block for the exception....cuz some times exception itself might be null..."
And by that he/she means,
catch (Exception e){
if (e != null) {....}
}12 -
Today,I found this gem:
static function getConfig(){
$cacheKey = 'foobar';
try {
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){
try{
$config = $this->repository->getConfig();
$this->cache->set($cacheKey, $config);
}
catch(Exception $e){}
}
}
I don't want to live on this planet anymore...!7 -
God damnit!
i recently inspected the c# sourcecode of a webservice, our webservice develop references to.
As i discovered a particular function in it, my face went instantly pale.
This golden-hammer function consists of ~2000 lines of code.
In the first line there is "try {".
On the last lines is "catch (Exception e) { throw new SomethingWentWrongException ("special function"); }"
At least, he "tried" xD
I don't want to develop on that planet anymore...7 -
Nothing like a SQL Script failing and fucking up an important Database right before my christmas vacation...10
-
Using pokemon exeption handling on some very important and sensitive back end stuff to meet a deadline.7
-
Hey... to somebody reading this, most likely.
The problem, is that you put if($var = 'something')
You need ==, not =.
Php doesn't tell you that though. It'll just change the var to 'something'
That's why you're getting that really obscure, doesn't make any sense error.
You're welcome.9 -
When people ask me:
- Why doesn't it work?
I catch myself often responding like this:
- How exactly it doesn't work?2 -
Actual production code:
try{
[code]
try{
[code]
}catch(Exception ex){
[code]
}
}catch(Exception ex){
[code]
}
Double blasphemy!2 -
String nullabity check duel...
null, isEmpty(), "", " ", '', ' ', " null", boolean, NaN, undefined, isNullOrEmpty and finally try-catch -
read some rants about a devRant meetup?
how do I know they are not from my manager trying to catch me rant-handed?3 -
Bruh, catch everyone on LinkedIn posting about how much they love their company/team.
Translated, these read "Please don't sack me!"5 -
try {
boolean isOk = meetTheGirl("Anna");
if (isOk) {
kiss();
goHomeAndProgram();
}
else {
cry();
goHomeAndProgram();
nextDay();
pickUpAGirl();
}
} catch (Exception e) {
//I don't know. My life is so empty
}7 -
Have you worked on a project that you know will deliberately make people's lives miserable?
I know this is very broad, but you catch my drift.12 -
try {
// something...
}
catch (Exception ex)
{
string uriToLaunch = "http://stackoverflow.com/search?q=" + ex.Message;
var uri = new Uri(uriToLaunch );
var success = await Windows.System.Launcher.LaunchUriAsync(uri );
}1 -
Roses are red
Exceptions are blue
Empty catch blocks are going to hurt you!
try
{ somethingVeryDangerous() }
catch { // No Op
}
finally { SaveFile() }1 -
Worried about your application crashing? I have a fix. through the entire thing in a try/catch and catch Exception. 😁😁2
-
So I was just watching a show with subs and see this line:
"So just try and catch me!"
The first thought that came to mind was:
try {}
catch {}6 -
mr robot, halt and catch fire, silicon valley, tvf pitchers.....
any suggestions for movies like pirates of silicon valley?4 -
- halt and catch fire
- silicon valley
- mr robot
are there others, at least half as good as hcf?21 -
while( me.getStatus() != Status.RICH){
try{
Project p = createProject();
wait();
me.setStatus(p.getStatus());
}catch (GaveUpException e){
me.setStatus(Status.404);
}
** Warning: code unreachable **
System.out.println("I'M RICH!");2 -
Status of Internet Connection in our office located in Baku. Probably there is some guy downloading torrent in office. I will catch you today...12
-
...and they said AWS never goes down. Well developers this is a good time to sleep or catch up on tv-series. Enjoy!5
-
there's a special place for people who write empty catch blocks INTENTIONALLY ..
try{
... do something that may produce NPE;
} catch {Exception fuckYou){
// go die in a fire
}6 -
When you're in a rush to write a new feature but your compiler keeps nagging about not handling exceptions2
-
Coworker: "I'll just refactor this one messy piece of code and catch up with you later"
Me to another coworker: "We will not see him anytime soon..." -
Apple iPhone batteries catch on fire yesterday and today at two different Apple Stores
*Scrolling news on OP5T and laughing *7 -
I spend so much time debugging because the previous developer has empty catch blocks everywhere in the code base.
-
Heard Java 7 provides catching multiple exceptions in single catch block ! hmm .. why need when I got this 😎😁
try {
// do something...
} catch (Exception e){
//log it ..
}6 -
"If you don't return something in the catch block it will crash"
Isn't it interesting how a sentence can be true yet so infuriatingly wrong.3 -
The Halt and Catch Fire writers and tech experts must have lived those days. Totally nailed it to the finest detail. I am impressed. Show me a 10mg (how will I ever fill it up) Bernoulli platter 😀
Great series but warning it is not a comedy like Silicon. Very different but amazing how some things are same as today in concept.7 -
!rant
Small refactor. Which resulted in the confident removal of a comment that said:
// will this fail?
Ah. Like a breath of fresh air. -
I want catch previous developer and cut his finger off. If you don't know hot the job should be done don't do that job.12
-
Have you ever drifted so much that, while examining your code, you catch yourself reading the Loren ipsum text?
#lorem_ipsum #firstworldproblems3 -
No error handling at all, not even a single try catch. Program crashes when the wind changes direction. Previous developer developed his test plan around his bugs. 😭1
-
Life will be much easier if we can use "try and catch" while doing something. Yes, just like programming language.2
-
//Something great
try
{
//Some code.
}
catch(Exception ex)
{
string url = "http://stackoverflow.com/search?q=";
System.Diagnostics.Process.Start($"{url}{ex.Message}");
}1 -
First week in a new company... Everything looks soooooooooo complicated, I've got no idea how I am going to catch up 😅4
-
Finally got to catch up on last week's episode of Mr. Robot...I must say, Elliott got my mind messed up with all those illusions. O.o2
-
My boss has been working in web development for roughly 10 years now.
Today he learned about the existence of try/catch in JavaScript and asked me in which browsers it's
supported in 😢 -
Why the fuck do i need to propose try-catch to an contractor, so he can fix his application, because its crashing if the input is non-conform to the specs?
Oh and before you ask. The application is a application that processes and sanitizes invoices.8 -
Happy new year everyone.
For everyone yet to catch up to midnight, let this be a pre-new year post!5 -
Found this comment before a try/catch block in some code I was reviewing... seems like I might have to rewrite the whole thing1
-
Fastforwarded a bit, I have LOTR marathon to catch later.. 😋
May your bugs diminish, coworkers grow brains & clients calm the fuck down!!
Happy, better & successful 2018 everyone!!
🍦1 -
try {
thesis.defend();
} catch(TimeoutException reached) {
thesis.attack();
throw new Thesis aimedAt(theProfessorsFaces);
} -
try {
m_tick++;
}
catch(...) {
m_tick = 0;
}
someone was very confused...
yes, m_tick is an unsigned builtin type3 -
When you catch a fellow classmate checking out some devRant posts... Don't worry. Your Anonymity is safe with me2
-
Meanwhile pinterest was throwing this error and is expecting the user to catch/handle the error! Lol2
-
I'm having such a bad day, that an exception object passed on to my catch block itself caused a NullPointerException.1
-
Boss: so what's the outcome of this meeting?
Me: well 23 more JavaScript frameworks got released in this time. A lot to catch up.1 -
You know what I had to deal with
A bunch of these shit
try{
//Shitty cluster fuck excuse for java
//code
}catch(Exception e){
}1 -
Halt and Catch Fire is having another great season. Lived those days and it is so true. CompuServe, Compaq, Commodore, 5 1/4", Tandy 1000, Byte Mag, Atari, The Well... The tech you see is really 1985ish. Attention to detail is appreciated by long time technologists.
H&CF is about building a tech business and much applies to today's startups. That two brilliant tech women are leading the charge adds to it. All the characters are great Cameron, Gordon, Donna, the devs at Mutiny and Joe channeling Jobs (in my opinion) is spot on.
Any H&CF fans have an opinion?4 -
I have a domain with mailgun and a catch all statment, I don't remember signing up for this but I was apparently mad2
-
Too many broken promises then I don't care anymore.
Javascript has ruined humanity. Catch me on my way out. -
Writing code to put me to sleep.
try{
me.sleep();
} catch (InterruptedException e) {
throw Pillow.atInterruption(e);
} -
the person who wrote the code I'm maintaining had just learned try {}catch {} seriously, the guy preferred using try catch over ifs...11
-
Assertequals("Fail","Fail") in the catch block.
Things developers do to bloat their test coverage at my organisation,
I am #stuckWithIdiots
Management sees green1 -
Listen, i really understand you want to know how much a certain resource is downloaded/viewed and so on. But what gets on my nerves is to sign up my email address every fucking time i want to see your semi-tech-but-actually-selling-you-a-pile-of-sperm-fermented-shit whitepaper . yes i know there is something called disposable email adresses and such... But if stuff is 'free' as you say you have, then make it available free!
Every time i think 'hey, this is actually relevant to my interests, let me read up more on that...' i hit the fucking 'insert your email for a free download'
Fuck off! Put your fucking form in the pits of hell and seal it in a fucking fucking dome next to fucking research subject akira with 99 fucking layers of fucking nuclear blast proof wall domes! I dont want you to fucking send me your fucking spam mails about every ideafart your sales dept has fired becausz they were high on computer cleaner spray tubes and thought 'let's trick those stupid people into our marketing scheme', go and fucking jump into a barrel of highly concentrated radioactive waste!
The only thing you manage to do for me like that is to fucking close the tab i had a slight interest in and never look back again!
Am i the only one getting angry about this?undefined always a fucking catch fuck your metrics when free isn't free signup for free stuff is bollocks2 -
What the Fuck is with recruiters saying you need more experience to get the job?! I'm applying so I can GET said experience! As a perfect metaphor: a college course should not have itself as a prerequisite or else nobody can take it!
It's a stupid catch-22 that I'm stuck in, from which there is no escape until I land that first job... 😒 -
OS can’t install the network driver because the installer can’t see the network card, the installer can’t see the network cars because the driver isn’t installed.1
-
Halt and Catch Fire. Watch this serie. Just do. Specially if you are 30 or older, and/or entrepreneur. https://ororo.tv/en/shows/... . 2 episodes per day in this link.2
-
Me: I tried to catch this bug for two days
Other: Let me show
5 seconds later...
Other: Oh, you just used the wrong string type
Me: ... -
People are saying to improve you need to ask questions. In case you don't have friends that are in IT, who do you aks questions? Those silly ones that google can't answer? I don't want to go to SO, that place is toxic, and asking a dumb question on devrant feels like a waste of peoples time as well. Is there a platform for alone-ish developers to ask more experienced devs questions? without being shamed to death?13
-
Working with one team takes the better part of a day...
try {
WorkWithUXTeam();
}
catch {
try {
WorkWithPlatformTeams();
}
catch {
try {
WorkWithArchitecture ();
}
catch {
Delay():
}
}
}
Man, that was annoying on a phone.3 -
Playing pokemon. I'm extremely into the series and played nearly every gen since the first ones. Even bought the cheap 2ds just to play these 3ds versions even tho i got acutally no time during exams and sometimes even played the different editions of the same gen just because i can.😅
And I have the habit to think about "how is it done?" With everything that is displayed on a screen or just blinks. And with 800 pokemon and their stats and subforms and IVs and all that nerdshit (back then compressed in such a small rom and running on pretty low end devices) i began to think about data structures, organization of them and such, especially when there are many big, wide datasets.😪3 -
Had to extend the platform of a customer. For one part of my task (generating an encrypted string) there already was a class with encryption and decryption methods. This class is used in a gazillion places all over the code, so I thought it might be a good idea to re-use already existing stuff... Until I saw that the encryption method using basic Java methods (all fine with that) wrapped in a try-catch block, 'cause the Java methods may throw, returning err.getMessage() in the catch block...
Yeah...sure...makes sense... Instead of throwing an error or returning null just remove the possibility to handle the error.
So I decided to basically copy the methods and return null so I can work with that.
Created a merge request and was told by another dev of that company to remove my own impelemtation of the encryption method and use the already existing. Arguing that I won't have a possibility to prevent my code, that returns an URI containing the encrypted string, from generating something like "http://..../Encryption failed because of null" without success.
So I had to use the already existing crappy code...5 -
var gotGud = false;
while(!gotGud)
{
try
{
makeCode();
gotGud = true;
}
catch(AbilityException ex) { }
} -
I rarely use my Windows machine. But when I do, I catch some tiny little bugs. Windows 10 fall creators update.3
-
A couple of months ago I watched all 3 seasons of 'Halt and Catch Fire'. I thought it was excellent. If im honest I enjoyed it more than mr robot (and I loved that). Still not seen Silicon Valley though (it's gonna cost too much).7
-
I just realized it'll take years for Java to catch the way C# implemented lambda expressions.
And really devrant? one rant per 2 hours?2 -
I have had it with this motherflipping NullPointerExceptions, on my motherflipping method. Catch you tomorrow Exception, you will not have the better of my sanity today.
-
Some people were talking about IPhones and I calmly stated that Apple should catch up, and somebody behind me that I hate said "Android should catch up".
I could not help but laugh out loud.
I then looked it up, but didn't show him the specs between these phones:
digitaltrends.com/mobile/iphone-7-vs-galaxy-s7/9 -
For all the Go-Devs that complain about not having try-catches.
That function here. emulates one....More or less.
https://gist.github.com/thosebeans/...3 -
What's the point of the "finally" block? Isn't it functionally equivalent to everything after the try { } clause?5
-
Development: we need Nginx installed on *insert server list*
Me: ok, let me get in tough with the platform team.
Platform team: This should be installed in the userspace, Unix teams don't support this.
And here I am, trying to get a reverse proxy running on servers on which I do not have sudo rights.
Since it doesn't work, it's my fault, both sides block the door.
I installed it locally on a virtual machine, but the compiled or installed code doesn't work once copied.
The joy of being an "application engineer". This job title means nothing!12 -
while (true) {
try {
writeCode()
} catch (UndefinedIsNotAFunction) {
try {
drinkCoffee()
} catch (OutOfCoffeeException) {
die(-1)
}
}
} -
Function works() {
Try {
HorriblyDyingCode();
Return true;
} catch (Exception e) {
Return false;
}
} -
try (HappyHolidays happyHolidays = new HappyHolidays()) {
happyHolidays.wish(all);
} catch (HolidayWishesNotWelcomedException){
specialCasePatternInterface.specialCaseCall();
}
Yep.18 -
9pm I REALLY needed to get some work done... Head was dropping like a nodding dog at my laptop... Gave up and went to bed.... Now its after 2am and I've been watching YouTube for 5 hours and still awake.... Just what even....1
-
hey, someone mentioned nasa today or whatever. got me curious. if you happen to catch this, the falcon launch happens in 16 minutes. nasa.gov2
-
new Promise(function (resolve, reject) {
self.getPaid(function (err, money) {
if(err) {
reject(err);
console.log("fml");
} else {
resolve(money);
console.log("fuck yeah!") ;
});
})
.then(resolve)
.catch(reject); -
Ability to stop time, it would give me enough time to finish my extra projects, catch up on my sleep, and always be finished ahead of schedule.
-
When you catch an ArrayOutOfBounds exception and the catch statement throws an ArrayOutOfBounds exception...
Fail -
When you see a try/catch block where the catch simply throws the caught exception:
try { /*stuff*/ } catch (Exception e) { throw e }
*headdesk*5 -
Silicon Valley started again yesterday !!!! Yaay...who else here watches this show and well Halt and Catch Fire ?5
-
PHP is awesome, but it annoys me that there is no typing and that you still can get errors based on types...
Other than that, not being able to catch all errors in one catch and especially not being able to natively catch fatal errors is my biggest problem...
(not natively meaning that you can use hackish solutions but there's no "fatal error" class to use in your try catch, and you're using the register shutdown function not as intended...)8 -
does anyone else constantly catch themself's trying to use alt+enter or ctrl+space everywhere besides their ide?2
-
I'm halfway through season 3 of Halt and Catch Fire and I believe Cameron is my most hated movie character ever. That fcking manipulative useless piece of shit. Just fuck urself. Fcking garbage disposal wouldn't be able to dispose of ur bitch ass. I'm not sure if I can finish the season but it feels like she can't get any worse, wouldn't be surprised tho.
-
When you watch "1024+ Seconds of JS Wizardry" on YouTube and you realize you have fuckin lot to catch up in JavaScript :|
-
when you got an exception on store and you've tried it like a million times and it didn't happen, and you just give up and "try catch" that motherfucker!
-
try{
If(!res || typeof res == undefined || res == undefined){}
}catch(err){
// you just had to throw an error
} -
Hey motorcyclists
Just now have I come across something quite unbelievable...
Is this a real deal? what's the catch? Why would it cost that little...?
Link1: https://alibaba.com/product-detail/...
Link2: https://jszhongxing.en.made-in-china.com/...18 -
CEO of my company often walks in our office with a joke: "I can't hear you do bit & byte".
I still don't catch it. -
You know all those times when you neglected to put anything in those catch blocks?
If this hasn't happened yet, just wait. Soon enough some lunatic's nondeterministic code will randomly break you will have to spend hours figuring out why because you never did anything with that error.
Of course, actually writing code for every mandatory catch block is even more of a waste of time, so empty catch blocks it is!1 -
Some people were lazy so they added throws Exception to all the methods up till main. No catch clause....1
-
Never Ending Project
"What's make software development great?"
"What's it?"
"We must catch bugs all the time."
"Oh..."1 -
seems like halt and catch fire will never be able to gather audience because it is too techy like mr robot. In my opinion they should release it as online series1
-
When I was young I tried to catch all the pokemons but "finally" now I "try" to "catch" all errors...
-
That feeling when you notice, that you have a pokestop right infront of yout house😍....
.... Now I can catch Pokemons without leaving the house. Thank You Lure Modules! -
Why did halt and catch fire got discuntinued? I really loved that show. And I think it's one of the best cs themed show.
-
!devrelated
Anyone want to catch me up to speed about why some prominent users left? I heard there was drama...4 -
me.getgirlfriend()
.then((res)=>{console.log(res.msg)})
.catch((err)=>{console.log(err.msg)})
> Girlfriend not found -
It feels like getting an internship can be a catch 22, you need experience to get experience. What advice would you give to someone looking for an internship?2
-
line 8426345 col 4575 Expected an identifier and instead saw 'catch' (a reserved word).
Now all my promises be:
deleteUser()['catch'](() => {});1 -
I get a simple exception because of a connection reset, can't catch it becouse it "happens in external code" urgh, fuck you .net core..
-
Why the fuck catch(...) Doesn't catch shit!? Fuuuuu!! I hate it! Why these things keep happening to me?!5
-
The video shorts done by the devRant team surpasses the crap that shows like "Silicon Valley" or "Halt and Catch Fire" put out.
-
How do u catch up with trends in programming? Articles, magazines, Meetup ... please name them too1
-
Anyone else join a youtube livestream, go to the beginning and start watching at 3x speed to see if you can catch up before the stream ends4
-
panic() from golang. I panicked a lot as go didn't have the "evil" try catch. But then panic came for my aid.
-
Find on frenh bank application :
string name;
try {
Client client = _repo.getById(id);
name = client.name;
} catch {
name = "noname";
}
😂😂😂😂😂 -
While i am an iPhone user.
Siri you have to catch up to google. I feel iOS itself needs to catch up. Apple where is your innovation