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 - "very code"
-
I once met a very cute client. Inner me was saying to go and get this girl. But company's code of conduct is completely against it that an employee shouldn't ask his/her clients out with you or date with him/her. Even my colleagues knew me as a man of criteria. So I leave
.
.
.
.
.
the Code of Conduct and now she is my gf. :)12 -
CS Teacher: *provides shitty code written in (I kid you FUCKING NOT) Microsoft Word, sans font*
Me: *Submits beautiful, fully working and commented code*
Half a point off because I didnt write how many points the assignment was worth at the very top of the code.
ARE YOU FUCKING KIDDING ME YOU CUNT GOBBLER?! YOU JUST **HAD** TO TAKE THAT HALF A POINT OFF, DIDNT YOU? MAYBE YOU'RE INTIMIDATED BY THE FACT I DONT USE MICROSOFT WORD TO WRITE C++?? God, I hope you take a nail gun to the eye.16 -
Boss: I saw that you are using {some JavaScript library}, why?
Me: you asked for this functionality and the library is very good for that
Boss: here at our company we do not use code from other people, we write everything ourselves
Me: but this library is very well built, actively developed and supported
Boss: I don't care, please rewrite this component
Suffice to say, I quit that job asap. Whoever thinks it's a good idea write so much code for a small purpose in an application when there is something available open source to use, is stupid. In most cases it's better to use something which is out there than to waste time writing a hardly stable version of it.24 -
Code: if(customer.primaryContract)
Boss: "just using a variable as a boolean isn't very readable"
Me:
if(!(!customer.primaryContract != !true).toString() == 'false')13 -
Web developers - if you can write code to tell me that my phone number or credit card number shouldn't have spaces in it, just remove the #$!@$!* spaces for me FFS! You know very well people are going to put the spaces in there...15
-
Apparently this guy's pull request claims that his code is "very fast" (Official Linux github repository). I can't stop laughing looking at the file changes xD
File changes: https://github.com/torvalds/linux/...
Conversation: https://github.com/torvalds/linux/...8 -
This genius made his very own super-flexible-and-versatile-never-seen-before-mvc-framework, with no documentation about the code, instead of just donwloading and implementing a popular one.
He left the company.
I maintain it.
Fell my pain.18 -
Was working on a group project.. I ask my partner to give me the code he was working on. Expecting link to repo or at very worst an email
I GET A FUCKING IMESSAGE W 1000+ LINES OF CODE11 -
For fuck's sake please add braces for blocks even if there is only a single loc inside. 1 line wont ruin anything but it would be a very big favor for the person reading the code.
I am talking about java. Python guys, you good ✌️10 -
Completed a project for my final year CS degree and my professor rejected saying it is of very few lines of code.Hope he learns to evaluate projects on complexity and logic rather than number of lines of code. :/29
-
My try at the fractal tree :) This sort of simple graphical code is very quickly satisfying, gonna try to add some wind next21
-
I have a lot of interesting code snippets from some kind of inhouse CRM/billing software, but for now let's look at this very useful PHP function.4
-
There is a very big difference between:
"Here is all the code we have working"
And
"Here is all the code we have, working"2 -
Fullstack dev: Hey I need your help with one of this method in the service layer (We use Java).
Me: Sure. What’s up!
Fullstack dev: When you get a user ....blah blah blah...
Me (typing code):
if (user != null) { ... }
Fullstack dev: Wait! This won’t work. You need to write this:
if (null != user) { ... }
In Java, you write like this. In JS it’ll work, not in Java.
Me: (also fuck this guy)
He’s among the famous devs in the company - (A very very very famous European bank).
I checked his commits for the frontend (React Native)
switch (some_expr) {
case foo:
return stuff()
break // <— note this
case bar:
return moreStuff()
break // <— note this
// more cases here with break after return statements
}
Me: Hey if you’re returning from a case why are you using a break. It’s dead code.
Fullstack dev: It’ll fall through otherwise.
———————
You’re a fucking dunce! Please drink a litre of Carborane in a rusty HIV infested container! Cheers!
PS More to come!33 -
The first time writing code in an airplane was very uncomfortable. Everyone around me thought I was hacking the airliner.
I was writing HTML.3 -
Spent my entire evening figuring something out (I'm new to this) and finally found a possible solution.
Got ready for writing test code, very excited...... aaaaaaand noticed its past 11pm so I've got to go to bed because work tomorrow
😥😭19 -
Coding nightmare -> the guy who wrote this application I guess wanted job security? At the VERY least to be a pain in the ass to anyone else who touches his code....WHO NAMES THEIR VARIABLES PEOPLE NAMES?!?!? do I know what "Beth" or "Sarah" stand for? ummmm....no 😢8
-
I wrote a piece of code. A logic. My senior changed it. And.. I am glad she did.
My descriptive variables and her conditional breakup of logic made up for a very beautiful piece of code. Simple and elegant. So much so that it makes total sense without any need of a comment.
Never thought I would be loving a 5-lines code piece this much.
This is one of those days when collaboration happens for the betterment.
Simply. Beautiful.4 -
My computer science teacher is very sly: while you are working he stands right behind you for some time, so you start writing good code, functions for everything, perfect indentation... But you don't know if he is still behind you, and you're not brave enough to look back, so you write good code for the rest of the lesson.
What a good prof8 -
Me today at class, doing a group work, while suddenly I saw my colleague’s code looking very odd.
Me : “Why is your code like that?”
Her : “Like what?”
Me : “Its not spaced correctly... look its way over there”
Her : “Oh well, I just like it like that, its my style”
Me “...”
And im just like, if she post her code at SO, she wouldve been eaten alive...22 -
Him: You can code, right?
Me: Of course,why
Him: I want to start promoting my (very crappy) music, I need you to –
Me: No!
Him: But, I just –
Me: I already said No.Never gonna happen.
Him: I get it.You really can't code,you just pretend to.A simple website can't be that hard for you if you knew.
Me:(Pushing him out) Nice try.9 -
*Starts compile*
...
...
can't find function foo
ld exited with status code 1
*confused*
*Reruns qmake*
*Compiles again*
...
...
can't find function foo
ld exited with status code 1
*very confused*
*switches compilers*
*compiles*
...
...
Worked!
*dafuq*
*switches back to the first compiler*
*compiles*
...
...
Worked!
*tries not to cry*12 -
One day you’ll write a line of code which will be your very last one.
Imagine wasting it on something like php.10 -
Thus far I've had little success trying to teach code to people I know.
But yesterday.....man
My best friend told me that he was serious about learning. He asked me about my recommendation would be. Against all odds, and after small demonstrations he asked to learn about Java.
I made some coffee and braced myself. Either the dude is a hidden genius or I am an amazing instructor, but he got the whole thing. I introduced him to the basics, oop, variables etc and he got it down in one session. He was able to understand errthing a do a little code along.
So proud.13 -
HELL. YES.
I wrote a complex grid rendering system in c++!
It accepts pixel values and * values (Grid values)
Works very similar to WPF grid, which I LOVE.
The few lines of code needed (On the front end, at least) to do this are in the comments. VERY FUCKING HAPPY RIGHT NOW.13 -
At my previous job a coworker left positive comments alongside any negative ones on my code. “Nice job here. Very clean”, or “nice use of X design pattern here!” Kinda made me look forward to his code reviews.4
-
If YouTube thinks that it's going to coerce me into getting a YouTube Red subscription by inserting a commercial in the middle of a video, it doesn't know very much about me!
I have developed a very useful skill after debugging code day after day. It's called, "patience".9 -
!rant
Our lead dev in the company seems to be a smart guy who's sensitive about code quality and best practices. The current project I'm working on (I'm an intern) has really bad code quality but it's too big an application with a very important client so there's no scope of completely changing it. Today, he asked me to optimize some parts of the code and I happily sat down to do it. After a few hours of searching, profiling and debugging, I asked him about a particular recurring database query that seemed to be uneccesarilly strewn across the code.
Me: "I think it's copy pasted code from somewhere else. It's not very well done".
Lead Dev: "Yeah, the code may not the be really beautiful. It was done hurriedly by this certain inexperienced intern we had a few years back".
Me: "Oh, haha. That's bad".
Lead Dev: "Yeah, you know him. Have you heard of this guy called *mentions his own name with a grin*?"
Me: ...
Lead Dev: "Yeah, I didn't know much then. The code's bad. Optimize it however you like. Just test it properly"
Me: respect++;2 -
An open letter to those who think lines of code == a decent metric for productivity:
NO!!!
Just because I wrote 10 lines of code all day (yes just 10 very well thought out, many times rewritten) lines doesn't mean my day was unproductive. Quite the opposite, while other devs pad their shit with:
//Adds 1 to I
I++;
Yup. Quality code. LOC doesn't lie.10 -
I just finish "rebuilding" a page that I have built last year. My Js file (jQuery) went from 1200+ lines to 600..
I rewrite everything, the functionality is the same but the code is mush more cleaner.
Soo bad and redundant code.
Although comments where very helpful.
Feels good. -
!rant
This might be not much to most of you people, but I just made my very first mod for a game. And it works. And it took me just an hour. 2 years ago I had no idea how to code. I am proud.6 -
for 2019 I want to be the very best dev
that no one ever was
to code them all will be my test
debugging is my cause
I will travel across the net
searching wide on tor
each singleton to understand
the power of the code
devmons its you and me
you know its our destiny
devmons
you're my best friend
and our firewall will stand
Devmons!13 -
I decide to come by scooter and the weather goes crazy!
Weather predictions are "Heavy rain to very heavy rain" for the next few hours!
Fortunately, I have a work-all-night-take-next-day-off policy (which my manager frowns upon but is cool with!)
So, code-mode ON! 😎5 -
So my colleague today was writing some javascript to multiple numbers, and he was getting very frustrated after a while trying to debug the code. the problem was he wrote the following:
AxB
but what he actually meant is
A*B
So yea @_@ ...4 -
that moment when u run the code and it works, and then u run the very same code again and it fails.4
-
"And how are you?" I said.
Eeyore shook his head from side to side.
"Not very how," he said. "I don't seem to have felt at all how for a long time."
"Dear, dear," said Pooh, "I'm sorry about that. Let's have a look at your code..."
And then Eeyore looked at Pooh with terror in his face, before he vanish into the forest.
He never let me review his code again...3 -
I may or may not have pushed to production certain intranet code that upon meeting certain and very specific conditions would display the message "penis penis penis c====3"
because I can't for the life of me remember why would I do that.
Whats your point??2 -
Oh my fucking god.
How can you, after 2 decades as a developer, still produce code to this very day that has that many warnings and suggestions that Visual Studio lights up like a bloody pinball machine from all the squiggly lines!?!
Take your craft seriously or find something else to do!9 -
Keeping old and unused code blocks commented out and not deleting them immediately is the equivalent of leaving that bottle of soy sauce in the fridge even though you know very well that you won't use them ever again.7
-
Sometimes when i code i feel unstoppable ,those are the days that i am very productive,then there are days that i feel like an idiot and i cant code a single line6
-
sometimes in my head i go through code i wrote some time ago and think: "did i think of this case? if that happens something could go very wrong." when i look at the code i see that i already thought about it and catched the case back then. then i am like "daaaamn i am good".
do you know that feel? :D1 -
I have to refactor code from an intern. He's VERY lucky that he already left the company.
If I'd say he programms like the first human that would be very insulting to that first human.
It looks like code at first sight, but when you try to understand what he was doing to achieve his goal you get a brainfuck. Duplicate code, unused code, dumb variable names like blRszN.
He wrote unittests like "expects Exception to be thrown or Server returns Statuscode 500".
Yes, Exception, the generic one.
THESE FUCKING TESTS ARE GREEN BECAUSE YOU DID NOT ACTUALLY TEST SOMETHING.
GREEN IN THIS CONTEXT MEANS: YOUR PRODUCTION CODE IS A BIG PILE OF SHIT.
I already removed 2 bugs in a test which caused another exception than the "expected" one and the test does still not reach the actual method under test.
Dumb fucktard.
The sad thing: The fuckers who did the code reviews and let this shit pass are still here writing code.4 -
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 -
I HATE SVN! >:v v:< >:v v:< :@
I used to use git for my personal code repositories and for my work. In the office I moved on, they use Subversion. I’ve been using it for months, but it’s a pain in the ass :/
We use TortoiseSVN to pull code repositories, and the AnhkSVN for Visual Studio Plugin. It works fine until two or more of us have to work at the same code project at the same time.
Last week we had a very VERY urgent code to release. We had 4 days to finish it (from thursday to sunday, tests included). We had few changes to do, but the problem was that, when one dev commited something, my changes disappeared, and viceversa. The worst part was that my partners and I had to re-work a lot of bugs that we had already fixed! >:v
This is not the first time this happens :/
The worst thing is that we cannot change our repository system because we don’t have time :(
Is there any advice you, SVN users, can give us?9 -
Recruiter of the day: "Hi [...] I think you will be very interested in <random startup name>. You will work on Digital Projects."
Oh, really?!? I thought I would wrote code on paper!3 -
Every time I look at some code and say "what the hell?!" the code refactors itself before my very eyes.2
-
/**
* Do not read before New Year.
**/
Happy coding to all of you guys! My very best wishes for this 2018. May your code be free of bugs the whole year.
P.S. Fuck you testers (just kidding, we need you)4 -
Incase you wonder where I am gone to: Well. Looks like I'm a part time irganist now xD
Yes, this is me,
Yes, this is very fun,
Yes, I deliberately go to church X)
(I still code a lot)13 -
How do I know when I’m ready for a junior dev job? Currently I’m very familiar with syntax rules, data structure, I even created my first p2p app and I’m feeling more comfortable with server side programming and handling dependencies.
But I can’t like code blindfolded and I’m very slow and have to think very deeply and concentrate very hard before doing any minor thing.
How do I know??9 -
C : Cool (for me)
Java : Just A Variety Available (uhm.. no hard feelings java lovers)
Python : Please .. You THink On Nothing (You literally think on nothing xD )
JavaScript : Join A Very Attractive , Sophisticated Code , Reactive In Particular Time (hmm...that took a lotta time)9 -
Yesterday, a very good friend of mine who is a philosopher has given me a present: the book "Clean Code" by Robert C. Martin.
This summer is going to be very good. I'm very greatful.4 -
So this happened some time ago but I didn't know devRant back then.
In school we had to write some code in Java and before the lessen one of my friends said to me that he already knew Java and that it was like a very easy coding language.
Then, when we actually had to code, he was complaining that his code didn't work.
So I stopped coding, stood up and walked over to him. He had only very few lines of code and after reading the error message I told him that he was missing a semicolon in line X.
He then asked me what a semicolon was. At that moment I thought: Oh, it's just that one thing that you put after ALMOST EVERY LINE OF CODE IN JAVA. I showed him where I find it on the keyboard and then I fixed his code (it had way more errors than just a missing semicolon).
I have no problem with helping other people but if that person brags about how well they know Java and then not knowing what a semicolon was, that's just not ok.2 -
So some programmers (specially C programmers, it seems) have this terrible habit of writing very short-named variables. Then in order to understand the code, you need to decipher the meaning of each variable. Example:
```
unsigned int i, n, h, mw, my, ty;
```
This is from one of the "Suckless" projects by the way. They pride themselves in having small number of code lines so this is probably why.24 -
I'm so conflicted! My brother just opened VS Code and tried evangelizing me on the benefits of using a light theme! Should I disown him? Secretly sabotage his development environment? This is very distressing. Suggestions? Lol14
-
The more I play with C, the more I realize why many people hate C++.
I like the amount of control and the simplicity. No unnecessary syntax sugar, and the code is very straightforward to read.11 -
I recently came across my old interview assignment code which I had written while I was still in college. Oh my God, it was cringy! It was such crappy code 😂
My coworker (who had interviewed me) saw it too. He was surprisingly very chill about it, saying that the code is not bad, it just shows a lack of experience. I think I will choose to believe him 🙃4 -
Well that's new..
So I was sitting on a toilet, thinking about life and stuff and b2plane [because of obvious reasons], when suddenly... I felt a very sudden and very strong urge to... code something in perl.
I haven't touched perl in years, don't even remember its syntax [can u blame me though? It's perl], but there we go, an urge hit me.
As soon as I flushed, the urge went away.
@b2plane, I'm asking you as an expert of shit. What's it mean? Is this normal?4 -
Wishing all the developers out there a very happy and prosperous new year. May your code always compile on the first try and your age gets incremented without bugs.7
-
So, my boss is pretty cool. Two of my colleagues made a review of my code (me being new, also on job training). We three were sitting in front of my code, me explaining enthusiastically my code, one of my colleagues looked a bit confused. My boss listening to the whole conversation, he said: "Her code works perfectly". But the way he said it, priceless! I swear, he had a very 'bitchy' voice and also waved while saying that. He looked proud, and we started to laugh.4
-
Ah.. the beauty of clean code.
I wrote a very cleanly written program two years ago. Proper variable names, not too many, right naming, right design pattern,.. Now I come back to it and I am able to instantly figure out the code again. It only took me half a minute.
The importance of clean code... that's something the industry needs to understand more. Well, then there's the money issue. lol5 -
I realized how overly complicated I wrote certain object oriented code a few months ago and now I have to work around it...
I over engineered it... I became the very developer I hate5 -
Best tool:
Your hands!
- incredibly flexible
- express a lot of commands trough very little code (just raise the middle finger and tell me if you are not expressing something VERY strong with VERY little complexity)
- reusable
- interfaces
- smells of good soap
Worst tool:
Your brain
- highly power consuming
- wrinkly, ehw!
- overthinks a lot
- imposter syndrome
- hooked on sugar like it was cocaine
- hooked on cocaine like it was sugar
- refuses to comprehend chthulu5 -
I'm a junior dev working with some very proprietary applications. The point is, I can't Google for code solutions at all.
The seniors are all very put upon and too busy to offer much actual help unless it's urgent.
I beg for assistance until I'm blue in the face and eventually stumble my way to something resembling the solution.
I get one of them to review my code, and while they do I point out all the places I STILL need help.
They don't answer any of those questions but damned if they don't have opinions on how my comments should be formatted.
Aaauuuuggghhhh5 -
"Developer code must ensure that IAsyncDisposable implementations don't take a long time to complete."
Ah yes, the very technical "long time" unit of measurement. God why don't you just go fuck yourself microsoft7 -
Found my old code.
You gotta admit, that's some clean code there, considering I learned C# only for a year at that time.
But those comments....
VeRy WeLl WrItTeN, vErY dEtAiLeD, vErY gOoD8 -
Not ONLY does the new code a coworker wrote straight up not work (and they somehow managed to merge it to master) but it also broke an entirely unrelated endpoint due to an abstraction they tried to make. Very clear they didn't even run their code at all.2
-
Worst project would have to be a code igniter website that reinvented most of the wheel and used very little of the built in functionality of the framework.
-
Damn stupid me...
One of our customers told us, mails are not working with SMTP. They send us a working code example, which looked very similar to our implementation... I was not able to find out what was wrong for hours.
A colleague checked the code later. After 5 minutes: you forgot a ! before checkin the string if it is null or empty...
Shame on me ..3 -
First comment by the architects that were reviewing my test, as part of the selection process:
"Well the code was very well documented, not something we see much of..."
Made my day :) -
Beta version... only devs have access
Screen for a not-ready-yet feature:
A nice image of a faded broken structure, underlined with a "Work in progress" text.
Primary button below "I want it now"
/clicks button
next to the button, a text fades in:
"Please, be patient"
You keep clicking "I want it now", after a few clicks you get "Plese, be **very** patient"
/Checks the source code
it bloody adds a "very" for every 5 clicks and calls an API to send you an email for every 5 clicks:
Thanks for very {n times very} much wanting {feature name}
11 clicks = 3 emails with very, very very and very very very
Yep, I am patient now, especially if I get my hands on you...3 -
I (don't) like how some people say "If your code needs comments, your code is probably ugly and should be rewritten".
Well, asshats. You have never considered complex calculations/functions or "temporary" workarounds, right?
Sometimes, you have to do it in a not-very-readable way for efficiency. There is no way around that in that case, and comments that either explain the code below or provide alternative, slower code that's commented really help others understand your code.
If I ever work with you and you don't bother commenting your code at all (or rather use slow code because more efficient code doesn't appeal to your "muh code dun need comments" approach), I will hate you.6 -
I finished a big refactoring. It makes me feel so good to delete all those lines of code. Even though I have a decided to leave this company in the near future, I am very happy that I leave the code in a better shape. Somebody who is replacing me doesn't have to go through shit anymore.3
-
young user @Mizukuro asked days ago for ways to improving his javascript skills.
I wasn't sure what to say at the moment, but then I thought of something.
Lodash is the most depended upon package in npm. 90k packages depend on it, more than double than the second most depended upon package (request with 40k).
Lodash was also created 6 years ago.
This means lodash has been heavily tested, and is production ready.
This means that reading and understanding its code will be very educational.
Also, every lodash function lives in its own file, and are usually very short.
This means it's also easy to understand the code.
You could start with one of the "is..." (eg isArray, isFunction).
The reason for such choice is that it's very easy to understand what these functions do from their name alone.
And you also get to see how a good coder deals with js types (which can be very impredictible sometines).
And to learn even more, read the test file for that function (located in tests/<original file name>.js. For the most part they are very readable and examples of very good testing code.
Here's the isFunction code
https://github.com/lodash/lodash/...
Here's the test for isFunction
https://github.com/lodash/lodash/...
The one thing you won't learn here is about es5, 6, or whatever.3 -
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 -
Junior dev: Can I run lint on your codebase
Senior dev: hmmm
Jdev: Its a very nice code inspection tool
Sdev: Go ahead
Jdev: wow 50 errors
Sdev:1 -
I have no idea how this code that I wrote last year work and there's obviously no documentation but thankfully I gave my classes very useful names such as "YuDoDis", "Texter467", "TheHolyButton", "GARBAGE", etc. Fucking hate myself sometimes.3
-
THIS FUCKING RECAPTCHA GEM! WHY THE FUCK MUST I DEBUG YOUR FUCKING PRODUCTION CODE AND WORK AROUND YOUR FUCKING BLUNDERS?
VERY LITTLE PISSES ME OFF MORE THAN SUFFERING FROM SOMEONE ELSE'S FUCKING STUPIDITY5 -
I (barely) wrote very few lines of code today and called it a day. In this state of burnout and actual physical fatigue, this is more than enough. God do I need a refresh!1
-
I just finished upgrading a dotnet core 2.2 WebApi + Console App to dotnet core 3.1 and it was a very smooth process with very minor changes to my code.
Not a rant, just posting because it is the first nice thing that has happened for me in a while now.4 -
Rereading old code I wrote and asking myself questions while reading it...then reading the next line, a comment, answering those very questions.
Past self. Thank you very much. 😎 -
I think it will be very odd to ask a girl to wait so that I can read the code on her skirt, with no wrong intentions.
I guess she won't understand how attractive source codes are.15 -
Yet another funny bug for your iPhone friends. Oh Apple...
"The vulnerability can be exploited by loading an HTML page that uses specially crafted CSS code. The CSS code isn't very complex and tries to apply a CSS effect known as backdrop-filter to a series of nested page segments (DIVs)."
https://zdnet.com/article/...7 -
Went for a job interview today, and learned something very important about myself...
...that I should be permanently banned from writing code on whiteboards, for any reason. I have never seen such ugly code in my entire life. Ugh...5 -
I get very annoyed by sites that ask for too many privileges. If I want to comment on some post why would I give write access to all my source code repositories?1
-
Do anybody here work with a codebase that actually has tests?
Or at the very least, the codebase has a domain layer, rather than puking lines of code randomly in the controller?
Am I trying to find an unicorn?7 -
!rant
I came back from a wedding party this morning, went to bad very drunk, my mind was rotating with my eyes closed, but surprisingly I was able to think about JavaScript code I am about to write for a project.6 -
SonarQube reduces our code quality through arbitrary nonsense rules, and it's inability to understand perfectly decent Kotlin code. Unfortunately we have a CTO who is completely enamoured with it. I hope someone from Sonar is reading this: You made my pleasurable Dev job a misery, and it may very well be the thing that makes me quit. Fuck your arrogant product. I honestly wouldn't mind it so much if your UX offered a way to discuss each warning and provide affected code snippets so you could argue your case and collaborate on the rule set. But no, you know my code base best right? Fuck you and and your ivory tower.8
-
ask about his game code logic he will rage, ask about how his front end code doing he will rage, talk to him about my server so that his front end code can follow he will rage.. and the end of final project which I merge my code and his code (I need to refactor nearly everything) he said you are very hard communicate. _. fml2
-
Alright ladies and Gents, i find this topic very interesting but who cannot code without listening and who cannot code without silence
If your in the music listening category, what music genre hits that coding sorcery zone for you?22 -
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 -
It's a very difficult choice for me. I use many open source things on a daily basis.
Unordered list:
-Linux
-Wireshark
-Gotop
-Ettercap
-VS Code
-PHP
-discord.js12 -
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 -
Just discovered that Visual studio code supports regions in HTML!!!!!!!
My eyes and organisation are very thankful for this!8 -
Two months ago I introduced a piece of js code incompatible with ie11 into production accidentally which broke JS for any users with ie.
Apparently no one has noticed and the statistics doesn't present any anomalies. Since they are very few ie11 users.
Should I consider this a mistake or an upgrade?3 -
Such variable names
much helpful
very wow!
Either I need to download sdk source code for var names to show up correctly or I need to memorize which is for what :\9 -
My worst legacy code experience was when I worked as a freelancer and got a tiny job to improve a VBA module in some Excel file for a very big company. So what's worse than VBA? Having to change parts of VBA code that was passed around to other freelancers before like the cheapest dockside whore. After meddling in there for about half an hour I felt like all those cheap ass punter, so I decided to write the whole thing from scratch. What a relief, after 3 hours I was very proud of the thing and it looked clean and well maintained again so I let it back on the streets. 😉
To the coder who comes after me: Please treat her (the code) nice or I will burry you alive in dog poop and burn the whole thing!1 -
So today is a very lazy day for me.
My code doesn't work. Don't feel like bug fixing.
Just feeling sleepy BUT THE COFFEE IS BLAND!!
Sooooo. Here I am, typing away.
Writing these cute commented lines.
I'll thank myself later.13 -
!rant
Designed and written > 1.3k lines of code this week and 98% test coverage..
CI and CD set up and working..
Was a Long week and very exhausting but I feel really good now, happy to start the weekend with whiskey and beer.
This is gonna be one of my most productive sprints so far..
Hope you all had a successful week as well.
Happy Friday 🍻
And please don’t start with any „that’s nothing, I’ve written 5k lines ones“ comments.. It‘s professional, stable, optimized code and code I can actually be proud of.4 -
It's Monday and I didn't feel very good last weekends. Time to go into zone and code. Any poor soul who decided to buzz me shall be ignored.11
-
Legacy code is like overgrown bangs 😋 It's very hard to decide if you have to let it grow out or trim it.8
-
Our Code everlasting
The all creating One
Coders Almighty
Through Our Holy Lines
Conceiving Algorithms
Konrad Zuse our Savior
I believe in Clean Code
I believe in Free Software
I believe in Open Source
Our Code is three in one
I believe in the bug-free project
That'll be compiled again
For I believe in the name of Alan Turing -
Phantom Code: Code that was written in dose state with very little knowledge what the hell fuck you were doing 😧😭
-
>>Struck on a stupid concept with very little documentation.
>>Searched for days, finally frustrated and fucked up.
>>Started searching for libraries,found a decent one with good documentation and even a sample usecase.
>> library handles my application completely fine, me happy and motivated again :D
>>opened the library's source code, that was again very nice and simple.
>>Now learnt the concept and implementing it in my app natively . Even opened some issues in the creator's library
>>thank you github :) -
You see that, over there?
That massive, 10-ton bag of dicks sitting there in the corner?
Secure Code Warrior can eat that ENTIRE FUCKING THING!
SO many flaws in their tests... SO much HIGHLY questionable content... utterly RIDICULOUS bullshit code with no comments and no context... asking me fucking Angular questions when I'm doing an Express test... two answers that are IDENTICAL... and a busted-ass site on top of it all.
I hate this motherfucking bullshit SO much, and at this moment I hate my employer even more for forcing me to deal with it.
But, hey, I hope you enjoy no work getting done today since you seem to prefer I do this instead, so I guess I'll just scare my dog some more as I yell about this bullshit.
Fuck you Secure Code Warrior, fuck you very, VERY much.7 -
Started to write a blues song about this depressing legacy code base, but then it turned into an emo song, and now it's very heavy metal.1
-
Every work experience so far.
The first one... Internship abroad, very messy codebase, almost no code review.
At the end I was so tired I started watching movies during worktime. -
Yay ...
No more !important in SCSS...
All colors pulled from variables...
Such code ... Very clean 😂 -
So today I published my very first VS Code extension! 😁 I don't think anyone but me will think it's useful but it saves me a few seconds every time I change something in my code and I want to test it. Just hit a button in VS Code an and ta da! The project is compiled and running!
VS Code Marketplace: https://marketplace.visualstudio.com/...
GitHub: https://github.com/olback/...3 -
Okay today I wrote a very ugly api.. No f***king json mapper will handle that response in java. The values are dynamic... Good luck to anyone who will integrate into it... And good luck to anyone who will look at my code
Project manager please always give realistic deadlines2 -
Last few weeks have been very hectic and I will explain everything in a few days when all of my things to do are done (if you are concerned - nothing bad happened, just code nightmares. Expect a strongly worded rant soon).
Also, I’m getting vaccinated for the coronavirus on Saturday night!9 -
This is very long along. Senior Developer was doing my code and telling the best way to write jQuery and PHP codes.
The funny part is that he doesn't know anything about PHP and whatever jQuery code he told me to correct was very shitty and difficult to maintain.
That's when I knew. This world is fucked up!3 -
Speed programming contest
Is this a thing... it should be.
After years of practice
I can type and code very fast with in shortcut only style
It actually impressed a
Non techy girl3 -
Oh yeah am very religious.
I attend the Church of JavaScript.
We code 5 times a day.
And pray on Sundays for Internet Explorer.
By keeping away from bugs and living a functional life
We will all one day meet the web in native paradise4 -
Code Simplicity by Max Kanat-Alexander, a very short but inspiring book I've read two or three weeks into learning programming. I can only highly recommend it to beginners and probably even people who already have some experience in the field.5
-
I'm very bad at reading someones code. For example when someone on uni asks me to help him with code I just write it from scratch, I can't find the mistake or even understand thoughts of this person. I'm afraid that when I'm going to work in team I'll be useless. Can I even do something with this?5
-
I just got a job this month and one of my colleagues talks by himself 😔 making jokes and criticizing his code out loud. It is very disturbing ...2
-
Pulled an all nighter for a project, the next thing i know i am demonstrating my code with the error message i forgot to change which was houston we got a problem, i felt so weird and i was laughing very hard after the project presentation
-
I have the habit of adding //todo comments to my code whenever I need to implement something later. Very useful to just search your code for "todo" and see what is left to do.
That is all very well, but I just searched my project for "todo" and there are SO MANY //todo comments in the third party dependencies...4 -
That feeling when the code in a massive PR is of very high quality... Only comment is about some class name...1
-
Piddling, and trying to learn some game stuff. Very simple game stuff.
Example code:
if (level % 10 === 0...) {
speed += 0.3;
...
} else if (level % 5 === 0...) {
speed += 0.1;
...
}
But because Javascript, console log reads:
speed: 0.5 <-- this is the initial console log
speed: 0.6
speed: 0.8999999999999999
speed: 0.9999999999999999
Well done Javascript, well done.25 -
Wrote this little script to generate a Rant of a given user based on his Existing Rants
Code:
https://gist.github.com/theabbie/...
REST Endpoint:
https://devrant-gefgjr8gnr28.runkit.sh/...
Rant won't be very readable though.35 -
I hate so very much about so very many things, I forget some of the things I love.
And what I love is small lines of code that reveal something about their developer. This? This I love to see.
Some guy here studied C at university, decided he liked it so much he would port it over to JS. Absolutely pointless effort, but he decided he would do it nonetheless. The code is clean, documented, just with this little quirk and I'm honestly smiling. You rock, buddy, whoever you are.2 -
So the library we used to interact with s3 had this very cool delete function. (Pseudocode)
function delete(bucket, file)
request = buildRequest(bucket, file)
sendRequest(request)
OK
Now imagine how many problems we setup without delete permission, because we assumed this librsry actually returns an error code -
So my senior visited some of my very old code today to make some changes on his own, then asked me to explain flow since he wasn't understanding it.
Me after looking at code for 2 minutes:
"When I was writing this, only God and I knew what it meant. Now, only God does." -
A colleague of mine was very smart, but didn't know how to use classes in .net or object literals in js, so he organized his data with arrays.
It worked, of course, but, god, did I hate working with his code. It would take hours to make simple changes.1 -
I've been writing Java the last few days. Really makes me remember why I enjoy writing objective c / swift so much. It's not necessarily the crazy syntax of objective c. It's the conventions behind the languages. It's very easy to make your code read like prose. Which when you become used to this it's very hard to jump back into spaghetti code with abbreviated variable names and such.3
-
Porting a very old program I wrote from Console to WPF app... looking at the source code, I'm amazed that it has been working all these years...1
-
C++ might be very good in memory management but it's an absolute pain in the ass. When the src has thousands of lines of code it's clos3 to impossible to manage the memory. The errors are so vague.
And porting the code to a new hardware is an absolute nightmare.1 -
Chased a bug for nearly a week. Huge code base, over 2mn lines consisting of a mess of C++, Python and Lua glued together.. Wrote a very complex distributed computational framework. End up with a elusive compiler bug in GCC.. FML
-
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 -
Recently, Android development, because it feels good to think about an app idea in your mind, write the code, and seeing it working in your phone or tablet; very rewarding.3
-
Best: Realising I can code and I actually do have the drive to pursue this career but need to make some changes to get there.
Worst: Also realising I'm very logic oriented and process driven and work in a company that would rather piss on exposed power mains over training their staff. -
Them: Maintaing code quality is a vital part of our team culture!
Me: Really, how important? Can a feature slip to facilitate necessary refactoring?
Them: Well no. We've made a commitment to the client.
Me: So, code quality is not very important then is it... -
The best dev advice a dev has given me is to write clean and structured code from the very start of every project. Changed my life in general.
"How you do one thing is how you do everything." -
After waiting a very long two days, my app was finally accepted🙏
https://itunes.apple.com/us/app/...7 -
i like to code because:
- it's challenging
- it's very personal, it's my way to solve the problem
- in the end i might have something cool that i did myself and that's priceless -
As I mentioned in previous rants
The company that I work for is very loud and noisy, making it really hard to code.
First day in new office, bigger space in the same building....PEOPLE HAVE COMPLAINED ABOUT THE NOISE AND LOUDNESS
FIRST. DAY.
Sorry guys, I have complained too they dont care.3 -
My coding style is extremely fundamental (I guess); meaning I have to write every piece of code myself and I don't like to use anything ready, which makes me very slow and costs the employer lots of money and time.
It's becoming very discouraging, but I just can't give it up!
Any ideas how to improve this situation?5 -
Love the docs that provide lots of segment examples everywhere, but no full examples. No source code. Very helpful2
-
Has any of you worked with someone claiming he's a "Senior Software Engineer" but he does not know what he's doing? I'm not saying I'm a very good developer myself but I know how to differentiate a good code from a garbage code and architecture. It's really becoming a pain in the ass...5
-
That moment when you join an organization and your job is to maintain and update their website, but their past web developers didn't indent any of their HTML and CSS code, and their class names are all very vague...2
-
I am the very model of a modern major sociopath
I like to fill a bathtab with some virgins blood and take a bath
I code in ruby and rust and make future generations cringe
at the awful fucking syntax that I pushed on theeeemmm
I am so very gleeful yay
I am so very cheerful may
Just shove expanded jargon in your face
and somehow yet you say ok.
I am the mind behind the nosql
and I made a me a mongodb
I created shitty storage methods and I laughed with evil glee
you'll never be able to code in any of these things good for me
because performance in apps that use these things is fraud you see
i am so very warm in my bath
i make shitty programs and i laugh
now join me while i sacrifice this calf
and make this video of about that shit the graph -
Have a friend who wants to enrich his coding portfolio but is scared of people copying his more serious code if he puts it up on github.
Told him it's all about open source and he could just keep the more casual code up there while giving access to serious projects on request from a company, but it's not very ideal, is it?
What would you tell him?7 -
Some people be like:
MAN: Are you at office?
SE: No, I'm on a airplane at 35000 feet;
MAN: While you are up there, you should write more code. After all you know that bugs won't survive at 35000 feet.
SE:(sighs and facepalms) hmm that a very good point....
MAN: plus you are closer to the cloud, so server code should run faster or with lower latency at least.
SE: (jumps off the plane)3 -
Do you ever look at old code from years ago a think “god that was bad”? I’m so embarrassed by something I wrote on 2010, it’s shockingly bad!
I actually feel a little low and think maybe I’m not very good! Of course now my code is so much better but think to myself, is what I’m writing now gonna be the same down the line?2 -
Ok Rust help you write robust safe code and is very fast.
But at what cost ?
But why on earth the syntax is very disgusting. It takes time to familiarize with the horrible syntax.
And I feel like the sadistic rust cult members actually enjoy making it hard to read so that they can jump on any occasion to shout at you : you still lacking rustlang skills
Fuck that shit I'd rather write in golang or just deal with C++ . At least their syntax doesn't make me wanna puck11 -
I really fucked up thinking I had all the time in the world.
I also wrote very shitty code but I know that would've been hard to avoid, so it's cool. -
A lot, I'm very lucky with projects that need a team, always have to code the 80% of the project by myself
-
Stepping through the source code of a no-code-graphical-programming-tool (or however you call that) to understand why my stuff isn't doing its thing or at least see what it wants from me.
Very intuitive1 -
People get so defensive about their code! Especially, code that becomes redundant. Suddenly, they get all activist type, as if their puppy is being put to death, and come up with the most convoluted of reasons why it is very critical code.2
-
the AI says the code I'm trying to design is very complex a problem, d'awww I'm not a failure 🥺
the solution seems to unironically be to delete half of it and make it far simpler / less features lol
why can't I make my code psychic to what I want, ragh! oh well1 -
The rest of my team do code reviews like human linters (not very well). I love the look on their faces when I volunteer to review their changes.2
-
I'd like to one day be as good as my tutors or my better half.
Overseeing research code and developing it further with very little documentation seems like a very precious skill to me. They have my respect for that.
That would also involve getting a phd.
I feel so clueless sometimes but apperently I'm a fighter, so let's keep goin and trying :) -
Quick question...
Can you guys code without any reference?
I find very hard to memorize all the functions and etc...4 -
Good code is a lie imho.
When you see a project as code, there are 3 variables in most cases:
- time
- people / human resources
- rules
Every variable plays a certain role in how the code (project) evolves.
Time - two different forms: when certain parts of code are either changed in a high frequency or a very low frequency, it's a bad omen.
Too high - somehow this area seems to be relentless. Be it features, regressions or bugs - it takes usually in larger code bases 3 - 4 weeks till all code pathes were triggered.
Too low - it can be a good sign. But it should be on the radar imho. Code that never changes should be reviewed at an - depending on size of codebase - max. yearly audit. Git / VCS is very helpful here.
Why? Mostly because the chances are very high that the code was once written for a completely different requirement set. Hence the audit - check if this code still is doing the right job or if you have a ticking time bomb that needs to be defused.
People
If a project has only person working on it, it most certainly isn't verified by another person. Meaning that only one person worked on it - I'd say it's pretty bad to bad, as no discussion / review / verification was done. The author did the best he / she could do, but maybe another person would have had an better idea?
Too many people working on one thing is only bad when there are no rules ;)
Rules. There are two different kind of rules.
Styling / Organisation / Dokumentation - everything that has not much to do with coding itself. These should be enforced at a certain point, otherwise the code will become a hot glued mess noone wants to work on.
Coding itself. This is a very critical thing.
Do: Forbid things that are known to be problematic in the programming language itself. Eg. usage of variables in variables, reflection, deprecated features.
Do: Define a feature set for each language. Feature set not meaning every feature you want to use! Rather a fixed minimum version every developer must use and - in case of library / module / plugin support - which additional extras are supported.
Every extra costs. Most developers don't want to realize this... And a code base that evolves over time should have minimal dependencies. Every new version of an extra can have bugs, breakages, incompabilties and so on.
Don't: don't specify a way of coding. Most coding guidelines are horrific copy pastures from some books some smart people wrote who have no fucking clue what you're doing and why.
If you don't know how to operate on people, standing in an OR and doing what a book told you to do would end in dead person pretty sure. Same for code.
Learn from mistakes and experience, respect knowledge from other persons, but always reflect on wether this makes sense at this specific area of code.
There are very few things which are applicable to a large codebase on a global level. Even DRY / SOLID and what ever you can come up with can be at a certain point completely wrong.
Good code is a lie - because it can only exist at a certain point of time.
A codebase should be a living thing - when certain parts rot, other parts will be affected too.
The reason for the length of the comment was to give some hints on what my principles are that code stays in an "okayish" state, but good is a very rare state -
Aaaah the joy of carefully crafting and testing extensively on multiple aspects (code, UX, compatibility) your own craft...
... Only to get "IT DOESN'T WORK ON MY MACHINE LOL"
They didn't even read the very simple instructions of "double click on that exe" -
!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 -
You go very early to office with happy mood to code what you were thinking all night....and when you reach there is no network nor power (to laptop)....
!@##$!@$!@#$Q@#$
#FFFFF -
Just married, sold my expensive laptop to pay some debts, and waiting for a very cheap refurbished laptop that I just bought. Can't wait longer!! Need to code something in React!3
-
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
-
My gf wants to be a nomad.
I just like to code in my chosen place of work (home) and not lose focus with moving around.
I'm worried, I get anxiety if I don't find myself in places that let me be productive. I'm very much like a cat in that regard 🐈7 -
Am I the only one who very often creates a new project folder and copies all the code because it's easier than cleaning dependencies and such?1
-
Just wanted to work on some of the weekend ideas... I thought let's just install vs 2017... While installing I found out that I can't open any other vs... Not to worry, I thought, vs code may save the day...opened vs code... "Hey... There's new update... since it's normally very quick to update vs code lemme just install the update while vs 2017 is getting installed".. BAM!!! ... Vs Code update process got stuck for 20 mins..."Can I cancel the update? ".. BAM AGAIN!!! now vs code won't open.3
-
Any idea of how to protect your nodejs source code on a client's onsite server ?
If they can SSH, they can get the entire source.
This is built into the angular framework very well but I don't know how to do this on a server.
Any neat packages for obfuscation, uglification etc ?8 -
the company I work for has code that's very procedural which makes cringe as I strongly prefer object oriented.1
-
Very useful!
It's not just about code but the whole package.
Watching great programmers fail miserably at project management, research, documentation, team leading and acting professional is just embarrassing, especially when they slate those who went out to educate themselves.
🎙️ Mic drop, I'm out!2 -
the Death Valley of PR approval
I have almost 3 years of work experience in programming professionally. Currently this is my second company. Previous company I worked for was very loose regarding clean code, code readability, tests etc. It was their way of doing things fast, making working changes quickly was the most important thing due to its business. Now I work in company where I spend a lot of time in some limbo when my code works and my code is merged. It sucks, I make all kinds of mistakes which would be tolerable in my previous workplace, but now it keeps me from releasing code. I now the way I do things now is the right way and it will result in me growing as a specialist, but it is very frustrating and damages my self esteem. I hope it will pass one day.7 -
I love reading code samples where the author was clearly very talented and up to the task, but had clearly used a different language up until that point, so they write with a strong accent. The C# codebase I'm working on right now for example had clearly been written by Delphi programmers6
-
Tdd isn't very effective if the spec keeps change as you work.
I was trying to be good and write tests as I went, but it just ended up taking twice as long since I had to keep rewriting the code AND the tests.3 -
I've never written any unit tests for any apps/programs I've developed.
I would tell myself, this time you're going to create some and be a better developer by doing so. I end up just creating the file and that's it.
Most of the bugs are discovered during the user testing phase so I always end up being lazy writing unit tests.
I write very defensive code though so that helps a little but all in all, it's a very bad habit that I need to snap out of4 -
The one place I get to have fun with my code is the tests. Who the fuck cares if I use the test string "Mr. Snuffleupagus"? Please stop ruinning the little fun I do have by changing my tests in the very next commit.1
-
Why does all source code that I see looks like someone just put new things in the file that was opened in the editor at that very moment instead of thinking about where it really belongs?1
-
Hand-coded or drag-and-drop web design do you prefer? And why?
I have been hand coding for a long time since I started programming. In fact, HTML is my first 'language'. I found that it is very slow to code compared to my normal friends who use Wix - which makes me consider a change.
Plus, I am not very good at designing.10 -
Well editor? nvim
Vim that just works.
But actual IDE? Most certainly the JetBrains products. The very best code completion, code generation, error checker, etc... all that even in the open source Community Edition :) -
!rant
Today I learned you can basically just copy and paste python code into a PHP script, add some brackets and change some functions and it will just work.
I guess this saves me having to rewrite this very dodgy pseudo-random number generator I have to make!1 -
Sitting on a hot chair in this hot weather working on a hot laptop to fix some ..... not very hot code.1
-
I know someone that’s constantly paranoid about being spied on by the government and fears companies stealing his code e.g. github, Microsoft etc.
His solution:
do nothing until we find a secure platform to write code on so that our ‘billion dollar ideas don’t get stolen’
Suffice to say that he’s a very bad coder, not that I’m really that good but compared to him I’m light years ahead.1 -
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 -
Junior front end guy made a backend code, he made even a test.
GET /model/ very nice simple case tested.
NO. MORE. TESTS.
Well, it's the same guy who complained reaaaaally surprised that he had to check http status code after a request.
Im kinda the bad guy because I get upset with that stuff instead of clapping his stupidness2 -
To all devs who don't comment their Code
WHO THE FUCK SHOULD KNOW WHAT YOU INTENDED WITH YOUR FUCKING PIECE OF CODE
Well - I am one of you. I'm realy lazy in commenting. But it is very hard to understand a piece of code if you are not used to a complex architecture.
If there will ever be the chance of having another dev seeing your Code:
COMMENT IT1 -
I am very close to being a violent psychopath from "Always code as if the person who ends up maintaining your code is a violent psychopath who knows where you live."
Foreach within a foreach with counters and a check if the counters match in the inner foreach and in that case do something.... And that's not even the worst part of the code I have to modify ever so slightly... Fml3 -
Am currently handling a very bad code, once you add any feature the app crash and you have to fix the whole POKER application ( as you know poker is a really complicated and everything related to each other). The app crash and every single line of code goes wrong. As well i do barely have a break and am working overtime and during the weekend.
In addition to all of this i have a very complicated design and animation to the chips. Adding to this am the only developer working on this project.
Summing-up am working 10 to 11 hours per day 7 days a week. And still the manager is dissing me as if am not a good developer.
I feel so bad, i cant describe how am currently feeling.
So guys do you believe handling a very bad code might reflect your coding skills ?3 -
What's your opinion on functional shortcuts and 'hacks' in many languages, like map/reduce/filter, ternary operator, lambdas,inner/anonymous classes?
Imo they can make development faster and more efficent but they make the code very unreadable, especially if someone else has to read it, Therefore I try to use them only when it's appropriate. My dev friends use them too much and it makes reading their code a hellish experience, especially in Javascript with Rx.3 -
Wow.... it seems Entity Framework with Code First/Annotations is FAAASSSTTTT vs using Fluent API. I don't mean writing the actual code but the DB file opens very quickly unlike my last attempt years ago...
Or whoever wrote this library is really good... https://github.com/msallin/...
Solves the whole headache of creating the initial SQLite DB... -
I'm working on a very-customized web player at work.
I filled my code with a plenty of comments, many to justify those functions / fixes.
For those comments, Safari is depicted as worse than Edge.
Is it even possible?
The next dev, which will take my code in his hands, must know how much we suffered to build it.4 -
What do you guys think of code review? It was supposed to find potential mistakes in your code base, and share your knowledge with your co-workers, right?
In fact I have very bad experiences with code review, not just with 1 company, but quite a few. Code review process always comes to something like this:
Reviewer: Hey, I don't like your solution A because of disadvantages A1. You should implement solution B, because of advantage B1 blah blah...
Me: Yes, it's true that solution B provides advantage B1, but at the same time introduces much more complexity to the code base than necessary, and has disadvantage B2. I am aware that solution A has disadvantage A1 but it is justifiable and easier to overcome than B2 imo. In fact, solution A also provides advantage A2 that you might not know...
Reviewer: No, you HAVE TO implement B because of advantage B1 blah blah *repeating why B1 is awesome again*
I feel like it's just people trying to shove their preferences down my throat. Either code review is useless, or the companies I work for do something very very wrong in code review. Anyway, it's really discouraging me fron participating in team discussions.5 -
So why exactly did anyone ever use zoom? The first time I ever heard about zoom was when I read a very detailed code dissecting mini writeup of its obvious flaws by a sec. researcher. Why and when did zoom become a thing? Also wtf where the zoom devs smoking and where can I get sum? That shit must fuck up your brain beyond repair.....1
-
Code monkey like fritos,
Code monkey like Tab and Mountain Dew,
Code monkey very simple man,
With big brown fuzzy secret heart
Code monkey like you...1 -
Did a programming contest today. Can't say I did horrible, but I didn't do very well either.
One thing I did learn though: I prefer contests where I directly compete against other people's code (bot programming contests) over "who can comprehend and type this the fastest" -
Anyone have a Sacred Code regarding unattended computers at work? We love pranks in my office, but we also have a strictly adhered to code if someone needs to leave their PC unlocked to run a script or something. I've threatened to murder people who tried to mess with people's PCs who were running things. The Code is very important.5
-
What might be a legit reason to commit a target directory with thousands of compiled crap the code in the very same repository generates? Why the hell would anyone want to do this?4
-
I am trying to implement an API. It has a very good documentation, everything is written clear and simple, along with
- HTTP 401 on unauthorized request and
- Error codes from 1-35 with definitions
Opened the provided sample file, changed the username, password and client code fields to our own in the source, then tried the request. The Response:
HTTP 200
{"ErrorCode":-1,"ErrorDescription":"Unauthorized."}
Well, thank you very much! 🤬2 -
I have very mixed feelings about Go's KISS policy. They did manage to keep a lot of stuff easy and they force dev's to not over complicate their code. But there is a line. Generics aren't that hard to grasp. I get focusing on *fearless concurrency*, but how about *fearless list processing* FFS5
-
Some Coworker - developing about 20 years with WinForms and very ugly code.
Me - Junior Dev about 4 years now started with WPF and not long ago with MVVM.
Me trying to teach him some MVVM... Just frustrating. Like talking against a Wall..
Getting a headache now. I need a stressball -.-1 -
Any Unity3D devs out there?
My thoughts: Unity3D is an amazing game engine. It lets you really quickly go from concept to implementation and allows you to prototype very quickly. My concern is that I find it incredibly hard to write good code using it. It's very difficult to write in a test driven way, especially if you put any logic in a MonoBehaviour. It is possible to work around this by using Zenject or another DI framework. You could even use entitas which is an entity component system. But these all have their downsides too. Zenject I find to be quite boilerplatey and not that easy to test either. I also find it really frustrating to be using a really old very of C# (maybe C#4 equivalent but I think it's customised in some way for the engine).
Anyone else struggle to enjoy writing code for Unity3D games?18 -
Enjoy the lyrics to one of many songs of my favorite band Depeche Code - https://youtube.com/watch/...
Words like violence
Break the silence
Come crashing in
Into my little code
Painful to me
Fails right through me
Can't you understand?
Oh my little bug
All I ever wanted
All I ever needed
Is here in my ARMs
Words are very unnecessary
They can only do harm
Lines are token
To be broken
Feelings are intense
Logs are trivial
Crashes remain
So does the pain
Words are meaningless
And less hackable
All I ever wanted
All I ever needed
Is here in my ARMs
Words are very unnecessary
They can only do harm
Enjoy the silence -
I get really motivated and sit to write a lot of code and be very very productive, but then I get demotivated for twice as much time as I were coding.
I just can't write code if not super motivated. This is a very bad habit.1 -
As someone who isn't very good at actual design or implementing design very well, I usually have to start with a template for admin dashboards on my sites. Which means I have to deal with bootstrap. I've come to life with that fact. But what I can't stand is getting these templates and the HTML is so bad, all I see are flying v's! Don't these people know that you don't need 12 levels of divs? And for fuck's sake, run your code through HTMLTidy! Thank God I didn't pay money for this one.
-
You can be very good at writing algorithms and good quality code, but if your architecture is garbage, you'll be doing hacky fixes and end up with a spaghetti code.3
-
I just discovered that Go needs a very long time to compile a 120MB source code file. Beside the fact that the file was very big, it just contained a big amount of byte arrays.
Did anyone had ever such big source code files?5 -
My company used to just let anyone write code for our customers. Now I am the official development department. I knew someone wrote something very similar to a new request I got from a customer, so I requested his code because I didn't want to rewrite everything. After seeing the code I changed my mind and I want to redo it from scratch.
-
Is having breaking changes in an API at a very early stage normal? We have like every sprint at least 3 endpoints who have breaking changes 🤔 I mean, is having refactored code better then stability?1
-
The moment when I wrote a puzzle solver in C.
Not the most exciting thing to write but it felt great at the time.
Before writing every line of code without thinking some steps forward I decided to write it as pseudo code in notepad.
The very moment it was converted to C it just worked, writing it was beyond pleasure, just pure bliss. -
What do you do when you give someone a feature ticket and they come back and the code just isn't what you expected?
Like to you how they did it, assuming they actually finished, is very hacky and not well designed/thought out?
And ur going to need to cleanup a lot of their code? And explaining to them how to do it is just not worth the time and will take longer then just doing it urself?
They just don't seem very bright or able to "get it".
I guess how do you go from a developer to a manager? And deal with devs they don't seem to be writing code they're up to your standards/expectations?9 -
My friend said to me
X - Hey, I ca very well code in Python
Me - Do you know what are library in python
X - No, I heard this term first time1 -
I'm so fucking tired. Forget work, classes and housekeeping are so exhausting, I'd rather numb my brain with another useless code at the office. i was very tempted to stay at work today and miss class1
-
I know it seems very narrow minded, but I've just never given thought to how many developers there are in each country, I only ever think of the West, maybe it's since most code is basically English...2
-
Once someone asked me to look over a bit of code and sent it over Discord. Needless to say I didn't spend very long looking through it...
-
21 Veracode flaws in the code, 21 Veracode flaws!
Patch the code, run a new scan...
...146 Veracode flaws in the code!
(this is why build tools that auto-manage dependencies are a Very Bad Thing(tm) - couple that with aggressive remediation windows and oh boy, nightmare fuel!) -
Well....i started programming roughly 4 months back.....i can code python very well but still can't understand when to implement what and how should i think about a question in order to solve it....
Any help to overcome this problem???6 -
When you hear “Haskell performance”, what comes to your mind? I was never really interested in Haskell since I had Clojure, and I thought Haskell might be slow.
Haskell with GHC is actually as fast as C or even faster. Haskell runs right on your hardware, no VM or interpreter.
When a program is small, the performance is comparable to C. Sometimes it’s quicker, sometimes not. But when a program is large, Haskell implementation would be faster if you’re not a robot that generates perfect C code.
It’s both very high-order AND very fast. You don’t need math to code in Haskell.
Too bad there are no kewl libraries.12 -
sooo, new job. more complex stuff to do. i thought. turns out some project have memory probs. guess what, it's sharepoint! *sigh*... very hard to find the code in trouble.
learn sharepoint and it WILL come back to haunt you!2 -
I tend to do very functional code that I'm capable of reading while writing, but have to spend quite a bit of time on to understand later on...
Especially if it is a group project where execution time is relevant 😐 -
IMO no matter how clean the code is, there should ALWAYS be SOME COMMENTS to anything that might seem not very obvious.
Reading the whole business logic to understand the point to why the piece of code was written seems stupid.
These codes get merged because everyone is lazy to review 2k lines of code for a new feature (including me) lol27 -
Latelly I found out that I am spending more time thinking about how my code would fail rather than programming.
Seems that I am a very negative person :O1 -
Android developers will understand my pain.
When you don't ask android studio to auto create those functions in your activity.java code. But studio does it for you anyways.
Then comes Lint, it will give you a warning on the very same code, that studio commented over the default function.
Damn you studio/lint...get over your differences.
Others have a life to live.1 -
So I was writing some C code, pretty simple code. I had to pass a matrix to a function. The matrix had been globally defined as arr[100][100]. But the actual size of the matrix was stored in 2 vars m, n. Now when defining the function if I do like this:
void fun(int a[][n])
The code doesn't work as expected but when defined as:
void fun(int a[][100])
Works perfectly.
I have no idea why this is happening, any insight will be very helpful.5 -
Is it normal that I have to first study like 2 or 3 days before I can start to code something I don't know very well? My mentor probably thinks I don't know anything. Whatever... I need to implement JWT and I need time to study because I find it complex.2
-
Searching for simples game using canvas + vanilla ES6 and best practices.
Turn out it's very hard to find well-written javascript, so far most of the resources found are spaghetti code.
So if you know any good github page, blogs or tuto, feel free to share! Thanks :D2 -
And I spent hours trying to see why my code won't fucking work, turns out chrome wasn't doing a very good job at loading my updated files until I cleared the cache1
-
Systems/IT person here-am very keen on learning code again. (Got CS degree long time ago). I'm nervous to switch careers but would love to try DevOps! Any advice?1
-
Neever give up on a project if you think you cant do it try learning the skills needed to do it, watch tutorials look at other projects, well i say never give up but if u seriously cant do it due to other issues other then skills well the. dont do it BUT NEVER DELETE THE PROJECT THE CODE CAN BE VERY IMPORTANT OR GOOD FOR OTHER THINGS YOU MIGHT NEED SIMILAR CODE FOR
-
Jonathan Burnhams
Started my career under him, learnt a lot from him....writing neat and simple code, with always 100% test coverage.
Very strict and straight forward. -
I'm using jetbrains IDE products from over an year now. I'm hooked. They're perfect.
But...
I'm looking for a replacement (don't ask why). Tried a few, netbeans seems to be closest to them (still very far).
Recently came across Visual Studio Code. Seems amazing, and very close to jetbrains.
Has anyone tried it? Any other recommendations?
I need IDE for: front-end (including React, sass, JS, etc.) And PHP
Don't recommend Sublime or Atom. Just don't. Or vim.
PS: should be free or close to free.3 -
I never thought in my life that I would say this sentence one day - but:
Today I switched back to VS Code because it uses less memory than IntelliJ.
Context: Only temporary, very resource hungry dev environment, TypeScript, IntelliJ used >4.5 GB of ram and started lagging.5 -
I have dreamed of this feature since the very first release of Visual Studio Code. But now, finally, that dream has become a reality.3
-
IDE: Visual Studio. Overkill of an IDE yet very very useful for everything.
Text Editor: Code and Atom. Although both of these text editors eat more resources than Sublime (especially Atom), what I love about both editors are the available packages and the monthly updates. -
What if some one very cruel programmer programmed a programmer and designer AI that can generate code 700X faster, generate flawless and reliable code / design in any and Every programming language that could replace 100% of the programmers in the world?
What if he give it for free?
And companies started to fire all programmers and designers to download the free AI and use it and it was better than every programmer in the world?
What if the AI was able to code a whole Office suit and all Adobe products in just 3 seconds?
What if it was very intelligent that no one needs to hire a programmer ?
What if any one started to create their own app using it and replace programmers like car replaced horse?
What do you feel about it?
Do you wish if it happen?
Or not?
Is it your dream?
Or nightmare?17 -
Once I wrote a tool to help convert alarm messages from an excel sheet into an xml file with other specific things included.
My colleague (who is very proficient at coding in his chosen system) while I was writing said tool asked why I was commenting code as it was basic!
I asked him to work out what my code was doing (it wasn't mega complex) he spent a long time googling! -
Hey guys how do you feel if someone interviews you for a developer job and then offers you a sales/marketing job based on your past work experience? I was very disappointed when he told me that btw, i told him i dont like that field, i love to code.2
-
Tried out the node.js code demo in this book.
🤦♂️
Terrible format, use tab for indentation, very very long function, redundant code (eg: new Buffer vulnerability)...
The major issue is none of the total.js nosql code works. Eg:
db.clear()
db.insert({...data})
Without any asynchronous call, how do you expect this to work?!
Just fixed the code and updated npm modules for demos in Chapter 3 btw... Took way longer than expected.3 -
There are times when I'm too tired I forget what I changed in the code so I write just "regular" in the title and nothing at all in the description even though it's very obvious i refactored large chunks of the code and added new ones... Regular riight
-
A question, how do I overcome the mindset of doing code challenge in hacker rank every day? 1. Hard to understand the challenge about. 2. Even easy question, very unwilling to do it. 3. If gets stuck, should I look at the answer?
-
Very specific for r, but Hadley Wickham wrote tons of stuff about how to build packages and has inspired me a lot. He uses a lot clean code practices and writes very clearly.
-
And right here is why I hate python
In all c like languages hell even in pascal code blocks are very well separated
I was wondering my code wasn’t doing anything and here the return block was being called at the end of the loop because of tabbing bullshit
At least I can choose to strongly type
Step up from js2 -
i have been watching some jetpack compose tutorials and trying to create projects with it. Its quite cool and looks very interesting. but wrti8 those modifiers seems like a great wastage of time :/
Also, i have an OCD of writing code in lesser number of lines , as much as possible . so i would rather prefer writing
val x = Modifier.function1().fun2().fun()
than
val x = Modifier
.function1()
.fun2()
.fun()
as long as my code line does not cross the 80 character limit guideline, and as long as it makes sense to not switch to a new line.
but IDE seems adamant on breaking those long modifier lines to weird indented codeblock, so its already getting very noring for me :/2 -
Debugging is removing various bugs from program code. So, programming is about creating and adding these very bugs to the code?👾1
-
Are CSS media queries very messy or am I just incompetent? Does anyone have any alternatives to it?
I find it very hard to make decent responsible pages. They either look awful or their source code is just a disgusting mess.6 -
Immediately after the last major release, I enabled CheckStyle to fail on unused methods and variables, and then I proceeded to delete all dead code. The test suite passed and I got approval to merge. Two months later, the next major release went out the door…guess how that went :)
Using TDD or at the very least writing unit tests ensures your code won’t break, or go missing!1 -
I was looking for a RRule Generator Component in ReactJS because I (a back-end dev) am lazy af to build front-end component. It drains my energy and I stumbled upon "react-rrule-generator". And holy moly. It is no longer maintained, but it has a very beautiful code. Then I thought, I should search more open source projects where code is clean so I can learn more.
So, do any of you know any open source project, library code or whatever that you think has a very clean code?3 -
Sitting at my desk, happy tapping away at code, and one of our newer team members asks a general question (4 of us in the office)....
"Uh.. how do I undo a git revert?"
🤔🤦
FML... Very much looking forward to leaving this place next year.5 -
So in my Freshmen year I was required to take beginner computer science...
Past it with flying colors.. It was just simple Javascript.
Come Sophomore year I took AP Computer Science. I got lower grades, not from the code, but from the Technical Writing that the teacher wants in our reflections and other writing portions, not apart of the course.
The code itself was easier then intro. We had block code... Why is that AP? Not Scratch, but very similar.1 -
I find it very surprising that people at work are always reluctant to do code reviews. There are no standards in place and everyone is free to push whatever they want. There is Sonar but it doesn't catch bad logic. Don't know how are we going to deal with this technical debt.4
-
Hey Everyone I’m new to coding and I just wanted to ask what I should be do when feeling overwhelmed and burned out from code, I have anxiety and ADHD, I am not able to focus for very long.7
-
That very moment when you start to visualize your workflow after hours of head scratching, and realize how simply it could be implemented with so much lesser lines of code in comparison to what you thought previously.
-
Hey I just joined this website. Code Drip from youtube suggested this! I am going to be starting my first corporate IT job this July.
But because of this shitty pandemic, my joining is going to be very delayed. Is this a very bad time to start my career? Any suggestions or resources to keep myself busy and be ready for my first job will be highly appreciated.
I am looking forwards to reading some rants here!5 -
udemy.com/java-tutorial
I had some very minimal experience with Arduino and Zelio, so I guess I had the basic notions in the back of my mind, but this is where it all begun.
I was asked if I wanted to learn how to code because they needed a developer, so I chose Java because I liked Minecraft and I thought that if I failed, at least I could code some mods.
Spoiler alert: I didn't fail so I didn't have time to code mods... is it really not have failed? -
What should I create?
For the past few days, I am having a very strong urge to start a daily coding streak but I am not sure what should i I code? Any ideas for a side project or anything which might help me build that habit.
Any help is much appreciated.6 -
My first working code added to the office's project's codebase. It's really an amazing feeling to see my written code along with other dev's code. The senior developers were very supportive and helpful. There is a lot to learn. 😁
-
When it comes to writing comments in your code, I do quite a lot of it. Even for parts where you just need to read the code to understand what it does. However I do write very clean comments, not even snarky comments where I know someone has done something completely stupid. In my work, I generally keep it very clean. I wonder how many people write profanity, or use weird naming for functions or variables?
https://thenextweb.com/dd/2018/...3 -
Not really a project idea per se, more of a very robust plugin idea or IDE feature (Jetbrains preferably), for suggesting better variable names while writing code.
-
Sometimes I don't do a proper review because I don't want to seem very nitpicking. However, now I have to maintain the code that was merged and it has some stuff which is not correct. Now I have to fix it.1
-
Most painful code!!
Well , it was to write a code in 'C' which will print first N times prime numbers. As a noob , it was really very painful.5 -
Daily coding would be VS Code.
> Lots of extensions and works well if the project isn't too big.
Quick and cheeky edits is Notepad++.
> "Open in Notepad++"
Serverside edits is vim.
> I don't really know any other terminal editors.
IDE would be the IntelliJ platform.
> Its just built very nicely.
For SQL (which i don't do very much) I took a liking to Azure Data Studio. -
Just how the hell did we get here!? The culture war has no place in our community. People push their code under anon pseudonyms. When even.the normies are getting scared, you know we're in a very dark place.
https://youtu.be/v5VvJiNUCIA -
Usually I write code in Rails and usually what I happen to rails are vanilla PHP systems, I think I have some super natural knack for finding very old systems that do strange things.2
-
My ambition to learn is too much for my own good. I have so much desire to learn and get going that I'm all over the place reading bits and pieces cause I can't seem to get my foot in the door and figure out where to start from the very very beginning to figure out how to start actually learning to code.
-
Was chilling with my team and remembering some very funny code issues (wasn't at the time) we inherited in a product... when we took control of the servers they were dead...
Code somewhat abbreviated... see why a few 100 of these could do that :)
public class Util
{
... lots of nonsense here...
public static DbConnection GetConnection()
{
conn = factory.CreateConnection();
conn.ConnectionString = this.connectionString;
conn.Open();
return conn;
}
}
try {
Util.GetConnection().DoThingsAndStuff();
}
finally {
Util.GetConnection().Close();
} -
so they brought a senior engineer to our (very small) dev team. I feel like poking my eyes with a nail looking on his code.1
-
Low code platforms. I've been studying them for a few months now and have been really surprised what one can do with them. Very productive stuff for many things even if not for everything. A wholehearted recommendation.
-
How do people check code quality during interview process online? I believe I write a very good one after 9years+ experience but never got passed...