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 - "break"
-
Enough of this!!! I need a break.
*Gets up partially from chair*
*Looks back at the code, gets an idea*
*Sits down again for couple of hours*5 -
Type it in, type it in, type a bigger number in. Oh how fun it is to break other people's software!8
-
Looking at my code for 10 minutes. The switch case is always going to default. Almost about to break my head.
I FORGOT TO PUT FUCKING BREAK AFTER EACH CASE. WWWWWWWHHHHHHHHYYYYYYYYY12 -
I recently got my first job and I already saw code that I won't ever forget
for(int i=0; i < 2; ++i) {
switch(i) {
case 0:
~~~
break;
case 1:
~~~
break;
case 2:
~~~
break;
default:
~~~
break;
}
}23 -
Teaching maths to my niece and instead of 2+2=4, I wrote 2+2==4... someone needs break from coding 😂1
-
Boss: Don't be afraid to break things
Me: *breaks things*
Boss: Why did you break things?
Me: ...
I tried something new. Otherwise, I am hitting a wall. -
Take a break folks,
From work,
From code,
From tension,
From bugs,
Take a car, drive to the country side, breathe the fresh air, ride horses,
Have a meal, stay for a day or two, without internet, and then Be back to work.
This is what we all need now :D12 -
Juniors are a fun bunch to work with.
Over confident, hero complex of that fresh graduate high, and then thrown in to the real world! Where there hopes and dreams are crushed in minutes when they see what monolithic applications really look like!!
But don't let that overwhelm you, your not going to be changing all of it any time soon, hell some of this code hasn't been touched in 5+ years and still works without fail.
Don't stress about the work load, you can only write 1 line of code at a time anyway, and hell, even seniors make mistakes.
The key about being able to manage this beast is simple, break it! Because the more you break it, the more you'll understand how a project is put together, for better or worse. Learn from the examples in front of you, and learn what not to do in the future 😎
But more importantly, plan your changes, whiteboard the high level logic of what it is you want to add, then whiteboard in the current codebase and determine where to slice this bitch up, then when it all looks well and good, take out your scalpel and slice and dice time.
Don't worry, your changes aren't going to production anytime soon, hell, you'll be lucky to get past the first pull request with this working 100% the first time, and that's a good thing, learn from tour short comings and improve your own knowledge for the next time!2 -
When Zuckerberg says "Move fast and break things", it's "innovative" and he is an "entrepreneur", but when I "move fast and break things" it's "reckless driving" and I'm "causing car accidents"...6
-
$ sudo pacman -Syu
*enter*
"283 updates available"
The only thing I can think of is:
Please, don't break my system.
Please, don't break my system.
Please, don't break my system.
Please, don't break my system.
'$ y' *enter*
*gives me creeping horrors*10 -
When you've been working for ages and are desperate for a pee, but you've just had a major breakthrough and code is pouring off your fingers like honey, and you don't want to stop because it will break the flow.5
-
How was your day at work?
Dev: - I managed to break the whole thing, so s**t! 😭
QA: - I managed to break the whole thing, so productive! 😎3 -
When i Code , I feel like i should take a break,
After Taking a Break,
WTf why I took the break , now what this code do !!! -
Sitting in an introduction to C++ class (I've been programming for 5 years but every job wants to see a degree even if it means taking boring intro classes)
I see the professor write code like this....
First: Ever heard of break;
Second: I know it's not wrong to write it like this but ever heard of spaces!!!!!!!14 -
Sooo this happened when I got hired to "redesign" a website. I opened up one of the WYSIWYG areas and holy shit there were literally hundreds of break tags.11
-
Sometimes taking a break can really clear your head. Yesterday evening, I was programming with my mate and couldn't find a very persistent bug. Didn't want to get a break because I just wanted to solve it. He convinced me to go downstairs and get a drink. Reached the bottom of the stairs aaaaand poof, figured out the bug!1
-
That moment you're 8 beers deep into your program at 4am, so focused and then realized you've been crossing your legs doing the pee pee dance in your chair so you don't piss yourself because your bladder is full and you just say "ok bathroom break after I finish this method, then one more beer."4
-
Finally finished the basic stuff on my website!
Now i'm gonna take a break and play some video games.
And thanks to @Alice for the dark/light theme switch.
https://hampusm.github.io/28 -
Drinking good whiskey, listening to Chopin and birds singing, looking at moon.
I can do it for the rest of my life.3 -
There is no such thing as finishing a successful project, there is always a broken piece. By fixing that piece, you break another.
Most of our time, we break stuff.9 -
How it would be if Microsoft built cars:
*press break pedal*
Message Box:"Are you sure you want to break?"
User:"Yes"
Message Box:"Are you sure?"
User:"Yes"5 -
Not sure how other developers handle this but I just had a break down and do not want to see another piece of code for at least a week :/13
-
JUST SHUT THE FUCK UP AND DONT TOUCH ANYTHING FUCKING IDIOT!
Changes my code while I’m in holidays, deletes the tests that fail and pushes it to master. No backwards compatibility or anything..
Now I can spend a week to revert all his changes because they break lots of stuff and pray that he didn’t mess up the data too much..9 -
Hey Python, why in the ever loving readability universe I can't break the following command across multiple lines?
df.replace(...).apply(...).reset_index().drop(...)
Oh, but I hear you say "Hitko, why you can break it into multiple lines if you break within brackets!"
To which I ask you, does this shit look any more readable?
df.replace(...
).apply(...
).reset_index(
).drop(...)15 -
I quit my job… it got so exhausting, it had become all about last minute work and ETAs. The more I worked the sicker I felt. It started directly impacting my physical health which ended up affecting mentally too. I feel good that I got out of something very toxic but at the same time not working kinda makes me sad when I look at others working. I have consciously taken a break to clear my mind but it affects me that I don’t know what next.2
-
No matter how much you learn and practise, you're still going to break something.
So get on with learning, and break something huge!3 -
First time spending my lunch break outside this year. Didn't realize how much I missed it. It really helps to breath some fresh air when you got a bad day in office. How do you guys normally spend you lunch break?11
-
So my dear programming teacher really hates break statements... I mean really really really. He thinks it's better for readability if you don't break from any kinds of loops (not even ifs) well then we came across a switch statement in class. He says "breaks only exist because it's needed in switches" well how about returning from a fcking swith? or goto? then you need no break...
Is there anyone who could explain why I should NEVER use breaks and why it's bad in any piece of code? Why is it better to just use whiles because fors are apparently evil again? Srsly I just wanna ask him to show me some big code bases without breaks...8 -
"Please don't break. Please don't break."
This is all we ever think about when making a half-baked software just in time before the deadline 😂😂😂5 -
After talk to the professor I'm working for
Professor: well, take a break.
Me: take a break? I have to report to you next week during spring break and you just released an assignment.
Professor: well but you have three weeks for the assignment.
Me: inside: but you said start early on the assignment
Professor: take a break3 -
I need a hobby or someone to yell at me until I take a break from working all day every day.
Then again if I had a home office I probably wouldn't need to put in 12 hours to get 6 hours of work done.
But I still need something to do besides work and family. And someone to kick my butt until I do it and relax.9 -
No rant here but just wanted to remind the ladies and gentlemen to take that break and spend time with your family or friends, girlfriends, boyfriends, and pets. If someone s been meaning to do it and got bogged down by work, I hope this serves as a reminder.3
-
What's the point in having a relaxation/fun/chill zone/room in your company when you never have the time to use it except maybe on your lunch break? 🤔🤔3
-
This morning, I felt pretty good. I had a healthy breakfast and I took the longer U-bahn journey into work so as to enjoy the Autumn scenery. I get to my desk after greeting my colleagues with the customary "Guten Morgen" and I began to plan my work for the day. I see there is a new ticket assigned to me which relates to a HTML issue. The customer support team are able to use a HTML editor to made changes to a section of a user's dashboard and from time to time, I get asked to fix their mistakes. Usually, it is something small, but it makes me cringe every time I see the markup. "Tables...tables everywhere!!!", sighed the once happy dev.
Time for a coffee break and a sit-down with the support team3 -
This screen is so much filled with hate, when taking a break, without wifi... Those apps that force you to update -.-7
-
I started the weekend saying i wanna code some personal projects. Its sunday and u know what, fuck no. Sure we love to code but we are still human gonna go sit in a jakuzi and swim a little tonight. We need to relax every now and then. So if ur feeling theres a lot of shit u need to do... take a break. Seriously everyone needs it2
-
First real break since I started programming in 2011. Best time ever.
Programming is awesome, but doing other things too, sometimes even more.5 -
alias break-ubuntu="do-release-upgrade"
# Only works if new distro is available, otherwise you have to find another way to break ubuntu -
If nothing new is posted here I go to Facebook. If I exhaust the feed there I come here. Such has been my life for the past one hour 😶
-
So I recently wacthed Prison Break
Right in the beginning, Michael takes the hdd out of his computer and throws it out the window
Me: Yea he should've dismantled that drive and thrown the pieces away in different places
Then later on someone else is trying to figure his plan and finds the drive and recovers data. Yea.. what did I say?6 -
I was wondering why every time my my code is accessing the !valid() part to later realize I was coming back to it = its state is reset = I need a break T_T
P.S. if you find anything in my code make sure to let me know :)9 -
Today
I was working on a project for the uni, went to have a nap and take a break.
The problem I was coding java in my dream.
I WANT A BREAK!!!!!!!!!! -
When you're reviewing code and you find:
switch(intIn) {
case 1:
serial.println("1");
break;
case 2:
serial.println("2");
break;
case 3:
serial.println("3");
break;
etc
case 123:
serial.println("Correct response ");
break;1 -
def sayHiToColleagues():
for colleague in colleagues:
if colleague.roomNr > me.roomNr:
break
sayHi(colleague.name)6 -
So I found these stack overflow questions and thought they were particularly humorous.
https://stackoverflow.com/questions...
https://stackoverflow.com/questions...
The answers were pretty good. But I wanted to actually "break out of an if statement" like the ops asked for. So I created these monstrosities:6 -
After a long break for studies, I'm finally gonna continue working on my game engine. Wish me good luck.😃😃7
-
I've been reading devRant at work for the past 6 months and it kept me sane through a few moments. Thanks. :)
And now I finally started to feel that maybe even I could have some horror stories to share. (I've been in the company for more than 4 years)
(Sorry for long post.
TL;DR: break time laws suck in my country.)
One example would probably be how our company decided to cut 5 minutes from our lunch time (down to 25 minutes) and add 3 minutes to our 5 minute coffee break(*"gifted" by our CEO) in the afternoon.
You're probably asking yourself, "What happened to the remaining 2 minutes?".
*Well, it's simple. In my country it's somehow still legal to have only 30 minutes of break time for the whole day if working hours don't exceed 10 hours. It's actually written in the law that you CAN divide that lunch break time to be placed at different times. To me that sound like fucking nuts...
Thankfully nobody's taking that time change quite literally and most people still use the full 30 minutes. But some people here have been fired for much less, so I don't play around. I just pretend to work while reading devRant. 😎3 -
Pet peeve #1: those guys who iterate over a whole array with 'for' and 'break' on a condition. Have you ever heard of fckng 'while'??
Git source code will be the death of me.3 -
So...
function watch($i = null)
switch($i) {
case 1:
return 'Game of Thrones';
break;
case 2:
return 'Silicon Valley';
break;
case 3:
return 'Fear The Walking Dead';
break;
}
}
echo watch(rand(1,3));6 -
Ah demonstration day. The day when everything that does not need to break, will break. The day when you give birth to the nastiest "temporary" quick fixes. I need a smoke and a coffee, gonna be a long day.1
-
"Refractor this method to reduce its Cognitive Complexity from 110 to 15 allowed."
*Pan*
Ok let's do it :
label : for(....) {
if(...){
for(.....){
If(...){
....
break label;
}
}
}
}
*Pan Pan*1 -
So I locked my windows work computer before the lunch break, came back to Ubuntu's login screen... (I dual boot)
So windows just randomly restarted? Rip if I forgot to save something... -
!rant
I have a question; when I get interrupted while coding (dinner, friends etc) I'm often "stuck" in my head while just thinking about the problem I were to solve in the code. Anyone else have this? Does it have a name and any tips to "let the code go" while not coding?5 -
This developer has an media query break point for each style 912 break points. 304 desktop, 304 mobile, and 304 tablet break points. With 18000 line style sheet.6
-
If ever there was something like dark ages, then we are living it: which programmer still knows what his statement does through the whole software stack down to the CPU (and could also account for what a modern CPU does with all its cores, caches, pipelines and -1, -2, -3 rings). Piled higher and deeper. I know nothing. So it's like being a cargo cult sorcerer, conjuring copy&pasted spells from SO to invoke Bjarne's, Linus' or whomevers forlorn spirit, so this shit won't break.2
-
I think the worst feeling ever is taking a break from something, then coming back to it and realizing that you have to rewrite something because you put it off before you took a break.
I've had a lot going on lately, and I decided to work on a web dev project I was doing to get the hang of frontend development. Just realized that I have to rewrite a couple functions. Someone kill me now1 -
Tldr; Do not go to the bathroom when you are stuck on a problem.
Most of you will know that when you are stuck on a problem for a while, that it is worth to take a break to look at the problem with a fresh pair of eyes.
It's good advice and I have been doing it for years, however now I have developed a problem with it.....
I don't drink coffee or tea often so when I'm stuck I always take a bathroom break and most of the time an Idea will pop into my head how to solve the problem.
The problem now is that everytime when I am even a little bit stuck I need to go to the bathroom even when I just went.
It's really annoying because now I need to find something else to use as a break because my brain has associate being stuck with needing to go to the bathroom.
It's probably not a good idea to take a coffee break instead because if my brain starts to associate that I will be a coffee addict in no time.... Haha
Do any of you have a good suggestion to use as a break?8 -
Colleague: Why doesn't this line of code print something out?
Me: Are you sure this line of code has been executed? Try Adding a break point here.
(add break point and debug...)
Colleague: Oh. WTF?!3 -
How do you know when it is time for a break?
transition: color 0.5em linear;
When you cannot figure out what is wrong with this transition...2 -
I'm amazed how our Frontend team are able to consistently break our Vagrant builds, despite them only using Grunt...
-
!dev
I've got so much overdue winter break work that I have to skip celebrating New Year to do math and finish my biology sketches.
Argh.
Hope you guys have a better 2018. Happy New Year, I guess?1 -
After a 3 weeks break from work and programming, the hardest thing is going back on track. It's day 4 that I have started 'working' and I barely finished any tasks. I keep thinking of the great time I spent on 3 weeks holiday. ;'(1
-
Someone just explain me why. I really can't figure other reason that beeing too lazy to think a condition while writing a "while loop".
At university, a colleague asked me what i think of his code. I see something like that:
while ( 1 ){
...
if (condition)
break;
...
}
Am I a fucking genius thinking that just moving condition into while will improve readability, or am i a fucking stupid ? Really not the first time seeing this, maybe i am missing something.4 -
Having a devrant break in the confort of the office's toilet... have a break, read a pair of devrants. :D
-
Too many people seem to think that "goto" in C is the worst thing you could do. It's an abomination, never use it! (Not something I've seen here per se, just generally around)
Challenge:
Break out of a loop inside a loop without using goto, and make it look pretty. Seriously, I don't think it can be done, and goto just makes it so clean!7 -
Hey guys and gals, I built a silly little memory game! Comment with your best scores (no inspecting elements...that's cheating). Also, don't click too fast or it'll break. Lol
http://threetendesign.com/memory4 -
anyone else ever focused so hard/long that they peeled an orange(mandarin) to eat, then forgot to eat it so long that it was crispy?
i mean like literally the thin skin remaining was actually crispy... this is me taking a break to remember last times i ate/etc... and hopefully not have more crispy oranges... though tbh wasnt bad10 -
Yesterday morning I was working on importing records to a Shopify store. A few thousand records in their API starting returning status code 420 with the message "Unavailable Shop", same for the admin panel.
I called support and they created a ticket but it's been almost 24 hours and our shops API and admin panel are still on a smoke break apperently. -
Just spent several hours trying to figure out why a binary file wasn’t being written correctly.
I missed a break statement.
Also it’s been a while since I’ve been here, maybe I’ll actually come back. -
Lately I've been coming to the realization of how much time social media and YT takes from me and Ive been trying to cut back a lot. YT is definitely the platform that takes the most time from me, so I decided to give it up for the time being. To me RN the landscape of YT is boring and repetitive anyways so I don't mind.
Yesterday was the first day and I was definitely feeling better. My head was not hurting as much, my thoughts were clearer, and I was able to focus on other things. -
think I've hit that stage of my life where things break faster than I can fix them
from my body, to my code, to even my hardware9 -
Using Resharper to change a var name:
"Hey! I didn't break anything!"
"wait... why didn't anything break? crap..." -
At work me and my colleagues take almost regular smoke breaks out in the balcony. I was a smoker before but I'm afraid my habit has escalated during past few months. Now that I have taken few days off to study for my exams I can't study well. I can't smoke at home. And I can't go outside that much, it's raining by the way. I think I should quit. But right now I'm doomed.5
-
Any Prison Break fans here?
This kind of thing is what people do when they get free control over technology and stuff..2 -
Focus: Get up and walk around, disturb someone(calculated disturbing), break a window,
Procrastinating: DO IT NOW, JUST DO IT, MAKE YOUR DREAMS COME TRUE
....sorry
Yes my 2 cents -
Is inserting a break statement anywhere but in a switch statement a horrible idea and results almost always in bad code? Why? My lecture notes say so. lol.
e.g.:
loop(someJsonDataSet){
if(company.getName().equals("xyz")){
break; // don't process records of this
company
}
}14 -
TIL Firefox and Chrome renders "word-break: break-word" and "word-break: break-all" differently. It just makes me hope that there's a way to force install Firefox into the users' computer if they use chrome.1
-
I have to work on a site and I have recently been working on stuff none stop so I am a bit burnt out. Anyways, I have to have this site done by Monday and I have already delayed 5 days playing Rainbow 6 Siege. I am ready to come back
-
My department just installed a new high performance GPU, so :
1. Good bye, my old laptop GPU!
2. Let's play around and break the shiny thing! 😎
(more likely I will be the one who break down due to frustration though 😬)1 -
Finally nearly finished work today, time for a weeks holiday.
And even better I don't have to think about shitty old red hat 6.2 or Oracle 8i all week!2 -
Company Break Time. 😀
Let's blow on those cartridges to see if we can play some UMK3...
Who needs an Xbox?2 -
What the fuck does Spring Break mean?!
A: Spring has begun.
B: Here's a break. Go have some fun!
But no, here in Buffalo, the snow doesn't give a shit, it keeps falling!
And no! You want a break? How fucking cute! Here are two projects for you to work on that you gotta submit , the first day after spring break ends! and a midterm exam the day after!
Fmfl.2 -
I got back from my small 3 day vacation Sunday and I also decided to just take a break and relax before I hop back into my lil project I’m working on but it makes me feel like shit for taking so long to get back to it. Like I know I need breaks but I feel like I’m not good if I take breaks like this Idk don’t get me wrong I fuckin love programming more than anything but i just don’t want to force myself to work on something even if I do love it.
-
Anyone seen the series "You Are Wanted Wanted" with the german actor Matthias Schweighöfer on Amazon? (Don't know if it's available outside of Germany)
Anyways.. they basically took scenes from various known digital works and put them in there. And whenever that happened i felt the cringe rising in me..:I
Examples are faked cctv recordings as seen in prison break, JASON with the red balloon, heavy rain and the all people are hacked and used thing from a black mirror episode..1 -
When even core C# implementations break some of the SOLID principles.
ReadOnlyCollection<T>, MembershipProvider, ... -
People who use word-break: break-all on body paragraph content need to stand in a narrow, claustrophobia-inducing room, cut off their left hand, and hold it up against the right-hand wall, while holding the stump of their left arm against the left wall. That's what it feels like to read break-all in longform content.
-
The moment when you are reading and the screen goes black multiple times 😄😄
.
.
Just take a break.... -
Hey DevRant Fam <3
Hope everyone is doing very well as always!, i want to say sorry for my recent lack of activity in our community, i absolutely do miss communicating with everyone here as always dearly! there has just been too much going on within my life recently and i personally just needed a good break from everything , though to be honest more work was done than what i call my 'break', but guys not too much to say, about a week ago i turned 23 and things are finally starting to get a little better for me :-).
i'm also nearing the end of my degree in IT which this sem I've actually been working on a project for my first ever client with two other team mates, though i honestly feel that two of us are mainly carrying the team and the workload of course, but even so i must say i love learning all the time and its a real honor to do something i love and of course do with all of my heart :D.
as always everyone once again from the bottom of my heart i hope everyone is doing very well, and wish the best for you guys !
Milo <3 :D3 -
;)
function getReason(num) {
switch (num) {
case 1:
console.log("Love to create something new!");
break;
case 2:
console.log("It's fucking cool!");
break;
case 3:
console.log("Money!");
break;
default:
console.log("Fuck offffff");
break;
}
}10 -
`Holy shit never turn on caught exception breakpoints in vs code for node !
and the one place i need the damn code to break, it doesn't break !1 -
!rant
There is an applicant for a dev position coming in today for an interview and a short coding exam. I'm looking forward to walking by the meeting room while they are doing the exam and seeing the anxiety on their face while I give a completely useless thumbs up.
Hmm...code compiled. I've earned a coffee break. -
I've been playing around with Nim lately, and I'd have a question. Already asked on StackOverflow, but my question disappeared without a trace (if you allow others to delete stuff, at least notify me it got deleted!).
Question is: if I have "defer: doSomething()" in an iterator, does doSomething get called when I break iteration early (before consuming everything) using a break statement?1 -
to me, "var a" is unorthodox. i'd rather use switch(expectedOutput){case 1:a=1;break;case 2:a=2;break;case 3:a=3;break;case 4:a=4;break;case 5:a=5;break;case 6:a=6;break;case 7:a=7;break;case 8:a=8;break;case 9:a=9;break;case 10:a=10;break;case 11:a=11;break;case 12:a=12;break;case 13:a=13;break;case 14:a=14;break;case 15:a=15;break;case 16:a=16;break;case 17:a=17;break;case 18:a=18;break;case 19:a=19;break;case 20:a=20}1
-
Use the Pomodoro technique. 25 min focuc followed by a 5 minute break. After 4 Pomodoros you take 20 min break.
There are several articles about that technique.2 -
PAGE BREAK AFTER IS FUCKED UP. FML
ok guys, if you have any recommendation or alternative to page-break-after, please let me know. im desperately in need of a goddamn solution.
heres my problem, ive got a table, inside the table is the tbody, now i only want two rows to be displayed in each page (im doing html for pdf docs). so what ive been trying to do is adding <tr class="display:block;page-break-after: always !important"> whenever it meets the condition (rowCount%2!=0).
Ive been trying to figure this out for the last 12 fucking hours. cheesus fucking crust. ik this isnt stackoverflow but stack hasnt really been helpful as well :( FML6 -
switch (type)
{
case QUESTION:
I'm program'n. What about you?
break;
case RANT:
This ain't no rant--this be question.
break;
default:
Enums are fuck'n awesome!
}1 -
lol rust has no early return from a match statement
continue to skip rest of loop
break to exit a loop
return to exit a function
they put in let Ok(response) = request.send() else { return None };
then you can use response like normal after
but let's say I wanna know what the error was (Ok being a variant of Result::Ok or Result::Err, and the above allowing you to destructure and go on or exit early because can't destructure)
let response = match response.send() {
Ok(response) => response,
Err(err) => {
// log error to file or whatever
eprintln!("{err:#?}");
//????? HOW DO I BREAK OUT OF HERE
return None //whole function shits itself instead of just exiting match
}
}
//does some stuff with response
actually in my case the result will be wrapped in a Ok again so I'm not doing justice to explaining this problem, fux
but basically I need to exit the match without ending the function
come on, match is a loop. let me break, fuckers.17