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 - "it's just code"
-
I'll just tell the client it's where developers go to complain about difficult bugs in their code...168
-
Client: we need you to give us access to the code ASAP. We don't like this black box approach.
Me: You have always had access to the code. It is here on this bitbucket repo and your usernames have admin access.
Client: We want the code moved to our GitHub before EOD.
I check out how to move repos over and it's fairly easy.
Me: just give me access to create a repo on your GitHub account and you can have the code moved over.
Client: Sorry it's late in the day and we stepped out to get drinks. (It was 2:30 pm). Not sure why you think there is a rush on this, we'll handle it first thing next week.
Me: WTF14 -
Client: About this QR code for my website, can we change it?
Me: Well we could redirect, but what's wrong with it?
Client: I just dont like the pattern, it's too noisy...
Me: 🙃9 -
click click...
*reload*
_________________
| |
| This will be wra|
| |
|_________________|
hm.....
ah...
*hits ctrl+s*
*smiling*
*reloads*
_________________
| |
| This will be wra|
| |
|_________________|
what the f..
..
..
hm....
hm....
aha
ctrl+alt+t
*confidentiality*
sudo sublime /opt/htdocs/learning_css/wrapping_text.html
********
o.O but my code ....it's here.....but why wasn't it showing....
*just to be safe*
ctrl+s
*reload*
_________________
| |
| This will be wra|
| |
|_________________|
meh..... what was I thinking
*wastes time restarting xampp*
*searches CSS everywhere*
*steals working code*
*eyes red as hell*
*it's 3 am*
*after 1hr*
*accidentally reloads*
_________________
| |
| This will be |
| wrapped |
|_________________|
o.O
*blinking in confusion*
what the .... how did it work....
I changed nothing.....
*realises*19 -
Codacy is cool!
It gives my code a grade. So it's like school and university, but much easier since I can just disable all the warnings and get an A.5 -
Is this the code life
Another scrum meeting
Caught in the the Node life
No escape from reality
Open your eyes
Look up to the screens and see..
I'm just a dev boy
Doing some debugging
Because there's warnings here
Errors there
Segment faults
Everywhere
Anytime you distract
Takes another hour from me
From me
*piano starts
Mama. Just committed a bug
Merge the branch to production
Did it fast for milestones
Mama. The repo has just begun
But now they going to throw the stack away.
Mama. U u u uu
Didn't mean to code in LAMP
But it's the only stack i know how to setup
In Ubuntu. Without docker
I really don't get vagrant
*piano
It's too late
My team is done
Some dev is working in Nepal
A UX dev. Now what is that?
Goodbye everybody
I've got to go
Gotta leave this lame meeting
And face the truth
Oh nooooo. I i interns
(they have questions)
I want to debug
I don't want to stay till 3 in the morning
*epic guitar
I see a litlle dev over there
Let's code review, let's code review
Did he do the last commit?
Coding in the white board
Very very frightening me
That's bug(that's a bug)
That's a bug (that's a bug)
What the f*ck did you do that?
Magnificcooooooo
I was just coding and nobody liked it
He was coding and nobody liked it, spare his some time to do his debugging
Easy man. Here go. Will you let me code?
A meeting. No,we will not let you code. ( let me code)
A meeting. we will not let you code. ( let me code)
A meeting. we will not let you code. ( let me code)
We will not let you code
Never never let you go
Never let you code, oh
No no no no no no no
Oh mama mia, mama mia ( dude, you've gotta let me code)
Screw you guys, I'm gonna code and commit. Commit. Comiiiiitt!
*epic guitar
So you think you can review me and spit in my eye?
So you think you can dump me and erase my branch?
Oh baby, cant do this to me baby
I've just have to log out.
I've just have to log outta here
*epic guitar solo
Nothing really matters
The users will not care
Nothing really matters
To them
Any way this code blows10 -
Me, in the zone, staring at the code. Co-worker enters.
Co: hey, can you...
Me (not really listening): no.
Co: it's just...
Me: no.
Co: later?
Me: no.
Co: but...
Me: no.
Co: (leaving)13 -
So I found myself explaining to my rubber duck all the things I've done wrong in my past relationships...
What? It's a great guy, I shouldn't limit it just to code issues, I have a life it could fix too4 -
I was refactoring the most underneath part of our server code and just found 'getUserGender' method. I think for a second:We don't have this info. Look inside:
return name.endsWith('a')?"female":"male";
😑 it's surprising how much it works in Brazil.14 -
Just coded for ~14h straight. Started doing some super heavy code cleanup and refactoring. Almost cried when I saw my code from the past.
Maybe it's time to call it a day...4 -
I got my first own office... We did it. We just painted our mini Iranian office in two nights and we about to code it,has 5 min distance to our college and it's a golden opportunity to work and study at the same time.8
-
So I had another seizure last night... (yea not fun), it's been awhile and yesterday's, I have no recollection of what happened.
But today, what do I do? Make sure I can still read and code :)
Honestly, if I forget how to code, not sure what I would do.....
Oh and I just wrote this and somewhat related:
https://medium.com/@allanx2000/...21 -
When writing a JavaScript guide, please don't use emojis as keys in objects. Or anywhere else in code. Zoomers will think it's common practice.
Just because you can, doesn't mean you should.
Sincerely,
everyone26 -
I wish I had a group of dev friends to just sit around and code with. It's just been me, myself and I for the past 3 years now..4
-
I just fucking despise working on someone else's code and it's filled with errors like "reciever" instead of "receiver" or "mesasge" instead of "message"...
it fucking leads to an astonishing amount of fucking errors just because I know how to write english words AND I'M ITALIAN WTF18 -
My boss codes, I'm lead Dev:
Boss: "just finished an MVP of the X project. It's 3 files and 1800 lines of code, plus triggers... "
Me: "Shieeet..."
Boss: "yup, your shit, you'll be refactoring it"
Me: *sigh*2 -
Just looking at code, my colleague ("Senior Java Developer"), wrote...
if (process == "null") {...}
As you can guess, process is a String.
I just don't know what I can tell him. It's just so wrong, in every possible way...10 -
I HOPED I WOULDN'T BE BALD AS MY DAD BUT AT THIS RATE I WILL BE HAIRLESS FROM TEARING IT OUT ON MY BLOODY OWN
I got hired for cleaning up a 2 year project of rushed spaghetti code , where they previously only had 1 programmer aND HE WROTE 37 THOUSAND LINES OF CODE!
OH WE NEED A NEW FEATURE?! LEMME JUST RESEARCH THIS COMMENT-LESS CRAP FOR MULTIPLE MILLENIA BEFORE I CAN GRASP WHAT THE FLYING FRICKIN FRIDGE CODE DOES
To top it off, I've about ONE MONTH LEFT BEFORE BETA RELEASE TO FIX THE CODE!
I'm super grateful for this job as it's my first programming job BUT I'M GONNA SET THE REPOSITORY ON FIRE SOON AAAAHHHHHH
HOW CAN YOU, THE PREVIOUS PROGRAMMER, WORK IN THIS ENVIRONMENT WHERE MOSTLY ALL FILES ARE +2000 ROWS OF UNDOCUMENTED CODE
OH AND JUST GOT A MESSAGE FROM THE PREVIOUS PROGRAMMER:
"You can just remove the unused code and refractor it some, izi"
IZI MY SHITTY POOP CAR
AAAAAAAAAAAAAAAHHHHH!!!
Now with that out of the way, how would you recommend handling a stressful release deadline?6 -
Just trying Visual Studio Code because of it's first product from Microsoft that are totally free😂😂😂12
-
Me: Taking online course for programming. Think it's not that hard.
PC: Coded programm runs good like in the tutorial.
Me: Wow I can code now.
Just printed "Hello World"4 -
You can keep telling me how to code it, and I can read about how to code it, but until I've successfully coded it in a production environment 5-10 times it's all just theoretical to me.2
-
What's the point of using a framework if you don't use any of its features!? What the heck, I have to fix this damn web frontend that is so broken in many ways.
Instead of using an authentication middleware, every single view has the same block of code to check if a user is authenticated. Instead of templates, they used static HTML/JavaScript files and they passed data to pages through cookies.
The "REST" API is so messed up, nothing is resource-oriented, HTTP methods are chosen randomly as well as status codes. They are returning "412 Precondition Failed" instead of a plain simple "401 Unauthorized" when you're not authenticated! What the hell, did they even bother to check what 412 is about when they copied and pasted it from a crappy website!? I would never come up with 412, not even in my scariest nightmare.
What kind of drugs were they using when they wrote such code? Oh dear, I need a vacation...2 -
Met a Project Manager (at a friend's party) who had transitioned to a PM role from a developer role (most probably he wrote shitty code)
Smartass PM to me (after I told I code for living) : I really pity poor programmers and I feel sorry for them, the work they do, the effort they put in l, it's just now worth it
Me : yes you are right if we don't code PM are just not worth it, I understand it's a skill to talk about deadlines and features and what not, but the Pre-requisite is that some one would code it first. Also coding is not that anyone can do, I do it because I enjoy it, I m just not meant for superficial talks and I love building things, that's y I do it..
Smartass PM : (dumbstuck)
After half an hr of bullshit conversation...smartass PM has realized it by now that in Silicon Valley (where we live) it's much cooler to be a developer than being a PM (he has recently moved from east coast)...
PM to me : I just live on stack-overflow
Me thinking : Really !!
People should not compare their career paths, every one has their interest and personality -
Today's highlights include:
The offshore team has put code gems in production featuring the example code generated on project startup that you're supposed to delete or overwrite, an API endpoint that just returns the value 5, and various debugging console.logs. it's a delight reading their code.
My boss also forgot the meeting he called me in for so I've been sitting here waiting for 20 minutes when I could have gone home. I'm glad it's friday17 -
Oh my fucking god... I am looking at this code written by a previous developer and he put the passwords in plain in an array in a PHP file, like WHAT WHERE YOU THINKING? (btw that's also how he checks the password, just check whether it's in the array)
c'mon pls14 -
Learning CSS .
Understand CSS shadow today.
Did a little practice..
And come up with this. It's too easy..
Doing more practice just because it's fun 😄 I think that's why most coders code ! Because it's fun 😊 though I know it's not even "programming language" 😂9 -
When I discovered Clean Code, design patterns, TDD and BDD. It just clicked. Ever since everything build so easy and obviously. I no longer have most of the code problems folks rant here about.
That's when it came to me: it's not enough to know how to write code. To climb off those amateur shoes I must adopt those methodologies, so that the code would be decoupled from me, from my style, and I've got to let tests drive my code rather than vice versa to have a flexible and reliable codebase that is cheap and easy to maintain/extend.40 -
Man it's midnight and all I want to do is work. 5 hours from now I'll be dragging out of bed to go to work where nothing gets accomplished. In 17 hours when I drag in from work I can do real work for 7 hours before crashing while wishing I could just code through the night. It's an infinite loop and I dont know how to fix it!10
-
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 -
!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 -
Java's System.out.println because it's too effing long to write!
And in general, all of Java because you need an MB of code just for Hello World.9 -
When you tell people you're a computer science major and they tell you you should get an education degree as well, because "our nation's children need to learn how to code." Which is fine, but no one tells my male peers they should become teachers instead of working in industry. Just saying. Doesn't make me mad, I just think it's funny16
-
It's nice wanting to follow the best practice but many Java programmer have the bad habit to overdo it making lasagna code which causes painful headaches to who needs to maintain it afterwards. This is just a little sample of the "paranoia driven development" many does in my company.15
-
Just refactored 100+ lines of madness to 5 (FIVE!) lines of code. It's pleasing me and shitting me off at the same time.
Some people still get paid per line of code, I'm convinced.21 -
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 -
OK so I'm just going to announce this. I'm done with my WPF client for devRant. It's not really "Production" quality but it does what I want and well... it's good enough for me and I need to move on.
Here's the release and code if anyone is interested. If you want any other feature, you can just fork and implement it yourself.
Repo:
https://github.com/allanx2000/...
Release: (ClickOnce installer in app.zip)
https://github.com/allanx2000/...23 -
Fuck regex and everyone who has ever endorsed the use of and/or is affiliated with regex.
It's unreadable, impractical, overly complex and complicated and it adds unnecessary clutter to your code, and your thought process.
It's 00:50 am and I just spent 3 hours debugging a regex only to realise forgot a single "?" in a 75+ character long string and I want to go to bed.13 -
Isn't it lovely when someone wants feature X and Y and one is five minutes (and mostly CSS) and the other one is hundreds of hours of backend code.
"I don't want to know, just make it happen. Jeez how hard can it be, it's just a new button"4 -
A bot just made 519 pull requests with malicious Makefile code to get a github actions server to send a curl to a random host.
It's gonna be one of those days6 -
Hey y'all! It's been a while since I logged in.
But I'm back with a dev jingle, just like last year:
Jingle bells,
Batman smells,
Look how my code compiles,
Oh what fun, it is to see,
No reds in my console!16 -
TFW you spend 30 minutes debugging an app that isn't working right only to find out it's working exactly as it's supposed you, you just forgot you put that bit in there that does that thing.
One character change later and it's working perfectly. ONE CHARACTER! THIRTY BASTARD MINUTES! I just spent thirty minutes driving through every line of code and coming closer to the conclusion that Java was doing some kind of strange thing with dropping objects from memory. No, it wasn't Java that had memory problems, it's me! Just check me into the old peoples home now so I can spend my day pissing my pants and making lewd comments at the nurses because that's all I'm fucking useful for at this point!!
I need a coffee.5 -
That feeling when you're supposed to debug code someone else wrote a decade ago but it's such a horrible mess that your brain just gives up and you end up staring at your monitor for an hour in confusion 😵8
-
I like PHP.
It's not as bad as its reputation. Just because it's easy to learn, does not mean it's bad. In fact, with a framework like Laravel or Zend it's not so simple and keeps the whole spaghetti code developers away, which led to the bad reputation.9 -
It's a pain in the ass that you are given a really short deadline with a huge system scope, i think the clients think that i just throw some pixie dust to my pc then it magically code it self.8
-
When it's 5AM, you had zero sleep and your deadline is in 3 hours: Oh loard my saviour php, please - PLEASE just let my peace of shit code work for once. *reloads page*
Error message appears. FUUUUUUUUUUUUUUUUUCCCCCK!3 -
Help?
I work in support and some of the developers here don't seem to realize that their customers can't use the app they wrote because of all the bugs, but they freak out if anyone so much as *thinks* there's a problem with the code.
We have evidence it's their code. How do I get them to see I'm not saying their code sucks, just that a few changes might help performance?
I don't want to insult them, but at the same time, they're only responsible for one application...15 -
It's almost weekend!
But wait! My colleague just changed some code in the production environment. Whoop! Guess what! It's broken now
Fuck you, stop bothering me. I have to celebrate weekend with non-existing friends.11 -
A month ago. The code for a feature was removed because my boss thought it would not be required. When that was done, a lot of regression testing was done and a lot of code was changed all over the code base. And those changes were merged to main branch along with a bunch of other changes.
But now, he wants me to put that feature back just as the release date is approaching. It's just a humongous waste of time. Now I need to find where all the tentacles of that bloody feature reach and manually put back the code. And the bloody testing needs to be done all over again.
When will I get to stop dealing with these kind of people.7 -
I can't take any more CRUD.
That's it.
It seems all I do every day is CRUD, CRUD and more CRUD.
It's easy, it's fast, but fuck me... Give me at least some data manipulation to do, SOMETHING where I actually need to enable my mind, and not just "write code while watching netflix".17 -
So my manager comes to me and says the developer A said he wrote a code that you can re use why is it taking so long to complete, just copy and paste. As if it's just copy and paste😡1
-
Just realized:
We got to a point where I transpile typescript to react to es6 to plain es5. Just so that the browser could compile the code to bytes.
Sort of ridiculous. It's like translating a book from English to French to Spanish to Russian just so that we could create a Slavic interpretation of the book.3 -
800 line file.
Could be 300 lines but despite having version control, the devs didn't have the balls to remove any of the code. Just commented it out or appended _old to the function names.
"It's easier to undo than version control"
Sure, but how much time are you spending wading through the waist-high swamp of shitty, useless code?7 -
My boss just passed me few tasks that my coworkers fucked up. They have more experience, but they do not follow any code style standards and usually write shitty spaghetti code. I'm pissed off and angry because it's not the first time and I'm tired of fixing things that they ruin. Do you ever had any situations like that? How do I handle this? I'm speaking of two particular persons, not a whole company.2
-
*squirming in bed*
If it ain't broke don't fix it.. If it ain't broke don-WHAT THE FUCK IS "payment.needed2"??
Calm down, it's just some bad code but it works, you didn't write it, it's not your probl-WHY THE FUCK DO THE IF STATEMENTS HAVE SO MANY DUPLICATED LINES??
Sleep. Just sleep. -
Today I decided sleep earlier and not to code late night , But when I checked time It was 12.20AM. And after that I was just checking rant, It's 1.00 AM now..☺😁2
-
I hate it when people whine about code reviews. You should never take it personally. We're not against you, we just want good solid code.
I really hate it when it's my boss who's bitching about pull requests. When you throw your hands up and start yelling, "Well I'm blocked, I'm blocked," then you're not helping. You're just being a baby.1 -
"I understand you want to write your own code. But that's not professional. If you have reusable tested code just copy and paste it in your project"
I thought he was joking. But I am realising it's the most valuable advice in jy workplace11 -
What do you do when another dev overwrites/changes your working code without telling you, only because s/he cannot understand how your code works?
And your code was working fine, mind you, no bugs or anything, and is following recommended guidelines/standards. It's just that this other dev has a different coding style and prefers to rewrite everything his/her way even if it means breaking up otherwise sound logic.7 -
Approximately 15 years ago, at school, I had one friend that learned to code in Delphi. One day he came to me and said:
Dude! I made a program that creates a 2GB file!!! (15 years ago 2GB were a lot of memory)
- What is in this file? - I asked.
- Nothing! It's just 2GB!!!
- It's fucking AWESOME!!!3 -
Anyone else suffer from this.
Have a brilliant idea, start computer, open you IDE, write a few lines of code as proof of concept and then just loose interests coz it's no longer a challenge !6 -
Don't you just love it when the lead developer/project manager comes in and totally revamps your code even though it does the same exact thing as it was written before? And then when it's not working he blames you because it's in GIT as your commit...2
-
!rant
I think one of the best moment of life is finding a good song all of sudden. It's like finding a new drug which I can just inject in my ear and code at 100% productivity. -
I'm working at this company where I have to update their app both for Android and iOS and it was originally coded by what seems to be one guy, that has written some of the worse code I've seen (I've seen pretty bad code when I was at uni), there is so much uncommented code, commented code with no real reason on why it's commented, variables that are one or two letters, Lots and Lots of magical numbers for things like images! And for the first few weeks working on the iOS app I was also still learning objective-c and had to look at his code for reference, I cringed so much.
I take pride in my commented code, I take pride in writing description for methods and having my variables at the top of a class and explain exactly why it's a constant. I'm also only just a recent graduate.
This guy that worked out this app is a senior developer, now working on security software for a bank, how is he even allowed to code?3 -
Life cycle of code
1- See what sound code I have written! It's beautiful.
2 - Hey we missed something last time, just add this bit of tweak.
3 - We need to add some flags for some exception cases
4 - Hey there is a new requirement. Just add some more paths and more flags
5 - More flags!
6 - This shit runs now more on flags than on the design!
7 - Flagception!3 -
So my dear programming teacher really hates break statements... I mean really really really. He thinks it's better for readability if you don't break from any kinds of loops (not even ifs) well then we came across a switch statement in class. He says "breaks only exist because it's needed in switches" well how about returning from a fcking swith? or goto? then you need no break...
Is there anyone who could explain why I should NEVER use breaks and why it's bad in any piece of code? Why is it better to just use whiles because fors are apparently evil again? Srsly I just wanna ask him to show me some big code bases without breaks...8 -
Arduino & ESP-32 without the arduino library.
Good look finding any example code. It's just you and datasheets with fontsize 2.5 -
!rant
TFW your graphics ASM code works on the first try.
Yes, it just happened to me, and it's a relatively annoying rectangle drawing routine.
Writing complicated ASM code and making it work on the first try is definitely a new thing to me, I feel so powerful! >:D4 -
I'm tired of the lack of competition. Open source and public code is supposed to bring people together but a lot of the time it just puts people down and makes them think "why would I recode that if it's already made?" It's going to kill the amount of people actually learning to program because their ideas are just crushed by people who already made them.
The people who are going to be more successful are going to be the ignorant ones who don't bother looking if it exists first and that is kinda sad.9 -
FUCK FIREBASE, FUCK CLOUD MESSAGING, FUCK GOOGLE, FUCK APPLE, FUCK PUSH NOTIFICATIONS, FUCK PROGRAMMING AND FUCK MY LIFE. JUST TELL ME MOTHERFUCKERS WHY NOTIFICATIONS IS NOT WORKING ANYMORE, I SWEAR I DIDN'T CHANGE A SINGLE LINE OF THE FUCKING CODE. AND IT'S BEEN ONLY ONE WEEK SINCE THE LAST TIME I TESTED IT.5
-
Kotlin support on Android:
i never liked Java, not because of the language but for the usual bad design implementations and Android is one of those.
Then Kotlin arrived, it looked very promising but it's when i looked at Coroutines that it simply blew my mind:
you just have to write your code and the Kotlin's compliler "magic" will do most of the boring/complex stuff for you and it's even great performance wise!
I even refactored inter-process calls to simple sync functions with few like of code and for a non-android developer like me it's just love at first sight!3 -
Siemens Step7 code block protection (PLC's).. It was designed to lock code that you don't want others to be able to read. All blocks are in a dbf file, so you just need to find the block record and uncomment one line, voila - source code available.
Given the massive use of Siemens PLC's on plants all over the world, and the simplicity of hacking via S7 protocol, usually Internet connected, it's a breeze to steal or modify the controllers code with possible critical implications.
Enter Stuxnet.1 -
Just received the code for a WP site that needs a redesign... The guy who owns it outsourced the job to some indian folks who filled it with at shitton of plugins, and now it's both ugly as hell and a bitch to work with...
FML.6 -
VSCode you fucking piece of shit!
Just got my code working and rewarded myself with tweaking some of the configurations. Coming back to my file and it's all irrevertably messed up with randomly pasted and probably some deleted code snippets.
How's that even possible? 😡9 -
One of my colleges complained that the remote vm he uses to test his Java-Code is so slow that he thinks it's actually just a potatoe.
I said to him... Well you know... 3 Billion Devices run Java.2 -
I want to get in the habit of proper documentation of my code, But i'm not sure how it's formatted, how it should look or how I should even begin writing documentation? Do I open a document and just take snap shots of my code and explain how it works? I'm a little confused. Do I take pictures of my UI and explain how to use it? Is it like writing a book?5
-
I need to do codereviews at work...
Everytime i get c# code im just happy, it's beautiful to look at, easy to follow, new language features every couple of months or so...
And then I get Java/Android Code.... 😩☠🏃♂️🏃♂️🏃♂️🏃♂️🏃♂️.
(I mainly code in C++)3 -
So the juniors finished a feature and it's okay, it passed all tests.
Now I'm cleaning their code and... I opened up a whole file with trash code that is either repetitive, or not even used. I decided to save it in case it breaks one of the features but... nope, everything seems to be running perfectly with just half of the code they wrote.4 -
Everyone who says: "Just rename your .js file to .ts and it's going to work instantly, no errors, don't need to rewrite anything. WELL FUCK YOU ALL! VS code says: 200 errors in a 100(!) line file.9
-
Serously I just recoverd from being overworked and senior developers are complaining to me that their code does not work???
DUDE just read the fucking error and start googling!
How the fuck do you think I learned software development?
It's a fucking matter of trail 'n error!2 -
Because of some theft this year and even though we already have security cameras, my apartment building decided to check the front door locks so it's more secure.
This key looks very high tech... Only issue though is I never use the key anyway... I just entered the door code...
So what is the point of changing the locks? I'm going to guess whoever is stealing isn't picking the lock... People would notice... They must know the code.
Also it seems most of the apartment locks are digital key card/pins too. Wondering if this just means most owners are young or just are techies/devs...10 -
* 1 day of requesting the feature, deadline not for a while*
switch{
case 1:
Manager: How's the new feature going?
Me: I've done a bit of the front end. Here's how it will look.
Manager: Oh great it's done! Does it do ABC as the client requested? Does it also do XYZ that I just thought about this second?
Me: eh this is just part of the front end, I haven't even connected it to the backend - I haven't even started the backend.
case 2:
Manager: How's the new feature going?
Me: I've done a bit of the back end.
Manager: ok. Can I look?
Me: we'll it's just code... *shows them the code*
Manager: oh... so it's nothing really. Call me when it is done
}3 -
It's official, the "front end dev" doesn't know how to code.
Why.
And it's not a "Well I don't know JS because I use React." scenario, no. He has almost no idea of coding.
What was he thinking trying to build the front end of a very complex app with just HTML, CSS and stupid copied and pasted snippets?5 -
It's making me really anxious that I have to cut down on UI/UX as well as code quality just to meet my deadline.
-
Do you ever just think of a feature you want to implement in your program, thinking it's going to be a challenge and then you realize "oh, my program is set up in such a way that makes adding this feature literally one additional line and one modified line of code, without making the code messy"?5
-
I am of the firm belief that a function should always return just one type.
I think it's the most convoluted thing that a function should be allowed to return any kind of type.
I've seen shit like return a string when something is valid and then a boolean if it's not valid.
To me, that kind of flexibility has some funky code smell.
I'm looking at you WordPress 🤨11 -
I just came across this piece of recursive code, as much as I can guess this should be an infinite recursion but somehow it executes and does terminate. Can anybody tell me how this happens and what will be it's time complexity ?15
-
I was struggling to make advancements in my task because I was so oriented by the "more code means more work done"... I wasn't producing at all. Now that I grabbed a notebook and a pen and started to think things through, things are finally rolling. Sometimes it's 90% thinking and 10% coding. In addition to that, I can't even write spagetti code after getting a solid concept written in pen. I just hate that I spend so much time thinking until something good comes up. But hey now it's rollinnnnnn.undefined pen productivity less is more notebook efficient implementations mean more puzzles work smart not hard4
-
I swear to God it's people like this that just get on my nerves
"Oh look at my fucky javascript code"
"Let's tag it as JAVA NOT JAVASCRIPT BECAUSE IM AN UTTER IDIOT"
It appears that proper tagging is not just a devRant issue.7 -
Have you ever been at at that magical point where you have to decide if it's worth putting the effort in to understand the legacy code, or just delete it all and start again?2
-
"Mh, I should just write a short comment instead of writing a novel"
// This is a fucking detailed explaination of this shit, even though you can clearly see what it does because I usually write clean code. Also, it's a one-line comment, so have fun side-scrolling -
Write a piece of code that works just fine and it's fairly extensible in 20 minutes.
Then proceed to spend the rest of your night rethinking and replacing said piece of code numerous times, with slightly more elegant code.
7 hours later and I'm still not done. Although a fine way to improve your skills, I seriously need to stop doing that for every single thing I write and start managing my time better. Got lots of other stuff I need to be working on...
Surely I can't be the only one doing this4 -
When you spend 10x time coding just because you can't, just can't resist writing good code, even when you no it's gng to make no difference whatsoever🙁
Why brain, oh why?4 -
It's so fucking hot today, just seriously fucking rediculous. Thinking of taking the laptop to code at the beer garden - will be the only way to get any productivity done.
Thoughts?5 -
I just found out there's a 418 HTTP status code that stands for "I'm a teapot", specified by RFC2324 which "describes HTCPCP, a protocol for controlling, monitoring, and diagnosing coffee pots". I know it's an april fools joke but I still find it hilarious that there is an RFC for that.9
-
New job: Asked my manager if i can add documentation for the code/project.
Manager: it's completely useless to use hours on documentation. If you don't understand any thing just ask around. It saves time. Just use descriptive variables and method names.
Me: :|7 -
I've got a confession to make. I.. I just love hand-obfuscating JS-Code. Not because, i would prefer working with obfuscated code.. I just find it extremely satisfying watching the code shrink and being the only one being able to understand it..
It's out. I feel better now.4 -
Just a little poll for you guys :)
Do you comment your code during the development or when it's done?
Do you keep track of the documentation during the development or after?
Do you use Git only for source control or also to work from multiple places and keep the code up to date?
Do you sh*tcode on purpose (or don't make any effort to clean it) when it's not for yourself, or not for something you value much?
If you have any other strange habit, feel free to mention it :)16 -
I just found out that my partner writes his increment operators with a space between the variable and the operator.
i ++;
anybody else do that because he's changed parts of our code to include the space and it's frustrating7 -
So this just happened. A friend whom I made a little project for came to me like "hey man that project thing just gives a white page". It's written upon the old version of a framework I'm still writing. After a few minutes I found out that it's failing to load all core modules. Turns out there was a file in the core modules directory with the .save extension. Never thought I'd have to take that into consideration in my code!
-
C++ code written before current standards still complies and is just as maintainable, but every so often a new major change to the standard happens and I feel like all my code I wrote before last month or so now needs updated. "Range-based for" ALL THE THINGS. except I'm just retouching code and possibly adding bugs along the way.
Sometimes I just feel that my most mastered and beloved language suffers from a severe case of multiple personality disorder. As soon as I get to know it, it's suddenly somebody else. -
I'm praying for our newly hired Software Architect. Because He sets unrealistic timelines. He said that He will code, but yeah He just said it. Also, praying for our project. Coz it's really doomed!8
-
CoWorker: I fixed the code so it doesn't throw any errors or warnings anymore.
What He did? Well.. he just commented the whole important part and it's my turn now to really fix this C mess.1 -
It's 00:54. I'm supposed to wake up at 8.30AM. Not even tired. In front of my computer, with a frozen Visual Studio Code on the left screen and a frozen Madeon music on the right screen.
My CMS won't get compiled anymore, due to lack of memory. I have 16gb of RAM, gave it 4 of them, and it froze. If I give it less, it just won't compile. Why. I can't figure out wether if it's my code which has some memory leaks or if there's just too much JavaScript in it. What did fuck up? My code? React? Material-UI? The way I want to mix them all together? Maybe I just shouldn't have used React to cover up everything, and maybe I shouldn't have used Ruby on Rails the way I did.
Fuck.
What do I do now.10 -
You know it's been a good day's work, when you look at the code you've written and part of u just feels like touching yourself.4
-
application runs fine..
colleague makes a small code change..
application crashes..
colleague asks in wonder why the application crashes all of a sudden
did you debug? no
can you debug? ok .. .... ... .. ah it's that change I just did2 -
My biggest problem with Visual Studio Code is that every fucking piece of shit dev thinks it's their duty to introduce it to me. STOP. Just stop this shit, alright? Wanna use vscode? Fine, just don't tell me it's the best tool and I MUST use it instead of the tools I'm used to. I'm tired of this bullshit.
Every new project, every new team. Starting from js/java/.net monke and ending with PMs, I must hear this bullshit about god blessed IDE that I must use, because "why you need intellij/webstorm/rider? just install vscode and some plugins. we all use it in our project and it's ok".
FUCK YOU! Refactoring is not just renaming variables and extracting blocks of code into functions. If you want terminal integrated into your text editor with highlighting and LSP support, so be it. I want an IDE with rich refactoring tools, code analysis and good completion, database viewing/modeling support, good build tools support, good UI for git and git-diff, good test and code coverage support. I don't want your semi-IDE, bloated with hundreds of bugged third-party plugins, which I must spend a week on to configure and merry with each other before using.
JUST STOP this crap and let people use the tools they are proficient/comfortable/productive with.18 -
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 -
Just my opinion, but Code reviews are a shit practice. In my previous company, we used to have one every Saturday. I presented my code and when everyone couldn't find anything to bitch/moan about, they said my code isn't "aesthetic" to look at. It's because I wrote this
if(condition)
do_thing;
instead of
if(condition) {
do_thing;
}
I cringe everytime I remember that incident.17 -
I always had little time to code. But since I have my server I just have admin related stuff to do. It's been a few days now since I have seen my editor for the last time.
Hate that.1 -
I'm looking at old code that I wrote around half a year ago, and noticed that my coding style changed over time (relying more on arguments to pass messages between commands and functions, rather than sourcing the result of a command). I feel like this old code isn't truly mine anymore. It's thousands upon thousands of lines of code though... Given that, would you rewrite it or just move along with the existing design? I mean in my opinion the current code really sucks.4
-
Here's what overthinking sounds like -
My mom was watching me coding on VSCode and said - You just type things in colors and get paid.
I thought - wow i never thought about it that way. For me it's syntax highlighting but to someone else it's writing code in colors.
This must be the same way for butchers where they don't think how precious life is - killing animals is just a part of their job.
Same with child traffickers - They don't care about human lives or emotions. It's a job for them to do what they do.
Same with military generals or assassins.17 -
Not the code review itself, but having repeatedly to nag my project leader just to get a review is the worst.
I'm "only" a student and it's a project without fix deadlines so it's alright with me that it is low priority.
But - I want to learn something here, I really do, I'm new to C# and far from mastery. Apart from that my focus was mainly hardware during the last years.
I need some fucking brutal and honest criticism on my code, damnit!
That's all.5 -
Don't you love working out a piece of code in your head that's been troubling you for ages but you can't test it because your at work... It's horrible.
Tempted to whip out vs code and just quickly test my theory in JS...2 -
One word rants really .. just piss me off ... like omg ... you can't take the time out to actually have an opinion !
Eclipse ... no that not a rant it's a hateful pies of sh1t which supplies you a default view of code which makes you feel like you are a pirate looking though a portal to an island 10 miles away ..
Soap ... that just the annoying mechanism you will use and and swear at and every time you use it it's different ...
Sql ... that's just something you should learn ... learn it .. it's useful ..6 -
I've created a code review for merging someone else's code, coz they were signed off sick for the last month.
They're making comments about how it's wrong.
It's code they wrote, but restructured to be more readable.
They wrote incorrect code that was just so illegible they didn't realise.
How do I explain this diplomatically?10 -
So after joining devRant I discovered that some people have an issue with people touching "their code"...
This hasn't been a problem anywhere I've ever worked, with any person (that I know of).
Is this a vocal minority, or have I somehow avoided this subset of people through sheer luck?5 -
Tl;Dr: I think react is ugly.
Just cloned a developer git for a certain API and I was going through the application code to get a feel around. I literally said out loud "eww" when I saw the code for the views. Nothing about the pros and cons of the framework, I just think it's hideous. Thoughts from react developers welcome8 -
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
-
After hours of development, updated code on server, closed ide, out of habbit oppened browser, went to http://localhost/, just to check how api is responding... No response. Restarted server. No response. 30 minutes of random tests/checks, no result at all. 30 nervous minutes later, realized that server was working fine... it's just me who freaking tried to access it via localhost. ffs 0_0
-
I just solved a recursion problem without using recursion.
Yes, it's roughly 4 times more code, but at least I understand what the hell is happening.4 -
I've seen lots of other ranters complain about huge code files... I just came across 27k Javascript extension for a software like Postman ...
First I thought cool I can work on it since it's JS, then 27k of lines later: I think I'll go sleep .-. -
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 -
Just because OO exists, it's not mandatory.
Some code would be 10(+) times simpler, more readable and more maintainable without it.7 -
So I've been just assigned a code review. For a complete new feature.
It's over 20k lines of Code.
Time to quit -
When you decide it's not worth of your time to go through lengthy code documentation and just run that stackoverflow snippet straight on production.. 🤠
-
You know when you decide to choose a language/framework/platform not because it's the best for the job, or the one with most developers, or the one with most job offers, but simply... because it makes you feel good, even just by looking at the code...!
-
!rant. Just trying to make people feel a bit better.
Ever thought "Ah crap, I have no idea what's going on with this code?" - then immediately second guessed your abilities?
You're not alone.
https://github.com/search/...
It's not just tiny projects in there either. Gnome is on the second page :-)1 -
It's weird that devRant, being a developer-centric platform, doesn't support `preformatted text`.
I just want to put `code` in backticks and stupid code snippets in triple backticks.
I think it's high time we adopted markdown. Can someone please take this issue #27 up from 2017? It's 2020 FFS!
https://github.com/devRant/devRant/...8 -
I've been BSing my skillset for so long to myself, it's a veritable toolbox of mixed knowledge but no complete sets...
I wonder if it's too late for me to catch up or if I will ever actually complete any learning...
I am yet to finish learning
Html
CSS
PHP
Ruby
C#
ASM I can do i386 but not x86
VB
Pascal if you can believe
C
C++
Java
JS
Python
Powershell
Bash
My main skill is basically just remembering anything I do, including code syntax and example code fragments well enough to quote at people which makes me a lazy learner. -
I'm fiddeling around with progressive web apps. I made something and hosted it on a subdomain. Today I made a typo and found my app on an other domain. All my assets and files are copied there. He even uses my SSL certificate.
It's not that spectacular. The app is nothing "revolutionary". It's just the first time it happend to me.
Have you ever found your code on other websites ? How did you react ?7 -
My senior colleague recently said "Don't go around asking for best practices, it's a waste of time! Just try stuff until it works and commit it".
We were talking about writing code in a new language.1 -
Damn it, it's 3am and I just confused myself with my own code, and edited the wrong file AAARGH
Probably time to get some sleep...2 -
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 -
People hear talking about shit like "*high level stuff* SUCKS. YOU *big tech company* FUCKTARD." And I'm just here trying to graduate without failing a CS course because my teachers want me to mug up the code and not understand it! Needless to say, I don't mug up but it's just so fucking irritating when people in your class are mugging up the code and definitions like it's Redbull and scoring stellar grades. FUCK THIS SHIT!4
-
One good thing about working at a shitty place is you end up knowing what not to do by just pure pain.
I once consulted for a company who had the latest tech - kubernetes, bit bucket, you name it. But it didn't matter. The code was shit. It's not about the tech, it's always about the people that use the tech.5 -
Textbook definition of insanity is debugging in Spyder
While True:
Do:
#Comment out code
Run
If not BUG:
Comment back in
Else:
Print('Congratulations. You found it. Just kidding. It's not THIS line. It's just the combination of lines')
Does anyone have a suggestion for a good python debugger that allows jumping to statements, etc.?2 -
Optimization issue pops out with one of our queries.
> Team leader: You need to do this and that, it's a thing you know NOTHING about but don't worry, the DBA already performed all the preliminary analysis, it's tested and it should work. Just change these 2 lines of code and we're good to go
> ffwd 2 days, ticket gets sent back, it's not working
> Team leader: YOU WERE SUPPOSED TO TEST IT YOUR CHANGE IS NOT WORKING
> IHateForALiving: try it on our production machine and you'll see the exact same error, it's been there for years
> Team leader: BUT YOU WERE SUPPOSED TO TEST IT
Just so we're clear, when I perform a change in the code, I test the changes I made. I don't know in which universe I should be held accountable for tards breaking features 10 years ago, but you can't seriously expect me to test the whole fucking software from scratch every time I add an index to the db.1 -
I just hate wordpress. Whenever I have to touch it, makes me nervous.
This time I just have to put some html/css. I was thinking it's piece of cake.
Couldn't be more wrong. This fucker is adding extra tags to my code fucking up what made...1 -
Me: I just know there's gotta be a better way to do this.
PM: No I think it's just a problem of inexperience. You and $coworker just haven't spent enough time in WordPress.
Me: no you're right. I'm just trying to get a better handle on the code and make things as less error prone as possible.
PM: well we really don't have very many errors.
Me: wait, what about the (list off other issues)?
PM: those all have been resolved already.
Me: Oh. Ok. I guess it's just me.
PM: See, I make changes and nothing breaks. You guys just need to continue working on this.
Me: ... 🤨
Me: (weird flex but ok) hey! Look at this guy over here!
PM: (Laughs)3 -
So I just saw a post on Facebook about a "Serverless Function as a Service on Kubernetes". Could someone give me eye bleach please?
I really can't wait after Scoped Storage and how goddamn slow it is, to have a "glorified microservice" take 5 minutes to spin up a container, just to do something silly like printing a hello world. In the post it was apparently showing a QR code.. that's it. A fucking QR code, because remember it's just a function.
A whole fucking operating system that goes up and back down, just to run a goddamn fucking function!!!8 -
Coworker renamed constants in repo for her own code and left for 3 weeks... Even told me she replaced and fixed everything!
Unfortunately the renaming got together with a different functionality and have to rework every part where it's used next week...
Just one out of many problems at my work...
Fucking sucks...1 -
you know it's a good day when you copied that funky looking code you wrote, copy pasted in current project and IT JUST WORKS!2
-
Current mood: Preparing a communication plan for how to explain why we have decided to throw out the entire 3-years-worth-of-work code base for the frontend project we have inherited and rewrite it from zero because it's just. THAT. BAD.3
-
!rant :) FUUUUUUUUDGE YEAAAAH!
it's so satisfying when you've been working on a huge ass thing(when maybe you should have tested individual parts) and it just fucking works as intended amazing, I love it!
It's so beautiful to see your own compiler(jk just scanner+parser atm) compile code successfully -
Release on Monday === almost 10h of code today... Though it's just an internal release, so not that serious really. Though it's be fun to have something we've been working on for half a year working decently the first time people actually get to try it... Well, well...
-
There is nothing better to code on a cool midsummer afternoon on a Friday with sour favorite music. It's just makes me happy!1
-
When you accidentally revert (ankhSVN in visual studio) changes in code, and you lose all the code you just wrote. That feeling in the pit of your stomach... And the hot sweat/silent cursing... I fixed it so it's all good :).4
-
So when are all of you going to admit that React.js is useless? It's awful and miserable and doesn't do anything it promises to.
It's not faster to write code, it's not cleaner, it's not easier, it's just a ton of boilerplate and it can't even handle simple animations.
If Facebook didn't create it, everyone would think it's ridiculous and stupid.. Because it is.
Stop trying to be cool and just fucking deliver fucking business value.56 -
Oh my damn god,
I just found the remote-server plugin for vsCode and holy fuck balls, it's the one thing I've wanted from vsCode since ever.
When you dev in VMs and are forever working with remote code using SFTP and git on a remote servers, it's a pain in the ass.
But this, god damn this solves all of that, and with connection specific plugins, I think I just came.7 -
Title: The problem with "good enough" code
Body:
I'm a software developer, and I've seen my fair share of "good enough" code. You know the kind of code I'm talking about: it works, but it's not pretty, and it's not very maintainable.
The problem with "good enough" code is that it's a slippery slope. Once you start writing "good enough" code, it's easy to fall into the trap of always taking the easy way out.
Before you know it, your code is a mess of hacks and workarounds. It's hard to understand, it's hard to maintain, and it's a nightmare to debug.
I've seen projects go down in flames because of "good enough" code. The code was so bad that it was impossible to fix, and the project had to be scrapped.
I'm not saying that you should never write "good enough" code. Sometimes, you just need to get something working, and you don't have the time or resources to do it perfectly.
But if you're going to write "good enough" code, you need to be aware of the risks. And you need to make sure that you're only writing "good enough" code for a short period of time.
Once you have a working prototype, you need to start refactoring your code and making it better. You need to make it more readable, more maintainable, and more testable.
If you don't, you'll eventually regret it. Your code will become a liability, and it will hold you back.
So next time you're tempted to write "good enough" code, think twice. It might save you some time in the short term, but it will cost you in the long run.7 -
So I just finished writing my first Code Style/Standards documentation. I guess for now it's more just for me to figure out what annoying things I want changed but wanted to get everyone's opinion and thoughts.
I think this is safe to post as nothing company specific.
https://github.com/allanx2000/...2 -
This is how my coworker does code reviews... imagine comment on a line of code:
"Oh why does this not do this and that.
Edit: Oh I've read few lines below, now I understand. But this may break when this and that.
Edit: Nevermind I realized, that never happens, forget about it."
Let me just emphasise, that this is single comment, so it's basically editted multiple times, before submition.
Like wtf, just delete the comment then?!2 -
Maybe you guys could help me...
My father just sent me a .xlsxm file (excel + macro file), it's all about horse races and stuff a 60+ years old dude would do :D
The file is pretty neat, but some minors changes needs to be done, but I have no clue where the code is. I found the "macro" part but it's empty, and I'm not surprised since the file itself seems to be generated from C# (Maybe not, I'm not the expert)
Sooo... Can anyone tell me how do I get to this code?8 -
Just launched a successful deployment today. Took 4 months to build everything. It's probably not a big deal but I'm just really happy today that everything worked right away, and almost no deployment hiccups at all.
Only one issue popped up, but come to find out it's a particular thing about the Prod environment and nothing to do with my code.
Gonna go celebrate now, before more work comes in. (hey, can you refactor this for me?)4 -
Everytime I scroll through here I see people complaining about JS and frameworks being made for it. Well think about it, would you rather have to use old buggy JavaScript or help the community and the language achieve better standards? Just look at ES6 and ways to write code and JavaScript really isn't that bad. It's just misunderstood.3
-
I just realized I do actually whiteboard. It's just that I do it on the computer using Visio...
Maybe everyone else on my team does too just they used an actual whiteboard...
Still doesn't quite explain some of the crap that shows up in the code though...3 -
Once I maintained one of the most used and fucked up codebases on the market with almost 1M+ daily users. (cannot say more, sorry).
It's written in PHP and is absolutely terrifying,
the first time I saw some lines of code I was about to scream and cry.
- spaghetti code
- no indentation
- random SQL query unoptimized
- unused vars
- Code is split among several files with no logical reasoning
- Mixed procedural and oop programming
- Unsanitised user input (yes, you got it right)
No test environment, no backup database, every commit goes straight to production.
It's a real disaster but the company prefers to keep it as it is without refactoring or anything else.
Just to make it clear:
It's not hatred against PHP, it's against the code's current status and the older programmers which used to work on it.5 -
Sometimes, I run tests just because I want a break from writing code. In good cases it's so that I take a moment to think about what I'm going to do next. In most cases however, I'm struggling for motivation1
-
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 -
So ,was interning in a MNC ( one of the top IT service company ),
So an another intern changed her code, and later the software stopped working!
She panics and her manager comes,
He comes and says "it's ohk , just take ur time and figure it out, but from next time backup ur work by sending me a copy of code in email ! "
I facepalmed, and was laughing!
Do these ppl know there something called VCS!?2 -
Yeeah it's official, the N key in my HP keyboard just fucked up
What the solution?
Ok I'll use all the #Widgets that has no N in it's definition in my code
Just fuck that sit.7 -
I'm learning functional programming for the first time with Elm and I kinda like it, it's just so different from what I'm used and kinda refreshing. My brain is getting a bit twisted though... I'll probably need a few weeks/months to adjust the way I think about code, but I'm liking the mental exercise so far, loving those moments where stuff just "clicks".5
-
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 -
You know
Sometimes I enjoy being in Facebook groups about UX/UI design and development.
Cause it's just. So. Wholesome.
((A little context: The post was about Steve Jobs not writing single line of code)) -
I just love code-golf, I only started recently, but sometimes it's nice to fuck all coding conventions, missuse lazy evaluation and abuse scope leaking.
I'm normally really tidy with formating and whitespace placement, but code-golf is also a testing field for uncommen constructs and I think it can give deeper insights into a language.
I don't like languages specifically for code-golf though, these are just stupid and no fun (at least for me).1 -
I've seen a lot of stuff mentioned here from little hobby projects to Matrix. This might seem unreachable because it's just too utopic, but I'd really love to at least see the world using one single platform for software that would "just work™".
Like, here you have - simple glue lang, SDK with billion _useful_ libraries that also just work™ and no need to change the code too much or select an alternative function for each different platform e.g. via macros and one last wish - it'll work on every machine that's capable of running any code.
Maybe one day...2 -
I really just hate Apple development. Xcode blows hard ass and if you are a person like me who has 0 Apple devices and has to go to the fucking school labs to code then why wouldn't you hate apple development. It's really the lack of being able to code outside a fucking Mac cause its just pointlessly limiting, fuck you Apple.13
-
So a trainee made a website at the company where I also have my internship, he finished his internship earlier than I did. But the problem is I'm now fixing his site and it's literally falling apart! I fixed one problem and a dozen apear! His code is the definition of spaghetti code. It's so extremely bad I can't handle this, I don't want to do this anymore, just someone please drive a knife trough my chest. This is unbearable HE CREADED A HTML PAGE INSIDE ANOTHER ONE flipping heck how could you think that's how things work!1
-
My Stunt of the day:
People say avoid deployment on Fridays.
I strictly followed it and being a nocturnal creature, just pushed my code to Prod and it's Saturday early morning.
Deployment taking forever. Gonna sleep now.
I hope nothing goes down.2 -
*Executed maven build*
Me: What's this "no tests found?"
Senior: Nevermind it's not important. Just check if your code works.2 -
It's always irked me that people can't RTFM simple things. But I've often just hacked my way through code, brute-forcing equations here and there until they work by trial and error. Nothing for an employer or anything, but nonetheless, I was not RTFMing. I was doing all the D and as little of the R as possible in R&D, just to save time. I'm trying to change that about myself. It's easier to implement systems when you properly understand them. No more hackery.
I suppose this rant was from me, about me. -
How do you deal with the feeling that you coded all those hours for nothing? You deep down know this solution will never work but you don't want the hours go to waste so you just continue. And then it's 2am, you have shit code, nothing works and your life is falling apart.9
-
First rant!
Ah, npm... Lots of packages use ES6 syntax because it's nice to write, and then transpile to node-compatible code either with CI or a precommit script. Just spent a whole day trying to figure out what was wrong with my project, when it turns out I just had to tell webpack to ignore node_modules *except* for this specific package. Sigh.2 -
> Client: Could you check for me where did they[code authors] put logic for this and that
> Sure!
> okey, api endpoint here, hmm
> oh sure here is the database access
> where tf is some logic....
> fml, am I blind, lets check frontend
> FUCK
> it's there
> it's on frontend
> and backend just puts it into database, no checks
> FU0!@#% )(#*%)H )F+#+!!@!
> *to client* We need to talk about future of this project. -
I've been infcted with writing awful, sinful, obscure code, so others can't read or change it.
Recently i got my first full time job as a programmer (yay). It's with a company with 15+ year old system and they are currently upgrading it. But it's driving me crazy with the massive mess of old and new code. However it only gets worse! Instead of making it simple and nice to read, they want it over complex, just to get something from the database i have create at least 5 fucking classes and endless SQL code, the old system didn't requier any SQL or the creation og new classes, WTF. I've become a sinner, of corse i use the old system, but i do it secretly, and i obscurify my code so others can't understand. It's shameful, but i'm afraid to confront the older programmers, they've spend too much time in the system and they've been in the business for a lot longer than me.3 -
I totally want to refactor my project's code, but I don't have any time for it and now it's a working piece of spaghetti-ish 😭
I'm just praying I'll get to do it once it's actually finished, so I don't have to work with it again in like a year and want to travel back in time and murder myself.13 -
When your code just doesn't work without any apparent reason, and after hours you realise that it's due to a misplaced }. Semicolons are overrated.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 -
I have read people talk about how “Laravel makes PHP fun”. I don't get it. I really hate frameworks. Yeah they may simplify tasks. But the way I see it, you now have a damn framework that you're never going to bother to understand. You most likely won't read the underlying code, you'll rely on others to release security updates.
Hey yeah it has its benefits, like peer reviewed, and matured code.
But I guess it's just not for me.
SAME GOES FOR WORDPRESS. It does freaking make your life easy, and it's easy money, but I guess it would just annoy me to not be bothered with the underlying code.
Anyway, Imma head on to make my own framework....9 -
Don't be a dev if it's just not for you.
It's not for everyone, and you should figure this out at the very early stages of your education. The ones it's not for that still persist will hate their life. And leave their job. And leave unfinished, crappy code behind for the rest of us to clean up.3 -
Reading code takes time!
Everytime I read:
"var" or "auto" Add: 10s
- Just use the type
Everytime I read:
if(Expression1 && Expression() ? GetNumber() : 0 > 0) Add: 30s
- Just write two if statements or create two bools the line above.
Everytime I read:
delegate = () => {} Add another 5 minutes of reading time.
- Just write a separate function for it. It helps with searching and understand what it does
Please code like the person that needs to check your code or change it just knows basic coding skills and logics.
I do know all these concepts I just never use them because it makes the code unreadable. hard to follow, mistakes that can happen everywhere. difficult to search.
And it frustrates that I need to read 10 extra lines to understand code flow or hover my mouse in an IDE to figure out what type object it is.
It's properly just me... I just like clean readable code. that is logical and failsafe and strict and deterministic with its behavior9 -
I can't entirely remember the code of my own web portfolio that I wrote a few months ago! The code is not even that bad, but I'm just tweaking stuff and building more on top of these ruins. There's a cost to rewriting something from scratch and it's not worth it. I'm using Jekyll and Github pages.1
-
Just went to my highschool's computer science club meeting. My first annoyance was that they were going to have a 'girls who code' thing...But, they were in the same group as general population. So, essentially, it's separated between girls who code and human beings who code.
Then they said that they would likely be using Eclipse throughout the year. We may be having a bit of a debate -
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
-
So my friend had an idea for a game and asked me if I could help him develop it. Now, he understands how the code works and can even write quite a bit himself. On several occasions (including today) this happened:
*writes code*
*tests code*
Me: Hmm... this isn't working like it's supposed to
Friend: It looks pretty good, maybe check to see if everything is in the right order
*checks code*
*tries alternative solution*
*checks again*
Me and friend: Well this is even worse than before
*presses ctrl+z a lot to go back to the original*
*opens new project*
*writes new code for same purpose*
*checks code*
Both of us: IT WORKS!!!
*checks again just to be sure*
Both of us: IT STILL WORKS!!!
*compares new code to original code*
Me: It's the exact same code with different variable names!!! Why did this not work before?
Friend: No idea
*puts new code into main program*
*it still doesn't work*
Reasons Java makes me cry sometimes4 -
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 -
I have a colleague who keeps hitting ctrl+S when he's not writing any code. I hit it like twice or thrice myself, but he just keeps at it. Drives me crazy in a fun way. I tried asking him about it, but he just shrugs like it's nothing.10
-
Been writing a webcrawler to be integrated into Rails and possibly Phoenix (in the future)..
Friend A: Heyyyy. Woah. You speak Latin?
Friend B: Dude he's a hacker bruh.
Friend C: Omgomgomg can you hack J****'s FB?
Me: Guys. It's just code. (¬_¬) -
This fucking company man. Implementing a simple feature (just a couple settings in the android app) is taking me 4 fucking weeks(feature was done long time ago, but not in the way that. they wanted, even though I followed existing implementations). I have like 60 comments in my code review from which half feels like it's just purely nitpicking. I already have 2.5 years experience and I just want to kill myself or quit the job if every code review here willl be like this.
-
When it's 2:45am and you've just finished rewriting a large piece of your code and all your tests pass. A normal person would probably be asleep already. A sane person would go to sleep.
What would you call a person who stays up at this hour just because he likes the tunes a bit too much? :)
https://music.youtube.com/watch/...
just some good tunes and all the green tests.... :dance:5 -
Do you guys still see the relevance of using code freezing instead of just properly managing versions, repositories and branches in a cyclical manner, given how advanced software practices and tools are supposed to be?
To give some context, the company I work for uses the complete trash project management practice of asking teams to work on a sprint basis, but there is still a quarterly milestone and code freeze to commit to and it's where shit hits the fan.
Development teams rush features at the end of the quarter because they had to commit at the very least to a 6 months in advance planning (lol?) and turns out, not being able to design and investigate properly a feature combined with inflexible timelines has high chances to fail. So in the end, features are half-assed and QA has barely any time to test it out thoroughly. Anyways, by the time QA raises some concerns about a few major bugs, it's already code freeze time. But it's cool, we will just include these bug fixes and some new features in the following patches. Some real good symver, mate!
Of course, it sure does not help that teams stopped using submodules because git is too hard apparently, so we are stuck with +10Gb piece of trash monolithic repository and it's hell to manage, especially when fuckfaces merges untested code on the main branches. I can't blame Devops for ragequitting if they do.
To me, it's just some management bullshit and the whole process, IMO, belongs to fucking trash along with a few project managers... but I could always be wrong given my limited insight.
Anyways, I just wanted to discuss this subject because so far I cannot see code freezing being anything else than an outdated waterfall practice to appease investors and high management on timelines.8 -
Ya know when somebody else is on a project and you see their code and it's just sorta stay away from that bag of crazy? Like, some people I work with I see their code and it's fine, then I see some people's code and my eyes start to bleed.
-
Doing another FE assignment these days. In this one they have some clear requirements and some not so clear ones ex. "make the existing code better". And it's for a team lead position so I have to pretend I know what I'm doing instead of just implementing the feature they want.2
-
As a dev, I have to reuse a lot of codes again and again. Some I've written, and some of them I found after stucking my head for 1 hour on StackOverflow.
Now, the problem is every time I need the code, I have to search again. Some of them I saved in note apps but organizing code snippets & finding them with a quick search is a mess.
I was thinking of building a code snippet organizer where developers can save code snippets in any language (have syntax highlighting), search quickly, share with anyone, create buckets, manage multiple accounts etc.
Let me know if it's a good idea or not. Would you be interested in using something like this? Is this even a real problem or it's just me?15 -
I always print out a hard copy of whatever code I'm working on, then go through the code and annotate it with a pen until I feel that I have some insight... it's usually either that or I'll just walk away and come back later2
-
Where I work, we've just started using flavorDimensions. This is gonna save us a lot of time on keeping projects with many common code in one repo. Hope it's worth the trouble of merging everything together 😃
-
If I just try another way to do the same thing my broken code tries to do, either the new version makes my mistake obvious or everything just works.
Is this debugging? It's just rewriting. It seems faster than debugging. -
Sometimes people just don't understand the meaning of cleancode , it's so simple that....why not writing the whole code on one line?
FFS -
purity might just be the most important thing when refactoring code you didn't write.
for real, if you purify everything in that code, future refactorings will go way smoother and reasoning even more so.
But it's no easy feat, sometimes you face cockroach code. cockroach code is code written nuke style. The fire and forget code that you shouldn't forget.
cockroach code's easy to spot. you can't know what cockroach code does without reading it's comments. roach code is fat, roach code retro feeds from different spots of macaroni. it does IO and everything else all bundled together.
roach code isn't easy to scratch out its async version. in fact, thats a property of roach code. If you can't make it async without a rewrite, you've got roach code.12 -
What do people think of automated code generator frameworks such as Yeoman and Plop? Any experiences to share using those or similar frameworks?
I like the idea of automation, it means code will be consistent (especially across teams), and it means less boilerplate writing that potentially breaks thought processes.
But then does it just waste time? It's something extra to develop, test and debug. Further most of dev time is reading, thinking and modifying.2 -
Faced with a problem, trying for days every solution, libs, tutorial and So threads. Getting desperate, reading framework source code. Reading again. Realizing it's just a configuration matter. Feeling stupid like shit2
-
Just noticed a thread on r/programmerhumor about bank code intentionally adding delays with all these JavaScript code blocks of how it's adding sleep cycles in.
So I spent an hour reading the documentation and wrote up an over engineered solution in COBOL just to prove a point.2 -
Usually what helps me get into the zone is having ambient or chill music playing in the background. After a while it's just me and my code with nothing disturbing me.1
-
My CSS-only hamburger menu.
It's cool and all, just a few lines of code, but some days ago I tried to do a 2 sides hamburger menu.
Based on that I just copied it and changed every left for right. Worked. Like. A. Charm. I had to apply some z-index stuff of course but nothing out of ordinary.
I'm so cool. I'll upload it to GitHub ASAP, but it's not a priority rn. -
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 -
My team still use console.log for debuging instead of breakpoints, I don't really care about it when the code in development, but I really hate it when it goes to production.
I search in the project and found total 231 of console.log with allow console rules above it, I mean why don't you just delete it after the code is working, it's not that hard rather than to delete all console before goes to prod.6 -
Writing code for software that was deprecated since 2015 it's a nightmare. More when the unit tests take way more time than the actual fix or feature. Just kill it with fire
-
!rant
Today I planned to work on my Java school project. I have clean install of windows 10 and I opened Netbeans as usual. No source tab, just history. HOW THE FUCK I CANNOT EDIT THE FUCKING CODE IN FUCKING IDE, I asked. I think let's uninstall this crap and install again then this shit happened. (It's good to have a second computer in my dorm, it's called redundance I guess)6 -
We're using a setup with c# dotnet backend and js (React) front end... and do one in VS and the other in VS code. Any way to get one IDE to handle both properly? It's a huge pain but my manager told me that's just how they do it4
-
Damn it's hard to alter code, on a big (side)project, that is pretty shitty... And it too big to start over.. :/
I'm just gonna run with it and rewrite the damn app piece by piece as I am writing new features..
It's by the way a project I kinda quit half a year ago or so. Now it's coming back., but better. :)1 -
FOR FUCKING FUCK SAKE
I have a shit ton work to do. Just finished (hopefully) all of my exams, came back to work and got tasked with simultaneously developing a new app (Android), adjusting some of my own code to work with client's specific requirements in completely different project (C#) and also I have to fix a legacy app (Android) because UE comitee will be visiting us on wendesday.
I've never seen this code earlier. I've never seen this WHOLE SHITTY PROJECT. Guy that was developing this left few years back.
It's a complete spaghetti. 550 FUCKING LINES OF CODE for a one class, most of the methods are deprecated and won't even try to work on Android > 4.0. No documentation. Nothing works. Whole code is ridden with bugs, warnings and looks like it's glued together with duct tape. I even had to migrate from fucking Maven to Gradle it's that old. -
So my code works, but it's not the best way to do because there is a specific object made as a helper to do what I want to do.
Thing is, it is written nowhere. We agreed with my fellow co-workers, it's written nowhere in the developer guide provided to give the best ways to code.
Just
Fucking
Update
Your
Documentation -
I just finished refactoring the code of a single jupyter notebook into a decent structure with comments. It feels good.
Unfortunately I still have stuff to implement and it's 2:50am :(5 -
It's fucking 14th already in India. People are already celebrating valentine's day and shit on Facebook. And here I am raising for code review on fucking Crucible with half a thumb tip missing.
Motherfucking fuck my life.
I just want to go to the fucking roof and scream my lungs out. Fuck!!!2 -
Im curious guys, what's everyone main core OS/Distro at the moment and why?
For me it's chrome OS, taken a little hiatus from programming as it's been dragging my mental state down a bit so I've been focusing on writing my book and what programming I am doing is just me learning ground up java script development. So all I really need are my google docs services and a good code editor.5 -
!Rant
I absolutely hate click bait... But not type you're thinking of. The type of click bait of a stack overflow question and it's either totally not related or goes unanswered... Or even worse it's just a typo in their code.
But i have a solution! You won't believe what it is!
.....
.....
.....
.....
.....
.....
++ If you clicked read more 😂😂😂
(PS: I don't have a solution, I still hate it and struggle daily)1 -
I have been slack in the past with testing, in the last 2 months I have got better and better at sticking to TDD. Now I am Addicted! There is a God like feeling that comes with having written bullet proof testable code.
Anyone who thinks it's a waste of time or is putting it off just do it and stick to it, you will become a better programmer and write better code. -
I used to think that programming was just straight forward coding what you need.
But now I think it's describing the problem and writing code to solve that problem.
Example: recursive function. It calls itself till it finds a solution or till no options are left. You don't know the answer, but you code something that can find it for you.
Or php, you don't create every single html page, that's done by php dynamically.
The great thing is, it's less work and it is easier to catch error scenarios.
The bad thing is it has become a bit more abstract. -
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
-
I hate deploying this project, it's just nerve wracking. I started it when I was a newbie to web stuff so I didn't know shit. Now it's just a big project with no unit tests, I test it all by hand.
It looks professional though, but the underlying code is just a mess.5 -
I wish i have the power of controlling electronic stuff with my mind to rewrite their code with a single thought, just because it's fucking cool and i'll build my own army to conquer the entire world >;]
-
Politics. Dealing with people, making sure you check in with everyone at all times, making sure you don't seem harsh in code reviews. It's all just too fucking complicated. Just let me build shit.
-
Wait. Why does this work? It doesn't copy any of the frontend code into the deploy location.
I'm not sure how this works, but it does. Crap, there goes my morning tracking down this wretched spaghetti deploy code.
At least I understand how it works in production. Shit, why is it different between production and our integ servers ,that isn't good. Maybe I can just refactor it.
That was all on Monday. It's now Wednesday and I'm still fucking refactoring something that wasn't actually broken. It just didn't make sense.
Maybe I should just revert my last three days of work on this branch and move on. No! It's too late, I've invested way too much time into this project...
... and I'm almost done, just a few more commits right? -
lol every time I look at actively maintained code on GitHub
Thing is, there'll always be things I don't know. One needs to learn that. However, it's not an excuse to stop learning, so just keep learning every day and be confident in what you know -
Just gave a try to Stackblitz browser based code editor. I tried it for developing Angular app. It's amazing, supports npm and some Angular CLI features as well!
-
Programming insight #4
Even if code is repeating just twice it's still better to add it in a function/submodule and call the function/submodule twice.
In future, if a bug comes in that section it's quicker to fix it at one place than at two different ones thereby reducing the cases of missing unhandled bugs.
TLDR: The lesser the code is repeated the lesser are future bugs in code2 -
As if I fucking care if you have to add another parameter to my function call. Just because you think it's easier, does not mean its more usefull.
It's inconsistent as F U C K
You code IS spaghetti code. Your logic is closer a maze on a fucking one way street and I don't fucking care if it works. It's a pain1 -
It's frustrating when you tell your teammate after code review that they have to rework their code a bit to capture certain scenarios they've missed and they just scowl at you.
I'm just trying to make it easier for us in the long run! -
Wow, I'm such impressed by the power of Visual Studio with Team Collaboration, DB Management and this impressive packet manager... But it's like "don't try to understand, just code"
-
It's interesting when I go back to old code that I haven't touched in awhile that calls an external library, I have new questions like "why can't it ..." then discover that it can... Just that the original usage was incorrect.
Sometimes generalising to interfaces is the problem...2 -
I was bored watching Eurovision last night so I made this little Log In page. I didn't implement any functionality, so it's just HTML/CSS. If you need the code you can use it. https://dropbox.com/s/...4
-
tools people REALLY wanna use are written like garbage
and also very active, in terms of tickets and pull requests
but the code is overly complex for no reason and a mess, turns out
I looked at the codebase and I have no clue what's going on
then found the API it's calling and I'm sitting here going "Jesus fuck I could've just wrote my own"
it's actually really strange, I see this pattern often of tools tons of people rely on and want to use but they're coded horribly, tons of bugs, and the code is entirely incomprehensible. though all the low effort pull requests is a new one I guess, generally there's no activity or the maintainer is just gone (maybe it's AI?)
anyway then I looked at the API it's wrapping and I'm confused why this library has such shit usability, and furthermore why the hell the code was like that cuz I read that first for about an hour and just kept going in circles. bruh what
guess I'll find out tomorrow if I'm signing up for unanticipated complexity or these people really did mess this up2 -
Next job I find has to be entertaining somewhat. I thought I could deal with boring work but I'm tired of it.I It's just so damn boring. I'm not even writing new code anymore, I'm just updating dependency versioning and restructuring tests. It's bumming me out seriously. The mental fatigue from struggling to keep my eyes open every day leaves me struggling to get out of bed in the morning.6
-
I used to love coding. I have ASD and it was one of those rare things I could just do for hours without realising the time. I used to do my own projects, or at least plan them.
Now it's my job to code (& design when I don't have a pleb project, software engineer). I still kinda like to code but as I *have to* code, I just hate it.
Every fun thing that turns to work just turns to torture. Maybe I'll break my arm slipping this winter and have to have an extended sick leave...3 -
Finally fixed all the known bugs (read:self sabotaging) in my code and it's running without any errors. Just when I'd given up hope.
-
!(rant)
I'm a student and I'm currently working on a project.
How do I get it to execute blocks of code depending on the type of value it receives in a variable?
or maybe
Should I just use some other method or workaround to do it?
I'm not sure if I should post my question on SO.
(I think it's a dumb question)
--
If it gets (request.getParameter) a string { execute code }
else if {
//gets an int
execute code
}4 -
1) For me code is a way of expressing my thoughts akin to rap. It's just that your thoughts has to be precise if you want to write "good" code.
2) Creating anything out of a thin air has certain charm to it.
3) I love problem solving and even if I don't love it, if I've got a certain problem I'll have to solve it anyway and most of the computer related problem can be solved via code. -
Ever tried to code a plugin for SonarQube? ... Yeah, don't do that. Documented API? Nope. Just some not-helpful-at-all-tutorial.
Largest undocumented code base I have ever seen. It's unbelievable. At some point you decide it's better to look at the code of other (undocumented) plugins to extract any API methods there.
Hep from the (otherwise pretty active) mailing list? - You wish!
The best thing is when you discover on Stack Overflow that the thing you have been trying to do for two weeks (and someone else was too, apparently) is not possible with their API.
PS: Maybe this has changed since their last version but some months ago it was every bit like this. -
[POLL] How do you develop stuff?
1 - just write code. It doesn't need to be organized, it just need to work how you thought it would, and THEN you start organizing things, like editing/creating new files, letting things DRY, optimizing the sutff you did earlier;
OR
2 - you surgically write code, making sure you keep everything is organized from the beginning. Basically you only write when you are sure.
Or maybe it's a blend between the two or something.
I'm asking because I do like the #1 and I feel uncomfortable when people see my code when it's under development. It's a mess, there are tons of comments everywhere and a bunch of repetition. But, when I find the right stuff, I start writing modules to make my code work better, remove unnecessary things, add documentation, and so on.
My development process is not the best of the best, but I get things done with it.7 -
Am I the only one who thinks OOP in Javascript isn't always the best option? I really like structured code with classes and objects but sometimes it's just fun and satisfying to write a buttload of functions to do all sorts of things and build your code with that.1
-
My experience with Visual Studio Code hasn't been nice and I'm honestly kind of not liking it at this point in time :-(
Maybe it's just me who's being a dump-kop1 -
!rant !dev
Anyone here play Polytopia? I just downloaded it today, it's fun but I'm generally crap at multiplayer so you'll probably beat me.
My code is: wydbVH59gUNdomWE -
What's up with people being super cutthroat about best coding practices? In my experience it's not very well focused on in schools or especially for self taught devs, so what's with the critical attitude towards bad formatting or indenting, or perhaps less than par code organization? I get it's suboptimal but if someone doesn't know that it's wrong then what's with the fire and brimstone response? Not personal, just something I picked up on.3
-
Ah, the merry-go-round of frameworks. Can we settle on one for more than a microsecond?
Switching between React, Vue, Angular – it's like code calisthenics for my brain. Just when I've mastered one, bam, the next shiny framework arrives.
Can't I write code without feeling like I'm auditioning for "Dev's Got Talent"?3 -
♫ It's high time we reviewed our design, ♫
♫ The code behind our system is just too byzantine, ♫
♫ We'll rewrite all the legacy and take it off line, ♫1 -
Fucking sick of colleagues who just want help with fixing their own broken code, even when given different but alternative to achieve the same thing. It's even worse when they try leverage part of this alternative into their code.
When you are given a Mercedes, you drive it. You don't use it to find parts for your old broken down Nissan.3 -
It's important to have a little fun with what you do. You can work on and on like it's a chore and get along with it just fine, but right below the surface of the tools you use lies something truly interesting. Reading code, documentation, blog posts, what have you, all of it is just as helpful in learning as writing code.
And also, be kind. We all write crap code from time to time. As a beginner, I know I do. It's important to take it all as a learning experience.
Personal favourite quote that puts it very well: 'I guess you could call it a “ failure,” but I prefer the term “learning experience".' -
Building apps in 30 mins at conferences.
First 5 mins: I'm gonna do the entire thing using just some boilerplate.
After 25 mins: I'm just gonna copy some unimportant code from the one I already made... ...And it's done!
Footnote: The people who put themselves up for it are always great! I've learnt a lot from such guys. Massive respect ✌️ -
How do u stay civil when your code doesn't work and it's been hours? I feel like punching something but I swear I'm not really violent. I just feel like it.3
-
I thought the web standards finally are a bit okay to work with. Just learnt that writing responsive HTML email templates really really feels like writing code which we did in the previous century. Tables. Tables everywhere. It's worse than table inception5
-
I need help,
I'm on that task for a month and it's a shitty task where I need to write algorithms too complicated for my level and I'm totally demotivated right now... I can't even understand my own code and can't focus for more than 5min... I just wanna go home and never see that code and work on that anymore...
Has this situation ever happened to you ? What should I do ?6 -
Finally on github.
https://github.com/FidelityInternat...
I use this to test the css changes to my ui.
It's still a work in progress, not even documented properly, but I'm just happy that company allowed this code to go open sourced. -
You know how the machine learning systems are in the news (and Ted talks, tech blogs, etc.) lately over how they're becoming blackbox logic machines, creating feedback loops that amply things like racism on YouTube, for example. Well, what might the ML/AI systems be doing with our code repositories? Maybe not so much yet, I don't know. But let's imagine. Do you think it's probably less worrisome? At first I didn't see as much harm potential, there's not really racist code, terrorist code, or code that makes people violence prone (okay, not entirely true...), but if you imagine the possibility that someone might use code repositories to create applications that modify code, or is capable of making new programs, or just finding and squishing bugs in code algorithmically, well then you have a system that could arguably start to get a little out of control! What if in squashing code bugs it decides the most prevalent bugs are from code that takes user input (just one of potentially infinite examples). Remember though, it's a blackbox of sorts and this is just one of possibly millions of code patterns it's finding troublesome, and most importantly it's happening slowly (at first). Just like how these ML forces are changing Google and YouTube algorithms so slowly that many don't notice the changes; this would presumably be similar and so it may not be as obvious as one would think. So anyways, 'it' starts refactoring code that takes user input into something 'safer'. Great! But what does this mean? Not for this specific example really, but this concept of blackbox ML/AI solutions to problems we didn't realize we had, what does a future with this stuff look like (Matrix jokes aside)? Well, I could go on all day with imaginative ideas... But talking to myself isn't so productive, let's start a fun community discussion here! Join in if you find this topic as interesting as I do! :)
Note: if you decide to post something like "SNN have made this problem...", or other technical jargan please explain it as clearly as possible. As the great Richard Feynman once said, the best way to show you understand a thing is to be able to explain it clearly to others who don't understand it... Or something like that ;)3 -
I've just received a merge request for a feature that we outsourced. How do you best deal with substandard quality?
It's a merge request for roughly 2k lines of code and I've already noted down 25 comments and I'm only at my first file :(4 -
Can you tell I'm a programmer? (I don't code much (just occasionally in C# (never in Perl (JS (es2017 that is) is my favourite) because it's icky) my second favourite language)), I don't think it's obvious.
-
I need some advice, you guys.
I'm weeks away from graduating from my code school and working on a capstone project with a group and there are several people who I'm having a hard time following their code.
No comments, no documentation, just "30 hour sessions" and opinionated, undocumented code that doesn't mesh with the project plan 100%. It works, it get's the job done, but it's over complicated, undocumented and hard to follow.
Starting to feel like the 3rd wheel in a 4 person group because I'm the only one that is having a problem and I'm not sure how to get them to document their code for me. They try to explain it and just end up literally reading their code, which doesn't really help.
I feel like I'm working in a group of individuals who don't really want to work together and I'm worried it's going to be a problem.1 -
Ugh, have an assignment due and just spend the last 2 hours looking for a bug that caused blocking code in one of socket threads.
Looks like it's going to be a long night -
Idk what's happening to me, I am just not feeling good going to office and code there, may be I want a big vacation or need to change my job, it's like so frustrating there.1
-
I definitely want to program/code for my career, creating things and solving problems is cool, but I just started doing game development and IT'S SO COOL. I may have messed up my plans for my life :/
-
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
-
Well, this eleventh hour, during-the-holidays change to buggy code to make it do something it's not designed to do is going like just about every other project like it has ever gone. Still not done. None of the programmer talent is available to work on it because it's at a time when everyone is traveling. And the third-party data provider is unreachable.
-
Honestly my biggest rant in the past month hasn't been about code, It's about Windows 10 changing my desktop password to my Microsoft Account. I have certain security pet peeves and it just screams "telemetry"...
-
Jenkins, why you be so fucked up? The same pipeline file runs in one folder, but fails at the root of the Jenkins server. It's the same code! Literally, the exact same code, I just moved the job into a different folder.2
-
so I spent an entire day tracking a major memory leak (10mb/s!!!). when I find it, it turns out that It's in a deep part of C++ code that I'm not allowed to touch. now I live in fear of just crashong my 16gb machine every time I debug.
-
So one of my friend is doing her internship now and she has to program in Java because her boss believes she is studying IT although it's not the case. She is feeling really bad because it took her a week to code what is for them a simple program... I don't know what to say to her... It's not like it's a good thing to learn Java through a specific program! Anyway it's just so annoying these people who believe that if you're studying tech, you must "of course" know a programming language...5
-
Code == business ideology. That's why corporations love obfuscated OOP; it's just like their power structures.1
-
Looking for the keyboard Elliot uses In season 1 on mr robot and I found a bug
TECHNICALLY it's displaying the correct CSS...just the CSS code instead 😂2 -
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.
-
Has anyone here had a need to use Unmanaged Code, ie C++ interop for the sake of performance on a practical level? (ie, not just coz it's fun)
Im excluding driver or OS level code.
Only Server Side OR User side programs
Coz wouldnt the overhead of talking to unmanaged code overwrite any CPU-time benefits?2 -
When I get one with constructive feedback. It's rated since I'm usually the one that tells people their code sucks.... After it causes a production issue.
Yes no one does a proper code review on my direct team.... Just the stuff a linter would tell you to fix.... -
It's one of those days when I'm debugging some code
and then I noticed a breakpoint I have deleted just popped up again by itself
my visual studio might be haunted -
Obviously I'm just now beginning to learn, criticism not appreciated, lol.. Can anyone tell me like.. How to ACTUALLY edit github files in android studio???! Ive tried importing, copying and pasting the code, idk what to do maybe I'm just dumb who knows.. But I cannot for the life of me seem to get any of the code from github files to actually run once it's imported..6
-
Maybe not as much a question as a request for advice.
What I'm looking for is a free website hosting service that preferably lets you import your own source code. If it's got paid services for access to things like your own custom url and such, that's just fine. :) It's a for a hobby group project with people that aren't necessarily programmers in any way.
What we've checked so far is just Svenska Domäner, which have a site builder tool, but the custom source code feature is a paid service.
Since there's so much to choose from in this field I thought I'd check with some of the people I trust the most in these kinds of things. :) Any good suggestions?13 -
Has anyone ever worked with a NativeScript Angular project? If so, how do you feel that they compare to regular Angular2+ webapps or to Ionic2+ mobile apps from a code writing and ease perspective? I just started working with Ionic2+ and they blew me away with the ease of code and how quickly you can get things running and how well and native they do look and act, however the user experience can't compete with that of Xamarin or ReactNative apps. I've also worked with just Angular2+ as well for particular apps and I can't say it's a bad experience because frankly it's one of the best pure web tools I've ever worked with.
-
PyCharm - worth buying?
Currently 30% off.
I'm learning to code Python at the moment and just using Sublime - so wondering whether it's worth it?
https://jetbrains.com/pycharm/buy/...8 -
Not sure if it's just me, but it's kinda annoying to hear people say "make a build". Just say "when the code is built" or "when we run the build".1
-
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.
-
We all know that writing your own css is easy.
Then we just try to pick up other's code and continue with their style...
It's taking so much time, I guess it's about collaboration now not only trying to figure it out alone .. -
Is it just me who finds coding so relaxing? In all the messy crap flying around it's just me and code..my precious!
-
Alright, fellow DevRanters, gather 'round for a tale of woe and frustration. 🙄
I was knee-deep in my code, chasing down a bug that had me stumped for hours. I thought I was on the verge of a breakthrough, but then it happened—the code disappeared! Poof! Vanished into the digital abyss without a trace. 😱
I mean, it's one thing to wrestle with bugs and errors, but it's a whole new level of insanity when your code decides to pull a disappearing act on you. I scoured my directories, I even questioned my own sanity. But nope, my code was just playing hide and seek.
So, here I am, feeling like a detective in a coding noir thriller. 🕵️♂️ The hunt for the vanishing code continues, but I'm not giving up. This bug won't escape me! 💪
Has anyone else had their code pull a vanishing act when you needed it the most? Share your tales of coding mystery and mayhem below! 🕵️♀️👇5 -
The CLI is my $HOME, the place where I feel most comfortable. Yes, I despise bash syntax and if it's used for actual production code (with #LOC>10³) - like we do. The pipes, grep, awk - it's usually a breeze.
BUT yesterday my illusion of the superiority of my CLI just got shattered badly: There was some zip with a core file I wanted to investigate, but gunzip and zcat just were unable to decompress it, while with a simple double click I could open the freaking folder.