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 - "what is code"
-
>Building advertising platform
>Life is good
>Fire up the dev server and open in browser
>No assets
>What the fuck
>Check code and config for like an hour it's all good
>What the fuck
>Try incognito browser, it works.
>What the fuck
>Oh yeah. Adblock. Fuck.4 -
Boss throwing up a huge source code that I didn't see before.
Boss: Hey, this is an app from a contractor to do XYZ.
Me: Oh, okay.. so?
Boss: You will continue the code and the maintenance now. How much time do you need to implement X feature?
Me: I need to see the code first, can't say nothing now.
Boss: ok I need estimation now.
Me: *getting nervous* I need to see the fuckening code first. if you want estimation now I would say one year..
Boss: what?
Me: what?18 -
*On a programming support forum*
Guy: My compiler keeps throwing null pointer exception at line 128.
Me: Ok. Can you post your code real quick so I could figure out what is null at line 128?
Guy: No I'm not going to show my code to someone on the internet. What if you want to steal my code?
My mind: "Dude wtf why would I steal someone's code on a support forum?"
Me: *Use the next 15 minutes explaining that showing the code is necessary so that others can actually help him, and that no one on a support forum is going to steal his code.*
Guy: "You know what I'm more convinced that you want to copy my code. I might as well just try to fix this on my own."
What?14 -
My Crush who is a bookworm: what do u do?
me: i am a writer
she: wow thats soo cool
me: (excited inside)
she: what did u write recently?
me: code
she: 😐9 -
So I was code reviewing this guy's code before merging into the master branch.... and then I FOUND THIS FUCKING CODE, WHAT THE FUCK!!!!!!!!!!!!!!!! What the fuck is this ???66
-
Someone Asks me : "Will programmers be needed in the future if AI is already created code?"
Your question clearly tells one thing; you have no idea what programing is about and how it is done.
For starters, software already writes code. In every major codebase there are lots of files with auto-generated code. Auto-generated code is something a program have written to provide interface to a service for the rest of the codebase. So code already writes code - if the purpose of the code is clearly defined.
The problem is that users rarely know what they actually want, and even if they know it, they are rarely capable of creating a clear enough specification of what they want.21 -
If you are copy pasting code from somewhere else, spend some time and effort to understand what that piece of code is actually doing, and how much of your requirement does it satisfy.1
-
What non-dev team members don't understand is that when we tell them to wait while we're coding, we actually don't ignore them but try to finish the code before we forget what were we typing.1
-
I've written a lot of bad code, seen a lot, but attached is the most recent 'worst' I've seen.
What makes the situation worse/funny is:
1. The developer's code comment.
2. Check-in passed a code review.
3. The 'legacy code' was written last week.29 -
Finally... Source code of Windows trouble shooting program is here:
PS: I always hated it and found it useless. What about you?13 -
People who don't understand what I code or who don't even know what a freaking "code" is, telling me how to do my job!! Then my reaction will be like -2
-
I am in 3rd year of my university pursuing B. Tech and what we are learning is creating HTML code for a registration page26
-
I've never had a code review.
Eventhough I proposed to my boss that we at least review our intern's code once a week, he doesn't think it is needed.
Our intern writes ugly, shitty code...
it usually takes hours for me to fix his abominations... but yeah, what the boss says is always the best.3 -
What do you guys do when you get bored at work?
this is what I do:
1. Drink Water
2. Stare at the code
3. Go to Bathroom
4. repeat16 -
when you have to do this because the code looks correct but you're not sure what the heck is wrong because it doesn't make sense12
-
!rant
My girlfriend sat on my lap the other day when I was helping a friend of mine with some assembly code. She look at the code an said
What are you doing?
I explained the code and said that is the lowest you can get before machine code. She didn't run away in fear....
This is a great sign...6 -
This was an answer to the StackOverflow question, "What is the best comment in source code you have ever encountered?"2
-
Witchcraft: Code that has been optimized to a point at which even its author has no concept of exactly how it works, only what it is used for.1
-
So I had another seizure last night... (yea not fun), it's been awhile and yesterday's, I have no recollection of what happened.
But today, what do I do? Make sure I can still read and code :)
Honestly, if I forget how to code, not sure what I would do.....
Oh and I just wrote this and somewhat related:
https://medium.com/@allanx2000/...21 -
Me: Listen dude, the code worked perfectly and all the test cases passed so I'm done here.
Also me: What is this? What the fuck is this? Why does this work? What witchcraft is this?
*Screams internally*1 -
Intern Me: "this is what im working on"
Fellow Intern: "Hey cool, can you send me it? "
Me: "What? The code?"
Intern: "Yeah, just send it all"
Me: "You want me to send you the entirety of the 300 million line code base for a proprietary trading system?"
Intern: "Yeah"1 -
I see this is true.
I am learning software development I understand what the code does but the most difficult part is to think and think and think what code to implement and how you're going to code it to make the program work.6 -
Start working on ticket
Looks at code
WTF is the shit?
Open devRant to rant
1.5 hours later
what was I doing?3 -
Other students:
#define redLed 2
#define yellowLed 3
#define greenLed 4
void setup ()
{
pinMode(redLed, OUTPUT);
pinMode(yellowLed, OUTPUT) ;
pinMode(greenLed, OUTPUT) ;
}
Me:
void setup ()
{
for (int i=2;i<5;i++)
pinMode (i, OUTPUT);
}
Proff - This code is wrong it won't work. Where have you specified red led, green led, yellow led?
Me - wtf! Code doesn't know which led is used in what pin it's just pin numbers!
Gave me less marks 😑
P. S. I wrote comments in my code specifying which pin will have what led connected 😑14 -
Behold the PHP pyramid of doom!
You know what kind of code is coming... a big pile of shite! 😍
Obviously you have to return by reference (&) because of performance and memory reasons. ☝️🤓
Man... I've seen code...22 -
I usually start going through the code and as I do I draw (connected) shapes for every part of the code, as I do I add "features" to the shapes (little spikes, give them stripes etc) that way I'm able to "see" what is missing and how the shapes should interact
this might be a bit weird to explain but it helped me a lot to understand what the code is doing and get it rolling again16 -
Q:
What is programming?
A:
95%: copying code from stackoverflow.
5%: knowing where the copied code should go3 -
Being a sysadmin, I never write any code.
But I do want to learn that.
What is the easiest language to learn?
(I am lazy)53 -
Any coding challenge that doesn’t start with modifying an existing code base ignores what 95% of software engineering is.2
-
My graduation project partner was strange person
Favorite IDE is VIM
Forget how to use git
But somehow she could code most of the app
I asked what does she do when mistake happens, she answered "delete and write again"
I suggest github but she is "to embarrassed to show her code on internet"
She send .zip file of her code to me
Go to univ library to copy some code because she don't believe random code on internet
Of course verson of code on book in library is too old, but she prefer fix herself
But she is overall good person, so I can graduate next month13 -
I often times write code and think to myself "I don't have to comment this, it's obvious what is going on", only to find myself back at the same code, figuring out wtf it does...1
-
When the last dev wrote code and you dared to read it....switch on a Boolean, what even is your life legacy dev?2
-
I’m reading through the Apollo 11 source code like a 13 year old that just found out what porn hub is.13
-
A list of hilarious comment in code:
http://stackoverflow.com/questions/...
One that I liked in particular:2 -
12:30pm - I can't code any more, what does this function even do?
12:45pm - What's a function?
12:59pm - I still don't know what a function is
01:00pm - *Eats Lunch*
01:05pm - My code makes perfect sense6 -
Your code is like a poem, written by a forklift driver who didn’t know what poems were, but was made to write one nonetheless. Using Microsoft excel.4
-
My code is always a battle between best practices and what I assume would be the most efficient way to do things4
-
Forget porn detection and chatbots. What the big companies SHOULD be using AI for is detecting missing semicolons in code.15
-
Do you know what i hate most?
... commented old code!
What is the fucking purpose to comment old code IF YOU ARE USING A VERSION CONTROL SYSTEM?????
Commented old code is shit, because it fucks the readibility! I saw entire class full of this shit!
DELETE IT, YOU DON'T LOSE IT YOU MORON!!!!5 -
Signed up for a coding contest that starts at 9am. I’m bad at timed code challenges, but I’ll never get better if I don’t push myself.
Woke up in a panic, thinking I’d overslept... 1.5 hours after falling asleep.
This is definitely not going to help matters. Thanks, brain.10 -
30 min figuring out what happen to my code. And realize that = is used in if statement instead of ==.
Thanks brain8 -
I always feel insecure when i push my code to github as public repo.
Like what if my code is so far from standard.
What if i showed a very stupid logic.
I am very insecure when pushing my code to public repos.12 -
It's surprising the times I actually become lazy to code:
It's not when I need to probe the problem to figure out possible solutions, but rather when I know exactly what the solution is, but will require tons of code.5 -
Writing clean code is what you must do in order to call yourself a professional. There is no reasonable excuse for doing anything less than your best. - Clean Code2
-
Being that none of my family or friends code, it is nice to be here with others who are nerdy. What a great place5
-
What the f...
minified and obfuscated javascript code is more readable then the c# code of my colleague jeez...👹😡 what the f4 -
This girl I don't even know much sent me this code. She is not a coder and has never written any code before by the way.
if(true)
{
temp=abhinav;
abhinav= v bad;
v bad= temp;
}
Is this what a modern day love note look like? 🤔🤔6 -
<rant>why the fuck do live demos NEVER work properly when a day ago the code was fine?? What is this bullshit sorcery!?</rant>6
-
??????????????????? What??????
???? What???????
I couldnt solve a bug for hours.
Hours of googling.
Hours of mental trainwreck.
Hours of stress.
1:28 am.
I cant solve it.
HOLD ON I HAVE AN IDEA.
ChatGPT AI. HELP ME.
i copy and pasted the part of code thats bugging me. Keep in mind that this is a VERY large and robust system and this is just tiny percentage of code.
I told the AI to help me fix this shit bug.
ChatGPT literally explained me what the bug is as if im retarded and wrote code how to fix it.
LOOK AT THE SCREENSHOT U CANT EVEN MAKE THIS SHIT UP
HOW????18 -
>Gets job to optimize some code
>Me:"What could go wrong?"
>Code is commented in Arab
"All around me are familiar faces..."5 -
I think what would help is to teach them these things:
- awareness for security in code
- how to use a fucking VCS like Git and how it works -
I love reviewing code. I learned a better way to write something. That feeling of "hum, that's a lot better than what I have been doing" is great.1
-
What music do you listen to when you code? Also, can you please recommend some. Music with minimal to no wording is what interests me. Any suggestions would be appreciated:)37
-
Biggest sin is writing code without taking into account clean coding and just doing what ever is necessary to make the code work6
-
Client code:
neat, organized easy to interpret
Server code:
da fuq is this? da fuq is that? what does this do?
People who cant see the code:
client's
People who can see the code:
THE GUY WHO IS WORKING ON THE SERVER!4 -
try {
// something
} catch (SomeException e) {
}
Swallowed Exception.. what the fuck is wrong with you?! And I see this shit in a lot of places in the code!7 -
Is it common to look at code you wrote 1 to 2 years ago and think "what the hell was i thinking, this mess needs refactoring"?10
-
Everytime I open Android Studio for the first time. I look at my code and I'm like "What is this? What was I thinking?". But 30 minutes later I'm so deep into the code I'm almost in a trance. Tell me I'm not the only one.5
-
When your Program prints a PDF two times. What the Client thinks what happend:
myDocument.printTwoTimes();
When you review your Code:
This shouldn't even print once! How is any of this even working?
Happend to me today at work :D -
I wish the Congress would run all legislation by a team of programmers. Regardless of political leanings one thing is indisputable: We are very keen when it comes to finding bugs in a piece of code -- especially if we didn't write said code!
After all: What is the law if not code for people instead of processors?5 -
Windows 10 Image viewer:
void ShowImage(string imagePath) {
Thread.Sleep(3600)
imagePath:GetImage().show = true
}
Sorry if my code is bad. But you understand what i mean xD2 -
Me before learning to code: Wow Programming is so cool, I am gonna be the Mozart in coding !
Me after learning: what the hell...3 -
As long as the couch does what it should and is stable, I think it's a good code. Programming means knowing what the computer does before it knows it.
Heaven for programmers:2 -
Told a teacher I finished a week worth of exercises, and asked for the next one
"This code is not yours. It's too clean, redo everything"
... what, is it wk64 already ?3 -
Please tell me something wrong with me, and whole world is working like that! It can't be right! Or could it, and I'm just one sad fuck who don't know shit?
So... We've got:
1. Jira reporting (agile style with cards and shit)
2. Task timers (via application integrated to Jira in order to count how much time we spent on a task)
3. End of the day email reporting with description of what we have done today (Jira is not enough?)
4. Daily morning meetings with a team leader to report what we're gonna do today
5. Git merge code reviews for each finished component (that lasts for hours)
6. Weekly status meetings
7. Working hours reporting with a fucking fingerprint
And on top of all of that, the developer is the one who just writes the code - team leader decides how this code is gonna look, what will be written first and what last, what libraries will be used and so on...8 -
what is your favourite quote for programming?
This is mine :Truth can only be found in one place: the code.4 -
So before the Age of JavaScript, when programming was trying to be an engineering discipline, I felt like we were getting close to figuring out what worked and what didn't. We had rules of thumb (more general than Patterns) and code smells.
Then JavaScript came in and no one had time to think about "engineering" anymore. I'm fine with MVP and small iterations, but the disdain I see for making code clean and extendable and improvable is baffling (and annoying). First-time coders might never have had to fix someone else's code, but two weeks in a chair should have fixed that.
It's not that understanding code is so hard (although it can be); understanding the _intent_ is hard. This MVP is great, but when no one had time to document what is actually supposed to happen, programmers have to reverse-engineer the *design*.4 -
Manager : what is "looks good" in code review comment??? You have to be more detailed.
Me in next code review : It is not aesthetically pleasing, but it gets the job done. -
Someone is lacking ideas, he?
How about "what could you not give up in order to code efficiently?"5 -
Typical code life?
1. Write rough comments
2. Write more detailed comments
3. Write pseudo code
4. Write semi-working but definitely ugly code
5. Write working but very ugly code
6. Refactor the code to be nicer, check for patterns, bottlenecks and other bits and pieces
7. Push to git the "final" code
8. After few months blame whoever wrote the code
9. Refactor all the things!
---
This happened in my career more than once and still - it seems like the best option out there to get things done. What do you guys think? Should something be added/removed from this? Is this over-complicated or what?2 -
My Team Lead: Hey do you know goofy?
Me: What is it?
TL: It's a new programming language
Me: *being suspicious* show me what are you dealing with
TL: *Shows me a Groovy code snippet*
Me: Yeah!! Your goofy is pretty good!! Enjoy! 😡1 -
I've no idea what is wrong with wordpress developers.
Their code was probably written with their asses.
Even the wordpress API is a big shit with very beautiful function names like "the_content".2 -
I just hate it when a co-worker says "AS LONG AS IT WORKS. It doesn't matter how you code it as long as it outputs what the client/user wants. They don't check how you code it anyway" *facepalm*
We effin' follow standards so that it will be convenient for everybody!
Bad code is still bad code if you don't follow standards even if it works.4 -
I have always believed that clean code is readable code, and if your code is readable, then it shouldn't require masses of comments to explain it. However, in the course I am being taught, we are being told that in programming, comments are massively important to help another developer understand your code and what it does. So what is the consensus of the dev community?
Do you feel comments are key, or redundant if your code is written well?20 -
It's almost 10 pm now. For some reason, I have a sudden strong urge to code something till morning. The problem is I don't know what to code.11
-
This is the most terrifying & horribly beautiful code ever.
:(){ :|:& };:
*please don't try running it if you don't know what you are doing.5 -
When small things get big and don't work and you wonder for hours what is wrong with your code ... only to find out the problem is in the framework you use.
-
Ah the classic "Grau Dunkel 70". I know exactly what hex code that is. Thanks, design team!
Fuck you.8 -
I'm new guy in programming. Sometimes I do compare java with python and I have weird conclusion.
Python code is shorter but for me much more "logical" & easier to read is Java. Maybe it due to fact that I don't understand what is going on under hood so shorter code feels incomplete?14 -
How can you fuck up your code so badly that what should be a reasonably simple desktop app is lagging on any system, no matter how fast?8
-
delete unused code according to IDE
unit with context tests now fail
what is a good alternative industry or career instead of software development8 -
Client doesn't want me to use internet, while connecting to their vpn to code. It's a security 'violation', it seems. Do they think I am Denise Richie to code without internet? And the catch is I code for OpenFlow with OpenNetworkLinux+OpenNIE. I mean, do they even understand what Open means in all these?11
-
Reads horrible code
Opens DevRant to rant about it
Reads some stories
Ok, better mood, I can continue working now.
What was my planned rant about again? Ah, it can't be that bad.
Goes back to the code: Oh no, it is that bad...1 -
In the middle of coding: "Too into code to document properly. Will document later."
Two weeks later:"What the actual fuck is this code doing?"2 -
going over some old code in the project...
thinking what garbage is this?
oh oh it was junior me :(5 -
"What? You aren't sure where the Android Wifi credentials QR Code scanner is specifically located? But.. Aren't you the expert?" Trying not to freaking boil my blood right now.5
-
Managers: Got some good code from our friends, please integrate with our code. Thanks!
Me: What programming lang is .rtf ?
#qualityAssured #topOfClass #inTheirElement8 -
From a few years of programming experience, I come to know that "we cannot write perfect code."
What I mean by this is no matter how perfectly you write code, but if you have a peek on that code after about 3 months, you will be like, "I could have done a lot of things in a better way." Provided the code is atleast of 100 lines. -
bugfixing quiz:
What is wrong in that Java code:
I would say that happens when developers frequently switch between Java and JavaScript3 -
Just looked at a fellow devs code (has 4 years experience). His test rig has the same 5 lines of code, copy pasted in the same file ... 400+ times.
What is the appropriate action to take?8 -
me: Today will be a productive code efficient day
also me: what is diz devRant
then me: man this is lit
*fml*8 -
I'd say it was when I did a Codereview and the dev said that he doesn't really know how the code works and he doesn't quite know what it's purpose is supposed to be.
We are talking about less then 200 lines, all written by himself, this is not copied code.1 -
Dev: Woah look at this code! I might be a genius!
Also dev a few months later: Woah WTH is this shit? Was I totally dumb or what?2 -
So many new developers I know complain about not having the latest gadgets to learn to code. What I loved about learning to code was all you really need is something like Notepad and a few ideas, it's amazing how far you can go!6
-
I just solved a recursion problem without using recursion.
Yes, it's roughly 4 times more code, but at least I understand what the hell is happening.4 -
Just going through some old code from git repo's and code examples and I have a message to every dev out there after seeing some of the code quality...
Never... ever... ever fucking give variables with names like vx, tr and sq.
Give your variables names that explain what they are, it is so fucking hard trying to follow code that has 2 letter variable names and there is a special place in hell for you :-)3 -
I think VS code is the only product from Microsoft which is not broken like I'm writing in it and it feels good. Extensions are great, integration with git is also really good and debuger isn't complete bullshit. I had Sublime before but I switched it to VS code just to try it and I'm keeping it.
I know it isn't lightweight like other editors but fuck it... VS code is great
What are you using to code?3 -
Every developer thought what the hell my colleague is writing in code.
After watching own code after a year, who the hell is the developer.
Oops it me. No comments :) -
When it comes to nervewrecking situations, what I've encountered so far is a pull request for which the 2 reviewers had opposite opinions.
Something like this:
* opens pull request *
reviewer 1: "update using approach A"
* updates code *
reviewer 2: "this is wrong, change to approach B"
* updates code again *
reviewer 1: "this isn't what i asked for, i'm rejecting your PR"
Oh, also, each of them had their own set of coding standards.
What was your most challenging situation when writing code?1 -
If you think your legacy code is bad - this is what I came across in a system I'm refactoring this morning... and this isn't even the bug I was looking for.1
-
i hate windows errors so much
there's no information whatsoever, its just "error code 0x696969 lmao something wrong try again later"
what i hate even more is asking microsoft forums what the error code means and being asked if ive tried turning it off and on again6 -
What is your favourite pasta-code?
I think mine is tortellini/ravioli code. Where someone has taken Object Oriented Programming to the absolute worst extreme. You have loads of seemingly unrelated tiny classes/functions with just a few lines. All split between 30 files to perform one module function
And somewhere is a bug. Bon appetit💋👌3 -
What is the most sadistic thing you have done as a developer? What ways have you intentionally fucked up other people with your code/projects?4
-
Legit my only answer to fixing shit code for a nursing app at work is.....
Writing more shit code. Man the dude that developed this before had 0 clue what he was doing.....and because shit grew out of control there is shitcode everywhere.
I like writing shit code though. It is good practice.
Writing shit code without knowing is one thing. You really do reach expert level when you write shit code WHILE being fully aware of it.1 -
So I completed writing code to generate report regarding git commit in CSV. What my boss was saying is :8
-
Oh boy. 2.5k loc of legacy bash code. The task is to give every function its own script since that is literally what this script is. Cha8ned together individual scripts . Fingers crossed its actually just breaking out functions :x
-
My reaction when I meet peopel that still don't use any Architecture/Design Pattern to code.
What is yours? -
When coding, what percentage of your time is spent fluently typing your code vs thinking about what you're coding?8
-
When you look into the code of old developers with nice comments such as "What a fucking retard he is trying to book in the past". Just laught .1
-
int i = 0; // i is an integer initialized to 0
wtf?!?!?
comments should explain why not how or what the code is doing...1 -
Sifting through a React class component that is over 1000 lines long.
When was this written? Not in the 1950s like you might think. Just over 3 months ago.
Kill me.6 -
Working on some 2 year old php code don't know who has written it.
Found a function with some 500 lines of code and there is 3 times MySQL connection is initiated overriding same fucking variable with hardcoded database parameters in all of them
What the fuck man😦😦😦
Plus I have just started revewing the code there are tons of files and everywhere connection is hardcoded.4 -
Is it so hard for other people to write code as if there will be other eyes watching? When will people learn that a programming language is what bridges the communication gap between humans and machines? If I can't follow your code, you wrote it poorly. Period. At least document what the hell is going on. Be considerate of the next person. Unbelievable.
-
My friend always tell me that I can't do code and didn't understand what is programming... Because what I do is system admin2
-
What is the best way to do a code review for a colleague's code, without coming out as a complete ass?16
-
When having to fix parts from an other programmer's code, do NOT concentrate on the small code expected to be wrong, instead read and understand the whole program around it!
Best practice:
1) Why is this code here
2) What does this code do
3) How does the code solve the problem
(just happened to me 😅) -
They say in java Errors cannot be handled in developer code. But here my code handles a StackOverflowError. What is going on here?16
-
So, I joined a hardware company as a software developer few months back. I'm working on a c++ code base with thousands of files and no idea what the code is supposed to do.
I got one overview of what the product is supposed to do, which contains mostly electrical engineering jargon that I have no clue about.
Now my manager wants me fix a bug in this code. I have no clue what the expected behaviour is and no documentation whatsoever, and literally no one in the entire country who understands the code.4 -
I love it when you don't know if your code is working as intended because you can't figure out what the intended behavior should be.
yay!
*sad party horn*
Please ignore the wk99-like code. I've been throwing stuff at the wall.1 -
Everyday I come to work. I feel miserable. Everyday write code. Fix difficult bugs. Go home dinner sleep. Tomorrow repeat.
I am reading Jia jiang's story. Mel Robbins 5 seconds. Christ grace's lectures. Still feel miserable. What is the meaning of life? All I want is to teach people code.7 -
One coffee down and my eyes are just glazing over my code and wondering... right... what is it I gotta do now ... ? What day is it ... Where am I ...3
-
If the code is running, then it must be doing what I want. Right guys? Is it normal to be this paranoid even after lots of runs of the code without crashing?2
-
My FIRST robotics team 5024 is ordering sweaters and I can put anything I want on the back as my code name sortof thing. What is witty that I can put on it?2
-
Writing ugly code should be a capital offence. And oh, I should be the sole judge of what is an ugly code or not.
No, this punishment won’t apply to me, thanks for asking.5 -
I just realized that in my company , the code review is not important.... And the source code is fucked up.... The structure is like functional programming and Oop combine with redundant function everywhere.
And in the source code there's a folder called depreciating service , I asked them what is that , they told me it is the service previously but not recommended for using it.
I was like "you mean deprecated"? Omg
They don't care about code review and clean code here.
My struggle here is they dare to create one class for the entire project and every code are in that class...
This is fucking not acceptable. -
Am I the only one who heavily comments their code when learning a new language to the point of you essentially describing what everything is and how everything works6
-
Always I see black screen while developers written code. what is that? a specific language or environment?10
-
I read the source code of a guy who decided to name his variables, functions, and comments in Spanish which is not a language I'm familiar with. So I need to first translate the code into English and then understand what it does.1
-
I got a rubber duck that can say what my code is doing wrong! Well, actually it is my brother that just gives me advice on how I can make my code work lol1
-
Not sure what is going to be worse. Fixing the bug in this code. Or removing all of the code I added in the name of finding the bug in this code. I have found myself asking myself why I chose coding when I come have picked something less stressful. Like flaming bull fighting.
-
Say what you want about spaghetti code written by either you yourself or other people, dealing with it is a massive requirement for becoming a dev.2
-
What is easy to code at the moment isnt necessarily the best code in the long run.
- From the dev currently maintaining spaghetties of spaghetti code -
You know shit is getting real when you save and you watch your code formatted start rolling through your code like you're watching someone ... write code...
-indent here-
-pause-
-indent here-
Me: Oh man what have I done?!?!?!4 -
Hilarious comments check it out on the cancer (stackoverflow.com) 😂
https://stackoverflow.com/questions... -
Q - What is more frustrating than the code that won't compile?
A - Boss who is constantly asking you to compile this code.
- as quoted by @GoDmode1 -
Reading documentation for 3rd party software... come across a code snippet which references a class. The class is spelt correctly in the comment but wrong in the code!
What??? Surely if you're going to get it wrong it would be the other way round :/ -
That one line of code that you know the logic of it and you know what is causing the error, but you can’t fix it!3
-
I have a problem. I am too much of a perfectionist when it comes to coding. I need it to be perfect before anybody else lays their eyes upoun it. Functions, logic, commits.. everything needs to look good. This has been one of the reasons why I get delayed so much and miss deadlines.1
-
What is e=mc²?
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
That's "(errors) = (more code)²" 😂6 -
I've had this idea for some time now. How about a website that gathers some of the most well written open-source code and allows you to easily read it for educational purposes? Everyone says that reading source code can be a great learning tool but directly jumping into github is not very friendly to newcomers. I saw what underscore.js has done with the annotated code link and I think it's great. What do you think?6
-
I was looking into time management techniques and came across Pomodoro. And guess what. that's exactly what I've been doing all this time. I binge anime or tv and code when the intro/outro is playing2
-
What is your Favorite library that you always try to include in your code?
1)Logger
2)Sockets
3)Error Hanlders
4)Other if so mention what is that Library
The above question is for any programming language9 -
Hello everybody,
I am 17 years old, I love to code and I cannot decide which new language I should learn.
What do you think of Rust and Crystal? What would you prefer? What is better?11 -
When the QA guy (outsourced to India) asks you what version of Firefox it is that teamcity is using to run the code *double faceplate*3
-
So today I debug the code from the previous developer.... I show this in the file I wonder what it is as I debug , it give the log which is I don't know what to react .....4
-
I submit all my code changes to the integration stream. Co worker integrates my code removes all my changes that breaks his hacky crap. Then complains his stuff doesn't work. I ask him why he he did not conform to the requirments says cause this is what worked before. I look at code see he assigns a value in the message to zero. I ask ever so politely why he is changing the incomming messages. He says this is what works. I Then send an email to him telling him this in an error. He reply saying this it what works. At stand up he complains and says no messages are getting through it doesn't work. The team tells him to revert to the original code. (My code) and update his code after two days of emails to bosses and complaining he reports it works with my code after he is done. He is the senior senior chief grand Pooba and makes more money than me.
-
Something I hate about working in the team is that the code reviewer will stall the time and leave a lot of pull requests unreviewed. As more code changes more commits and more pull requests.
The code base is conflicting with each other, what the fuck? I hate this.5 -
The database column contains values, yet there is nothing in the code that inserts or updates the values in that column.
I'm not sure if the original author of this program wrote bad code or was some kind of malicious wizard. What I do know is that it scares me.5 -
CSRMESH QUALCOMM IS THE WORST!
I spent months still confused what their source code actually serves, it is so dirty and not even specific. They never update.
I should just go for Nordic instead.3 -
Just curious what people's opinion is on paying for source code?
Not going to do it but just a random question that popped into mind...8 -
When you love to code so much that you get chronic lower back pain 😞 What do you guys and gals do when you get back pain? What is the best way you have found to avoid it?11
-
Someone posted an Enki invite code here before, and now is my turn to give some invites in return!
ENGYN279 (3 uses only!)
https://www.enki.com [If you don't know what this is ;)]6 -
When you compare your past with your old code:
The improvements you could have made, if you had known what you know now.
A commit a day would have kept everything up to date.
A comment every now and then would have made choices understandable
Using classes would have made it easier to replace or reuse code.
Now you have to figure out what the code is supposed to do, and rewrite it.1 -
Not a rant
What do you all use for taking notes? Preferably something that handles code well and is cloud based (or can be dumped into it)6 -
purity might just be the most important thing when refactoring code you didn't write.
for real, if you purify everything in that code, future refactorings will go way smoother and reasoning even more so.
But it's no easy feat, sometimes you face cockroach code. cockroach code is code written nuke style. The fire and forget code that you shouldn't forget.
cockroach code's easy to spot. you can't know what cockroach code does without reading it's comments. roach code is fat, roach code retro feeds from different spots of macaroni. it does IO and everything else all bundled together.
roach code isn't easy to scratch out its async version. in fact, thats a property of roach code. If you can't make it async without a rewrite, you've got roach code.12 -
Have you ever gone through your code line by line and still can't figure out what the bug is...
That's when you know you have ghosts inside your computer4 -
I want to introduce a pitchfork to the absolute dumbfuck who decided that MODX errors should include only the file where they were reported, which is usually engine code, thus telling me nothing about what code called the engine function incorrectly.
-
This comes up when I search on Google 'what is code' lol this looks like a bob the builder remake all about code
-
It is so frustrating working in a pure waterfall environment. My current work is constantly interrupted by QA and UAT defects. Many of which have nothing to do with my code. But they still require me to stop what I'm doing and research what happened. It's 2:43 and after meetings and research I haven't written a line of code on my current project. Ugh!
-
Do senior developers and programmers with many years of experience still copy/paste code from stackoverflow?
If so how often and what is the percentage of the self written code to the total?7 -
Microsoft should have pre-install Visual Studio Code on Windows Platform rather then Code Writer. What is the purpose of Code Writer, anyone?11
-
Always comment your code.
Write comments that explain the reason for this piece of code existing, and why it's written the way it is.
Don't write comments that explain what your code does (unless it's a comment which is going to be parsed as documentation for an API). If your code needs comments to explain what it's doing, you need to write clearer code. -
Talking to my architect:
- hey, we have a lot of code smell and data is structured usually in a chaotic way, also its hard to understand what is going on with all these code duplications, maybe we can think about refactoring, better structure, maybe even we can extract some domains and make life less painful?
- what is domain?
- *facepalm*4 -
What do you do when pull requests are enforced, but everyone is so fucking apathetic about reviewing code?13
-
What would be the best tips for keeping code clean?
I recently noticed how "unclean" my code is, I try to organize it as much as possible but through that I manage to make the code very messy :/
What are your best tips, advise, tricks... lalala?
Note:
This problem mainly applies to long projects and games :P9 -
Visual Studio has been one of my all time favorite text editors. This is Visual Studio Code Extensions Setup what I use.
https://roogen.com/visual-studio-co...5 -
How has weed affected your ability to code short term and long term? And is there anyone who codes while high? What about CBD?7
-
I don't know whether this has been asked before but is it normal for devs to copy/paste code? I feel like half of the programming I do is copy pasting code. I mean, I know what I'm doing. I'm just lazy to type it out.7
-
New on the job. Got assigned to a project a former employee didn't finish, thousands of lines of code with barely any comments or uninsightful comments.
Is this what being a developer is like?1 -
What is worse than editing legacy CSS code? Trying to style a page using only no-code / low-code tools. Simplest things like a border only on one side seems nearly impossible or requires hours of trial-and-error with drag-and-drop-modules and their arcane option dialogs.7
-
So if one aspires to the insanity of programming , what is the best code to get started with . I am interested in creating for mobile , primarily iPhone .9
-
!rant
Context = VS Code
What is your 'favorite/most useful/the one that saves your ass' extension for visual studio code6 -
What is the longest spree of consecutive days without single line of code because of dev environment problems?3
-
What is wrong with me? I noticed I stopped breathing when I code. Coding apnea, anyone else? How can I train myself to keep breathing?5
-
I tend to write with long variable names instead of using too many comments to explain what i am doing in the code. Is it wrong?1
-
Devs out there.. what is your celebration / how do you celebrate when your task / code works as you expected .9
-
Best way to measure code quality is by using wtfps method. Less "what the fu#*s per second" you get, better the code is.
-
PM: there’s a bug could you investigate and fix this?
Coworker: *investigates*
CW: is this correct? *shows a totally different solution to what he was asked to* *naming a variable “fn”*
Me: but that’s not what you’re asked to do. You know it’s possible to do that right (the supposedly solution)
Cw: but that would have longer code
Me: (what?) 🙃
Wtf do you mean longer code?
Cw: shorter code > spec
Me: 🤦♀️
Cw: shorter code > readability
Me: 🤦♀️1 -
Client: "We don't rank for {competitive keyword}. What is wrong with your code? Or is it the design?"
Me: "I'm the designer, not the SEO guy"***sits client down to explain SEO -
So actually on the note of my last rant. What music does everyone code to? I code to EDM, JPop, Vocaloid, old video game battle themes and Heavy Metal.
One Punch Man opening is a favorite when deadlines draw near.9 -
Update to my last rant*:
I got to know what my colleague did as he "rewrote" my code:
He just searched some GitHub-Projects and used the good old copy+paste method.
Awesome bro, "rewriting" code until nobody's understanding it is the best method to improve code.
*https://devrant.io/rants/735762/...2 -
#get unique images ids
images_ids = np.unique(images_df.index)
Dear developer who wrote the code I'm looking at,
thanks, I really need comments like this one. I was wandering lost in 1500 lines of code, looking for an explaination of what the actual fuck the code is doing, and there I see you, comment. It's not like I want to know what the hundreds of lines functions do, who cares about that. What I needed to know, what shed light on this dark forest, is what the numpy functions do, because as you certainly know dear developer, such functions are really hard to comprehend, lacking of documentation.
Thanks.2 -
So my code works, but it's not the best way to do because there is a specific object made as a helper to do what I want to do.
Thing is, it is written nowhere. We agreed with my fellow co-workers, it's written nowhere in the developer guide provided to give the best ways to code.
Just
Fucking
Update
Your
Documentation -
My team has a pathological need to NOT comment! What the fuck!! I think it is because a lot of it is actually magic, so they don't want to admit ignorance. My code is full of "not sure why it works, but breaks when removed." Chunks. That way, when debugging, I actually know what is going on????
I am currently going through and editing someone else's code, and I see code that has no clear purpose, even when removed! Does it do something I don't see??? Does it do nothing?? Fuck! -
EVP handed us a packet for some salesforce "low code application" and "citizen developer" bullshit. What is this garbage? Who's trying to weasel into my space? Now we are obliged to learn and use this restrictive "low code" framework instead of doing what we already know, because management types and IT guys cannot compile C#.
-
when the code works: that's f**king easy
when the code doesn't work: what the f**k is going on, you dirty piece of sh*t, you f**king computer, sh**y compiler.
oh, dear! I missed a semicolon1 -
"Bug fixes and performance improvements" - what I actually mean is that I shipped some dodgy code & this patch covers my humongous arse...sort of.1
-
When people use comments for build configuration. And don't put down handy comments like "uncomment this if you want to do that".
I guess what I'm saying is that this "code cleanup" task is turning into a "code keep the bloated baseline" task.3 -
K&R style Brackets are so goddamn shitty. I hate hate hate hate that style. It makes code so goddamn hard to read. And for what gain? You write "less" lines of code? So what? Who gives five fucks about that? Readability is key for coders.7
-
“Whenever I have to think to understand what the code is doing, I ask myself if I can refactor the code to make that understanding more immediately apparent.” - Martin Fowler
-
What is worse code that works in debug but not in production or code that doesn't work in debug but does work in production. Both without usable stack traces.
Currently batteling both.... -
Modafinil what what?!
Ok so one of the guys at work is banging on about nootropics and coding to get into the zone..... Dafuq is he taking that for?
And I thought a cheeky trip was enough to envision the program and become one with the code...... Not that I know.3 -
What do you do when you realise that the code that you have been maintaining code that does illegal stuff (written by others years ago, but you implemented major changes so that the illegal stuff keeps functioning).
Here, illegal is the violation of terms8 -
Urgh why do code generators write the worse fucking code! Jesus$fucking$christ$what$is$your$god$dam$problem$1
-
My number one problem whenever I need to write original unique code is this question: "What's the next line supposed to say?"
I just really have a hard time knowing what the next thing is I'm supposed to write, even when I know pretty well what the thing is supposed to do.
Anyone else? -
without exception - everyone I know who writes code and thinks ChatGPT is overhyped - thinks 3.5 is what ChatGPT is.
literally like concluding “aws is overhyped” bc free tier sucks.15 -
What is it called when you are out traveling in the weekend, but just want to to sit at home and code? Experiencing this right now4
-
🐱💻 2 TYPES OF EXPRESSION AFTER SEEING SOMEONE CODE :
1- What the fuck is that ? 😨😨😨
2- But I didn't know it ! 😏😏😏2 -
Hello!
I have created gitframed because I believe that code really is an art medium.
What do you think about that ?16 -
Or when I'm working on some legacy mess of php code and changing nothing and then reverting even that causes the whole code to act in some nonsensical way with three buttons hooked to the same code doing three completely different things and none of them having any remote connection to what is in the code. Sometimes I get it to get its act somehow together by fucking rebooting my computer (???). What the fuck is wrong with php and wordpress in particular? Could it be any more of a mess?
I literally commented out my whole fucking code, rebooted the server. Is there some cache I'm not aware of involved? It all feels like some fucked up nightmare.6 -
Nothing like code review and have to read the novel that is the comments on the merge request to understand what everyone's issue is with this one doc block. Wtf?
-
Does anyone knows what the hell is "coala" that's used for liting and fixing code? Cause I am pushing something and they said I need to fix my code using "coala" but I can't seem to figure it out what it is, how to install... I even tried to install in atom as plugin but that shit gives errors.7
-
We need a running theme for topics that treat "the code" as if it is a living thing. Like we never stop to think about what The Code thinks about all this.1
-
If there's a breakdown of the internet what percentage of ur normal code ability (internet is present) can u write or attain ...what percentage of ur codes can u debug (without the internet)...5
-
God - this code is disgusting! Well, let me just try to change this one repo call to return an Optional...
"Hey! The app is broken! What did you do?!?!"
God dammit... -
Just got 3 Enki invites 😀
Use code: SZENJ2510
If you don't know what Enki is, check out their website: https://enki.com/4 -
Sometimes while writing software / consulting I feel like house md. Not always am I right the first time, but this is often due to me looking at the wrong thing. But at the end of the day I am able to give advice that may be seen absurd but usually is correct.
(tip: it's never lupus, what is quite right because code is code)1 -
For those who are on my team, arguing on not putting comments in their code:
How much ever (un)readable your code is, any peer / reviewer / future team member can only understand what that code snippet is doing, but not why was it written in the first place or what the hell you were thinking while writing that logic. So, it'll be awesome if you write that as comments or at least link to the story/design doc which warranted that code.3 -
I use my phone to code. I am using mi redmi note 7 pro. I use notepad ++ to code.
The problem is, even the simplest code of mine is breaking. Can anyone tell me why and what to do?15 -
Is it better if my code has 0 comments or 9999999999999 comments as in, literally commenting every single line of code, explaining exactly what the variable is used for, method etc?11
-
function customActions() {
changeActions(this);
}
Why? Why is this in the code I'm told to refactor?
What am I supposed to do with this?1 -
My boss, Business people call dev code monkey bec they act as money is shown, like monkey likes banana! Dances Which is kinda wired like what they think we are (felt like shit)3
-
Making something that is able to recognize what you're thinking and turn that thoughts into code. #advancedprogramming
-
Code comments are good and all, but there's a time and a place for them. They're more or less an opinionated free-form version of what code is doing.
In a library, they're good for documentation. However in a platform, it makes less sense. Especially one which is changing at quite a fast rate (though it has matured in recent months).
Dont get me wrong, we aren't doing wades of horrible, unintelligible code. We need to be sure of what happens when we call a function, so we make sure the signature is always correct.
def do_good_things(puppies): # "good things" is opinionated. Say what you're doing
"""give treats to puppies""" # doc string is wrong
pet(puppies)5 -
- "what does that function do?"
- "I don't know"
- "how you don't know !? you are maintaining the project."
- "how do I know what 'ConvertFromDataTableToOther' will do !! it has two inner loops that exchange some columns!"
When CEO is doing code review .. -
What do you think about coffee? is it just a psychology need? or it really boosts you to code? question for those who drink coffee9
-
i have been interested in robot.and search info about robot.after that i konwn what is program.and started to code with c.
-
What are some good coding buddies? I'm thinking of toys, not people. Suggestions? I need someone to talk my code through with who won't argue with me even if my code is wrong 🙃1
-
Do you more experienced devs have any recommendations for books/online courses etc. about design pattern or "What is good code" - principals?