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 - "not code"
-
Dev: Microsoft is shit
VS Code: (ಥ⌣ಥ)
Dev: Oh not you dear! You're not like the other guys
VS Code: (。◕‿◕。)45 -
Received "emergency update" code from internal enterprise security team. Wasn't given time to do code review; was assured code was reviewed and solid.
Pushed code to over 6k lower-level servers before finding this gem buried deep within:
...
cd /foo; rm -rf *; cd /
...
(This ran as root, and yes, the cwd was / from earlier in the code).
/foo, of course, did not exist on some servers.
Now, it is those servers which do not exist.
FMLundefined security root linux file not found directory structure rm -rf / directory not found fml rm15 -
Code review titles by year:
1990 - your code is using to much memory
1995 - your code is not running on window 95
2000 - your code is slow
2003 - your code don't have tests
2005 - your code is not 64 bit
2009 - your code is not using mvc patters
2010 - your code is not horizontal scalable
2011 - your code should be written in js
2015 - your code is not mobile ready
2020 - your code is racist24 -
Code not working.
Comment out code.
Slowly rewrite it bit by bit till it works again.
Check against commented code.
They're the same.
Wtf.
Seven hours wasted on this shit :/3 -
So, a couple of weeks ago I started a temporary job writing code mostly for DB purposes. I noticed during that time there was a specific person just copying my code and not giving credit in the meetings. So I decided to put a small, quirky, joke in my last code just to see if the person reviewed it before presenting.
FF to yesterday, the person did not check the code and he presented a table with a field called PENIS Contract Length in our zoom meeting.
Not sorry at all9 -
when your teacher says he prefers this:
class A
{
// code
};
over this:
class A {
// code
};
me: can u not26 -
Guys! It's 'code' NOT 'codes'.
I check the newbie's code. [correct]
I check the newbie's codes. [not correct]
Programmers write 'code'. It's an uncountable noun so we cannot pluralize it.
Spies use 'codes'.15 -
Request URL: /api/v1/user/53b49b5a30
Request Method: GET
Expected Response:
Status Code: 404 Not Found (as the user is actually not present in the DB)
Actual Response:
Status Code: 200 Ok
Response Content:
{
"status": "ERROR",
"errorCode": "404",
"errorMsg": "User Not Found. Please provide a valid user ID",
"type": "Error",
"userMsg": "User Not Found. Please provide a valid user ID"
}
#extremefacepalm19 -
Installed VS Code, have to say, i like it a lot. Even though it's a Microsoft product.
My new favorite editor.28 -
Yesterday I said: "My code was nice and well organized but then I started to do the things the customer wanted. Now it's horrible and ugly."3
-
About two years ago I get roped into a something when someone was requesting an $8000 laptop to run an "program" that they wrote in Excel to pull data from our mainframe.
In reality they are using our normal application that interacts with the mainframe and screen scrapping it to populate several Excel spreadsheets.
So this guy kept saying that he needed the expensive laptop because he needed the extra RAM and processing power for his application. At the time we only supported 32 bit Windows 7 so even though I told him ten times that the OS wouldn't recognize more than 3.5 GB of RAM he kept saying that increasing the RAM would fix his problem. I also explained that even if we installed the 64 bit OS we didn't have approval for the 64 bit applications.
So we looked at the code and we found that rather than reusing the same workbook he was opening a new instance of a workbook during each iteration of his loop and then not closing or disposing of them. So he was running out of memory due to never disposing of anything.
Even better than all of that, he wanted a faster processor to speed up the processing, but he had about 5 seconds of thread sleeps in each loop so that the place he was screen scrapping from would have time to load. So it wouldn't matter how fast the processor was, in the end there were sleeps and waits in there hard coded to slow down the app. And the guy didn't understand that a faster processor wouldn't have made a difference.
The worst thing is a "dev" that thinks they know what they are doing but they don't have a clue.7 -
Dear coworker: oh my god we aren't in highschool algebra; using "x" as the name of a parameter makes me want to cut you.15
-
me: your code base is vulnerable, you are not using prepared statements
him: not an issue, nobody knows
me: ...
me: ¯\_(ツ)_/¯13 -
This is actually an advice given to me:
"Only ever release your code on a Friday, preferably after 6pm. If you're not confident enough to do that, your code is not ready."
Who says dev doesn't require courage.2 -
Code works.
I'm happy.
Maybe she's happy.
Code doesn't work.
I look frustrated.
She's definitely not happy.3 -
Comment the "why", not the "what". If your code needs comments to explain what it does, rewrite the code (use good, descriptive identifiers).3
-
I was watching this movie's trailer called Let's Be Evil, it did look promising based on the genre (Sci-Fi, Thriller, Horror) and synopsis (includes Augmented Reality (AR) tech) BUT as I soon was on this frame right here, I am not going to watch the movie now. 😂
You are making a high tech movie, at least do intend to add some realistic code snippets or scripts related to AR rather than showing some random plain HTML.
You can watch the trailer here : https://youtu.be/Nsbzf3bL4Qg
Code will appear around 0:156 -
Not commenting my code because "it's so clear what I'm doing, how could I ever forget what my own lines of code do."5
-
To paraphrase Jeff Atwood: everything you write sucks. The goal of programming is not to write great code, but to writes code that sucks less each time you write code.
-
Me @ people having code trouble : haha, relax! It's not the code's fault nor computers, it just does what you tell it to.
Me @ code giving me trouble : I fucking know code has ancestry and you bring dishonor to yours, fucknuckle.2 -
Refactoring code of somebody who left and:
- Plagued the code with TYPOS (milions of them but ok I can live with those... to a certain point)
- Used global variables by default.... of course even where they're not needed
- Used comments only in parts of code where... well they're not needed, important ones are of course left out
- Did not indent code. 3..2..1... Did not FUCKING indent code properly and when he did... did WRONG!
- Instead of indentation he used commented line with multiple ==== signes.... so far top is 60 consecutive lines with olny ==== again no apparent pattern here
- Did not follow a fucking standard in variable naming... no camle casing... there are varaibles assigned multiple times to "temp" variables without no reason just for the sake of wasting resources on the system I guess
This is just the beginning of the review but I already want to change job, die, scream, cry... not in any specific order.10 -
I wrote code yesterday, that functions the way it is supposed to.
I do not understand my code today.7 -
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 -
I couldn’t think of a quote to do, so decided to do a function instead. Duff’s device! (You know, in case you ever wanted a scenario where fall through in a switch makes sense)15
-
Guess what's even worse than reading the code of someone else?
Reading your own code after not working on it for a couple of days.2 -
Team member just requested a code review in French (s'il vous plaît)
Yea, I'm not reviewing your code you pretentious prick5 -
I'm expecting probably no, but in the name of outdoorsy things not at all related to code, anyone else here enjoy electric bicycles?
Just grabbed this thing and it's absurdly fun, and helps me put some social distance between myself and other riders.28 -
It's about a guy that knows better.
I was working as a subcontractor on a bigger system. We (subs) were not allowed to deploy code, we had to wait for contractor to deploy.
One day I got an email that my code is bugged and that my feature is not working on production. I checked it on test env, everything was fine. Then I checked if the code I wrote was deployed. It was not.
I send an email explaining that if they deployed my code it would be working. Then I got a response. There was a bug in my code.
Another email. I asked how would they know? Do they have a test on their environment that failed?
No. There is one guy that READ my code and he said it should not work, so he will not deploy it. He was not a programmer, he was a business consultant responsible for the documentation.
His issue was that I used a function that was not in a class. So if the function is not declared it's obvious it will not work. I had to explain to him in another email, that you can use object of another class inside your class and then call a function, that is not in your class. It was the last time this guy blocked my deploy.
TL;DR, I had to explain a non-dev how object composition works in order to have my code deployed. Took four emails.4 -
Dont get attached to your code at work! Coz it's not your code, you got paid for writing that code and that's it.5
-
When I see a bug in somebody else's code (Gnome):
- "can you please not write bugs!"
When I see a bug on my code:
-"whatever, I'm only human..."
😅2 -
Here's a real tip for people new to the industry.
It's one of those things that's been said over and over again but very few can really seem to employ. I suggest you learn it /well/.
You are not your code. Criticisms of your code, ideas, or your thought processes, is not a criticism of YOU. You absolutely cannot take criticisms of your work personally.
We are engineers. We strive to seek the best solution at all times.
If someone has found a problem with your code or with an idea or whatnot, it is coming from a place of "this is not the best solution", NOT "you're an idiot".
It's coming from a place of "I'm closing this PR because it is not a change I feel suits this project", NOT "I'm closing this PR because it's coming from a woman".
It's coming from a place of "This feature request is ridiculous/this bug is not actually a bug", NOT "you're a fucking idiot, fuck you".
It's coming from a place of "I've already had to address this in a number of issues before and it's eaten up a considerable amount of my time already", NOT "I don't even know you and this I don't have time for a nobody".
You do not get to be bitchy to maintainers because they denied your request. It's not a reflection of you at all. But if you're arguing with someone who has maintained a piece of code for almost a decade, and they're telling you something authoritative, believe them. They're probably smarter than you on this subject. They've probably thought about it more. They've probably seen their code used in many different places. They have more experience than you with that codebase in almost all cases.
Believe me, if we cared about who was behind all of the issues, pull requests, etc. we get, we'd get NOTHING done. Stop taking shit personally. It's a skill, not a defense mechanism. Nobody has the time to sugar coat every little thing.
Let's normalize directness and stop wasting time during technical discussions into opportunities for ego-stroking and circle-jerking and back-patting.8 -
Updating code for big client.
Find that they are not encrypting passwords in the database and are not sanitizing user input from forms.
Do not trust the user!2 -
Not adding spaces in for statements.
ex) bad practice
for (i=0;i<10:i++)
{
//some code
}
ex) good practice
for (i = 0; i < 10; i++)
{
//some code
}9 -
Best: write a lot of code for others and for company :)
Worst: not able to write code for myself and for open communities :( -
Code is not self documenting..
reading 10k+ lines of business logic does not take the place of well defined documentation.
Mic drop.28 -
In my uni course "Algorithms and Data structures" we use Java. Fine. Definitely not my preferred language but it's not like I have a choice.
Anyway, our teacher uploads code files for us to use as reference/examples. The problem is, they look like this. Not only does she not indent the code, she also uses a charset that is not utf-8.
In the rare cases where she does indent the code, she uses THREE, yes THREE spaces...24 -
That moment when you replace
If (blablabla) {
return Yes;
}
else {
return No;
}
with
return blablabla;
And it not passed code review because "We should have readable code"2 -
started converting VB code to JS.
* lets refactor it when we are on it *
After 3 hours, with refactored code not working, uses the old logic.3 -
App fails, Check logs...No error logged. Check source code and debug....
And then you see following piece of code....
try{
//Code to hit an API
}catch(Exception ex){
/*DO NOTHING. Not even log stack trace*/
}7 -
FYI: pressing alt + up does not move current line up in Microsoft Word. Just realized I am not in Visual Studio Code anymore.6
-
I have been trying to understand why my student's code isn't working just to find this piece of code. Checking out code early in the morning is definitely not my thing.3
-
*me browsing through my company's code style guide*
"You must not use spaces for indentation" - awesome!
"Files must not contain more than 4000 lines of code" - wtf?9 -
Doing and Code Review today... Not sure if this guy has really bad OCD, gets bored, or gets stuck and starts commenting the shit of things...
I'm not sure if I like it or hate it... typically "Good code should be self documenting" but this actually might be acceptable... code on the left, 10K foot view on the right?4 -
Just because I have not written any code yet, does not mean I have not started on your project. I can either plan it well or let the code flow from my fingers like diarrhea.
-
Going through legacy or other developers code which don't have documentation or even comments. Plus the author of the code is not working in same organisation anymore to consult. We have to understand the code like deciphering any ancient language. 😥2
-
i have exam in less than 12 hours but i am just trying to type LOL in Morse code.
https://lcwo.net/transmit
NO its not Morse code exam :( -
code not working?
comment code and try to run
uncomment piece by piece
code back to original
running...
apparently, the code didn't know it was right3 -
The one thing they do not say about low-code tools is how much code you have to write when their undocumented garbage doesn't fucking work.
-
when locally editing code but Web is not changing, then adding die() in the beginning, and still not changing
then delete the code and webpage still not changing...
after a lot of cursing, you release you were refreshing on server!!!!!2 -
When a dev complains his/her code was not deployed and you find the code was check-in in wrong branch.
-
Just came across this in a website project of my company.... and it goes on for about 5 times of that. But it's not in the html code, guess it comes from some js framework. Not sure if bug in framework or bad code in website.8
-
Product Owner: There is a major bug with your code it's not working.
I then spend hour looking at code to find out.
It's a content problem! -
Scenario A:
Your code is working. You run again, now it's not working.
Scenario B:
Works on production. Next day it doesn't.
It is nothing you just experienced alternate universe. You probably with your manager temporarily jumped into another timeline where your code is not working.
Next time it happens tell your manager it's not your fault.
Eureka!6 -
Did you know that Alt+f4 and Ctrl+w does not format your code in VS code?
Yes? Our college didn't and we had a good laugh 😂
After that we tried Alt+space+c but he did not trust us anymore.2 -
Goddamit now that school's started I don't have time to code any more. Why can't I just not do school and code all day gahhhhhhhhhhh5
-
Does anybody know of other contests like google code-in, summer of code and hacktoberfest? Not things like codewars. Any type pf contests with large tasks that are challenging. Thanks!1
-
I'm looking for a kind of "lorem ipsum" but not for text, for code. Some kind of random code generator with configurable language to test code rendering, compare programming fonts, etc. Any suggestions?8
-
Why do teachers tend to not explain parts of their code?
I got some C++ material and example code for doing some rendering, and the material says "these parts are not important".
Guess what? If the whole thing does not compile when i remove the unimportant code, it was fucking important!2 -
Everyone's bitching about how costly a College Education is , and that cost makes everyone see it as an option.
While here in Kerala , India my Entire 4 year Btech in CS costs less than 2000$ dollars, it's that cheap , that College is compulsory.
The million dollar question is should I be happy that College is cheap or Sad that College isn't an option2 -
I don't know what happens to me today.
As always, I've gone to work, but when I sit on front of computer, I felt unable to code.
Not afraid of coding, not exactly unmotivated. Just my head is not able to code.
It's strange, because until now always I'd felt so motivated with this project. But today I've spent 3h on front of computer and I've not been able to write a single line of code.
Maybe I need holidays and I didn't noticed.3 -
Concentrating and understanding someone's code/ script. :|
The code is not in class form, does not have comments, and indentation is out of control. T_T1 -
Why do popular media paint "programming" as easy... this is a very big deciet. please let stop this lies.
programming is not for everyone, not everybody can code.
and please dump the f**king "Girls can code" slogan.
there is no need for the hype.13 -
Learn to refactor your code constantly. You are not writing code for yourself. Think about the next person who has to look at your code.1
-
Fucked up.
Reviewed a code and gave ship it for a colleague's code change.
In a single day, got high severity ticket cut to the team.
I am done. Not going to do anymore code reviews. I suck at it.3 -
Start the reading of "clean code".
First thing that i have learn "The only valid measurement of code quality: WTFs/minutes".
What do you think about it ? Agree or not ? -
Trying to understand other people's code like:
- 6 README, in total 7 lines (that's all there is for documentation)
- 40% of code is commentary like (original code, not altered...)
// if(a = b)
// c = d; // this is not working -
Me: trying to do any simple fucking project
Me: cant figure out how to do something simple or cant figure out how to start or how something should work.
Me *Looks up problem* (everytime...)
results: SOMETHING I WOULD NEVER HAVE FUCKING THOUGHT OF.
Am I just a shitty programmer, a shitty learner, or just not cut out for this? because I fucking Love this field. this is the only thing I ever want to do. BUT I CANT FIGURE ANYTHING OUT FOR THE LIFE OF ME EVEN WITH LANGUAGES IM GOOD AT!! WHICH IS JUST PYTHON AND IM STILL SHIT AT THAT.
I TRY TO DO PROJECTS WITH JS, OR C, OR PYTHON PICK WHICHEVER ONE. AND I NEVER KNOW HOW I SHOULD START IT, AND IF I LOOK UP HOW TO DO IT ITS SO MUCH LONGER AND COOLER AND BETTER THAN MY DUMBASS WOULD HAVE DONE (and longer in a good way because its well thought out and works)
HOW AM I SUPPOSED TO GET A REAL JOB IN THE FIELD IF I CANT MAKE THE RANDOM IDEAS THAT I SEE ON THE INTERNET AND WHY CANT I MAKE THEM AS GREAT OR LONG AND SHIT ON MY OWN. SO MANY PEOPLE CAN WRITE SO MANY LINES OF CODE AND FUNCTIONS AND ALL THIS SHIT THAT WORKS AND YEAH THEY LOOK UP SOME PROBLEMS BUT NOT HOW TO FUCKING DO THE ENTIRE THING LIKE SOME FUCKING RETARD
AWDJKBAKWJBDAOLK;JWDBOALBJKWODANLWIO;NIAWDN;PIAWLDJBAWIDHB
I CANT GO A PROJECT WITHOUT LOOKING UP HOW TO DO ANYTHING BECAUSE MY LITTLE BRAIN CANT FIGURE OUT HOW TO DO IT18 -
that BS thing you do when your too lazy to code and just copied a code from an existing class and renamed the vars even if it does not work or not being used just to show your boss that your working hard as f*2
-
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 😅) -
When i code in PHP. I forgot to type semicolon.
When i code in Kotlin I forgot that semicolon is not necessary.1 -
When your friend (who doesn't know how to code) asks you to make them something for an assignment (not cs related) and they say your code is wrong 😒
-
I hope I'm not spending several days worth of work rewriting a code base for it not to have any performance benefits at all.7
-
Note: this is a joke, it's not code related.
Someone goes to a restaurant, and he asks what they got, and the reply to him: "we have a crochet leg, a chopped liver and ligaments"
He says back: "don't tell me about your problems" XD6 -
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. -
The moment when your code is like,
Yeah I'm working, not throwing errors, but not doing anything closely related to the things I should do.
Fuck this construct, I'll recode the whole thing and stop using any two-year old legacy code, for this project -
Sleep sort
The most meaningless hacky code I have seen in a while not to mention it's not even correct -
//not an actual rant
Just curious how many non software students/employers/people code while it is not their main profession5 -
Comments belong here on devRant, not in your code!
Code cleanly folks.
“Good code is its own best documentation. As you’re about to add a comment, ask yourself, ‘How can I improve the code so that this comment isn’t needed?'”
– Steve McConnell7 -
Not commenting my code just to return 2 weeks later to wonder what kind of special asshole wrote the code. And what the heck it does.1
-
I just realized that I subconsciously believe more lines of code means slower code.
It's not intellectual. I understand that little lines of code often are just calling other code. That this is not how Big O works or does not replace benchmarking and that some data structure requires a lot of code for immense speed up. E.g: B-Trees with sizes at page size for big amounts of data read from a secondary storage location.
But still, when I see a function with just 3 to 5 lines, my inner monkey believes it must be fast.
Know your biases, I guess.3 -
I hate it when someone asks me for help in a part of his code, then I find that the problem is the whole code not just that part.
I have 3 options:
- try to make it work, and get lost in his shit, not refactored code.
- tell him that I am not that good so he get out of my face
- kill him, so he can reproduce
PS: just kidding -
"Code monkey not say it out loud. Code monkey not crazy just proud."
-Jonathan Coulton
Regarding many of my rants and, I would suspect, many rants on here. -
Trying to put together all the code of my ajax request into a function so I do not repeat myself. The code works perfectly outside but not in the function. Well fuck JavaScript. I've been stuck here for two days.19
-
Treat documentation as first class folks. DOCUMENTATION is important. And yes, code does does replace a good documentation. Code and documentation are not mutually exclusive.4
-
Performing code review for design quality.
So you return HTTP code 200 for 'ok'. So what do you return when things are not 'ok'?
Obviously something that's not 200. Like 300 (The message with the code was literally "not okay").1 -
Dev Mantra
I do not write code with my keyboard. He who writes code with his keyboard has forgotten the days of the punch cards. I write code with mind.
I do not write non descriptive variables. He who writes non descriptive variables has forgotten the days of the punch cards. I write self descriptive code.
I do not debug by brute force. He who debugs by brute force has forgotten has forgotten the days of the punch cards. I debug with breakpoints and stack traces.1 -
You know what's worse than reading someone else's code? Reading someone else's code with comments that make absolutely no sense!
It's like deciphering hieroglyphics. If you're going to comment, at least give me a hint, not a riddle.
It's not a treasure hunt; it's coding!2 -
Do you guys support today's youth learning how to code? If so, why? If not, why not?
I started coding when I was 11.13 -
There is a period in developer's life when writing comments in your code is a good idea. Then, after some time, when you write comments, it means your code is not that descriptive, is not so good that you consider writing comments.2
-
!rant
Sometimes when I code I become very happy without a reason. I don't know the source of this joy. It's not about if the code works of not, it's just different.1 -
Tldr:
Can't fucking figure out why I'm the only one who can't solve a DP problem in code, when me and friends use the same idea and no one knows why only mine doesn't work...
We are given a task to solve a problem using DP. My friends write their code with the same idea as a solution. Copying the code is not allowed. I follow the same idea but my code won't work. Others look into it, in case they find errors. They can't find any.
The problem (for reference):
Given a fixed list of int's a = (a_1,a_2,...,a_n) and b = (b_1,b_2,...,b_n), a_i and b_i >= 0, a.length == b.length
We want to maximize the sum of a_i's chosen. Every a_i is connected with the b_i at the same index. b_i tells us how many indexes of a we have to skip if choosing the corresponding a_i, so list index of b_i + b_i's value + 1 would be the position of the next a_i available.
The idea:
Create a new list c with same length as a (or b).
Begin at the end of c and save a_n at the same position in c. Iterate backwards through c and at each position add the max value of all previously saved values of c (with regards to the b_i-restriction) with the current a_i, else a_i + 0 if the b_i-resctriction goes beyond the list.
Return the max value of c.
How does that not work for me but for the others?? Funny enough, a few given samples work with my code. I'm questioning my coding ability...7 -
Oh man, developers should not code(verb). Code is cryptic. They should write understandable, SOLID Code(noun)...3
-
If I need 2 weeks to implement a new feature, I need at least one more week to find better solutions which make the code easier to read. Then I would like to spend yet another week to think about other solutions to make sure I can't find one that is even better..
I hardly ever get that time but when I do, I create something beautiful..
The last time I was able to reduce > 2000 lines of code to a about 50 lines generic service which is easily extendable and understandable.
Do you include stuff like this in your estimations? -
Life Bugs
====================
What would you define code that's not "Hard coding ?" ---"Soft-coding" ?
Any suggestions?
-_-3 -
Learning how to leaning. It is not emphasized enough in work place. Reading, speeding, read code, speed reading code. Comprehension of code, grit, growing mind set.
-
From log debug to taking care of a whole software written by a guy who does not work in the company and did not spend any time commenting the freaking code.
The best part? The code is not finished and guys above you do not decide what needs to be done but expect stuff from you. -
Please don't try to decipher your code from 5 years ago, it's a mistake. Thought it would be a great idea to bring an old project back to life. Turns out it is not. Not when I can't understand my own code...3
-
It's raging when you have a great idea but you're not in the good environment (like not having a desk) to code it...
-
This code is so horrible I'm too scared to even fix bugs.
No I did not write this code originally.1 -
It is not only about how good your code is, it is also the business value your code provides.
- Unknown3 -
Not purging my senior devs code from missing curly branches earlier. Maybe not my worst sin, but DAMN DO I REGRET IT NOW.
-
Hey guys! Hear out, I just code and it works on first compile!
And its not just code, its also interact with database query!3 -
Not code specifically, but I've made a lot of friends where I work that I would have never known if I didn't code:)
-
Not a rant, just wondering.
What's your favorite editor (not IDE) out there?
- Atom
- Sublime Text
- Visual Studio Code
- Notepad++
...
- nano
- Other (name it)
I'm trying Atom Editor, I've been a fan of Sublime Text for a couple of years. Tried VS Code, not a chance. Any suggestions?27 -
Been writing some code on code block sometimes its get really annoying when it don't shows error most of the time error are so silly.
Like not using & while scanf1 -
Run code
System flag set.
Code crashes
System flag not removed
Fixed code
Code won't rerun because system flag2 -
Because writing code in latex is ugly, had to make a website to auto generate styled code for me:
https://txstc55.github.io/code-to-l...
Here’s a preview of a piece of code, in pdf, not an image18 -
Never thought an underscore could bug me till today. Took me three hours to find out if I removed the underscore the form field would be required. Thanks stupid formhandler
-
A clever code that works but is difficult to understand or a well written commented code that’s easy to understand but does not work ?
Comment below:9 -
Spent half a day working on some code to add some functionality. Ran into some binary assumptions and found workarounds. Got everything implemented and close to start testing things. Not a lot of code, but a lot of places that needed careful attention to detail. Started looking at the final code needed for initializing things. Found that all the code I wrote would not be needed if I just initialize some things differently. Realized I don't need all this code. The code is literally redundant.
git checkout <changed files>
Okay, now I understand the code better. I am ahead because I am not maintaining code I don't need. Half a day of reading the code helps me understand everything that is there.
Life is good. 😀 -
When you a find a phantom function that looks important that doesnt get referenced, but the application is so big your not sure so you leave it.
-
There's two types of developer.
Type 1 :
def function() {
// code
}
Type 2 :
def function()
{
//code
}
So, which one are you? I won't judge if you're not type 1.4 -
We were learning how to code circles to light up in sequence. As it's similar to how code works for Arduino. Cool. Go back to c# in Unity and teach what the code does not just copy.
-
Going through old code
And it's beautiful
Probably my best code ever
And it feels good
I am not that bad actually -
def longVariableNamesEverywhere(*args):
"""
Not a substitute for docstrings and code comments.
"""
#TODO: insert witty and legible code.
#TODO: learn to read code.
return "Rant and self-deprecation complete."4 -
You have coworkers who talk to code everyday. There are times you are looking at code that you just want to scream at... but it's not your style.
-
foreach(var strTable in strTableNames)
{
DjingisKhanWantsMyDataEverywhere()
}
...I am not fond of legacy code