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 - "code be like"
-
So this happened in my computer science class
Creepy guy trying to be cheesy (to this pretty girl): "you're like a ; to my code"
Girl: "we're studying python, bimbo"
(Whole class laughed)7 -
*code doesn't work*
-Run three times, just to be sure
-Its NOT the code, must be the project. Full rebuild.
-Run a few more times after rebuild didn't fix it.
-Google the issue.
-Stackoverflow must be wrong. The code is JUST like their solution.
-Run a few more times, but with your lucky underpants
-Reboot. Must be an operating system thing.
-Tea break. Give the issue time and it will fix itself.
-Run a few more times. Still unfixed
-Contact customer support.
-Walmart said they can't help.
-Consider writing your own language without this OBVIOUS flaw
-Kickstarter for c++++
-Raise $50,000
-Start a family
-Contact customer support again
-Run a few more times
-Now banned from Walmart
-Oh shit, missing a semicolon24 -
Not a coding test, but:
Them: So you are interviewing for a programmer opening. Do you like programming?
Me: yes.
Them: do you make logos?
Me: ...I can...?
Them: good because you won't always be writing code here.
Me: I'm out.8 -
Imagine what a coder Gordon Ramsay might be like:
Your alghoritm is so FUCKING slow, I'd rather to try to brute force a 20 characters long alphanumeric password!
This app is more insecure than an average teenager!
If your code was a spaghetti it would be a fucking health hazard!14 -
if (condition) {
//code
}
if you place your brackets like this, you're an awesome individual. Let's be friends30 -
programming languages are not designed to talk to computers, they are designed to be readable by other programmers.
please code like it.7 -
girl friend: What kind of stripper would you want for a Bachelorette party?!?
me: no stripper...
girl friend: like a coding stripper?
me: what?
girl friend: he'd come out and be like, one zero one one zero one...
me: I love that you think I code in binary hahaha
girl friend: like the matrix!
me:
*pauses*
*contemplates explaining what binary is*
yes, like the matrix
:D6 -
"You can teach my son to code. He doesn't like typing so just use that mouse thing (track pad). He's got an idea for an app (Flappy Birds clone) that'll make millions. It needs to be done tomorrow for his school computer project."
- Boss5 -
Started Computer Science class yesterday, but i code like 12 years. My fellow mates mostly never coded in their life. They think its gonna be easy. They think they will have a social life. They think their gonna get sleep.
Those fools.11 -
Hollywood be like
"Oh no they shot a hole in my CPU, let me just rewrite the code so that it works again. I'll be 5 minutes."14 -
《WHAT IT'S LIKE TO BE A DEVELOPER IN ZIMBABWE》
Working on my project and suddenly power cuts off
Laptop doesn't have a battery
So it instantly shuts down
Ohh snap !!!
Luckily I've set my Vs Code to auto save every 3seconds
[Sigh..]29 -
I code through the night until 8 am, then sleep until 6pm+.
My family then calls me out as being unproductive and lazy.
Why must the whole world be oriented against night owls like me? 😥15 -
"everyone can code" is like to say "everyone can write". Yes, everyone can write, but there's a difference between be able to write and be able to write a successful well-written novel7
-
An actual quote from a kid in my English Class:
"Because I'm a programmer, everything I make has to be perfect, cause that's what it's like when you work with code".10 -
Okay it's called devRant - so I'll rant...
Why the fuck do people write comments like that:
$savesThisStuff = "stuff"; # does save stuff
Why are here 1500 lines from which there are 700 outcommented code and 300 dead functions which aren't called anywhere?
Why the fuck is here PHP code which generates JavaScript inline which itself generates STATIC (!!) HTML.
------
"Always code like the one maintaining your code next is a violent murderer with an axe and you'll still be save."
... Where's my axe again?9 -
People who don't understand what I code or who don't even know what a freaking "code" is, telling me how to do my job!! Then my reaction will be like -2
-
Manager: I like nested ifs
Dev: They can be difficult to maintain
Manager: No they aren’t I write them all the time!
Dev: Have you ever maintained one?
Manager: No, I don’t do code maintenance. I don’t have time for it.5 -
Spoke to a programmering student who insists on writing his Java and python code in PARAGRAPH format, like an essay (the teachers do not teach this). Tried to explain why this is a bad idea. He explains to me that if others can't read his code that it is their problem and that he would never make a silly syntax error like missing a semicolon or a bracket. Called me stupid and walked off.
Life will be hard for him.10 -
Just got picked up for a project. 20,000+ code base, no comments, no docs, variable names like x, xx, xxx, no function name conventions, and a mishmash of Czech, French and English class names.
I thought this job was too good to be true. #fml4 -
The rants I read here make me want to be a better developer. I started writing tests, linting code and ensuring 'quality code' because of the devrant community. Being a self taught developer, you never really have anyone to thank. But today I would like to appriciate you all for the rants, comments and advice that make us developers become better at our craft.2
-
Had a PM in my programming class say "I want to understand what my team is going through, so I want to learn to code and the like, really to be a jack of all trades to better myself and my team" 👏 I respect that.2
-
No, listen to me. I cannot approve this PR because your code does not comply with our code style. All the imports and annotations must be sorted in ascending order by length. They must all make fir-like blocks of code. Because it looks nice.
Now go and fix your code
I just smiled and walked away to obfuscate my code with firs . I had no idea what to even say to that... I still don't14 -
Well... Looks like I managed to make a Webpage in C++...
...
I need a life...
webpage (self hosted, so I don't guarantee that it will always be online. however, the pages source code is on github): http://2.205.108.223/cgi-bin/...
github: github.com/wittmaxi/webcpp18 -
@dfox
!rant, it's the Feature request
Possibility to post `a code snippet with monospaced font` would be usefull.
Or even
```
def multiline_code():
from 2 to Inf:
"Lines of code"
```
Sth like in markdown.9 -
You know what you sound like when you say that "I want to be a programmer but this code is offensive so remove it"? It's like saying that "I want to be a surgeon but I don't like blood, so remove the blood right now."
I personally don't really like blood a whole lot, especially when it comes out of the bodies of other people. I don't really want to become a surgeon, but let's say that I would. "Teacher, I don't like blood, I want to become a surgeon but I hate blood!!! MAKE ALL PATIENTS STOP BLEEDING NOW!!!"
To which my teacher surgeon would of course respond: "Well how about you don't become a surgeon then, because humans that are cut open do bleed, and there's nothing we can do about it."
Same thing with code. You know why code is written? To be a useful tool, for people to become more productive by running the thing (unlike the average SJW). And normal people, you know how much they care about the code? They only care for it as much as for it to be able to run properly. And the ones that do look in the source code either want to improve its functionality or check whether it's actually something decent, secure, safe to run etc etc. People don't normally look at code for the sake of getting offended by something.
But the formulation used in the code, does it even matter? Jerk, it's a term that's used in physics. Does it refer to your despised white cis males whacking off? Of course it doesn't, it's a term to describe change in acceleration. Masters and slaves in code, does it refer to slavery? Most certainly it doesn't. So why bother?6 -
One day you’ll write a line of code which will be your very last one.
Imagine wasting it on something like php.10 -
I like frontend when using no frameworks. I also like when websites use no frameworks and don't write unnecessary code. So that I can use it even if my mobile internet speed gets locked at 16K and from the consumer perspective I think especially in Europe developers should consider this. Moreover I think it's generally more fun to just write your own site from scratch, it will take longer but it will allow one to be more creative and the whole experience will be more fulfilling.12
-
True compliments I have given:
-*actual tears dripping* I'm changing how I code to be setup more like yours
-if I could fuck that code I would1 -
Just curious, how is it like to work as a developer. I mean, as a profession and not a hobby or freelancing.
From devRant, so far I know that you work in an office, the managers and bosses are assholes, and people always write unmanageable and undocumented code.
What else is it like? Do you get to work alone or do you have to work with people? Do you stay there all day long?
I know its still going to be a while for me, but I want to know how it will be like.24 -
I should find me a girl that loves to code. Those would be some arguments I would like to pass through4
-
If you've spent time learning how to code and you're daydreaming about having a dev job but don't have one because you're too nervous to apply, just do it. The worst thing that can happen is that you'll get the job (and be stuck ranting like us).4
-
Add no comments or documentations whatsoever during my initial years of coding (when actually I used to write code worse than a constipated elephant's shit).. In my mind I would be like "This is quite clear-cut.. A first grader will be able to understand this code.."
But then I had to debug my own code barely some 1-2 months later and I figured out the importance of good comments and documentation..3 -
For a developers ranting social media platforms, it sure seems strange that we can't format code snippets... 🤔
At least something like `foo(bar){}` would be awesome!3 -
I am like the weakest programmer at my job. I wanna improve and get better. Understanding how to write good unit test to reading code. Damn it. I just wanna be better.9
-
My code be like:
"Call the method cronk...
WROOOONG MEEEETTTTHHHOOOODDDD!!!
Why do we even have that method "2 -
That complete mental block when you know where you want to be and you know where you are but you look at the code and it's like looking at alphabet soup 😞2
-
I have to refactor code from an intern. He's VERY lucky that he already left the company.
If I'd say he programms like the first human that would be very insulting to that first human.
It looks like code at first sight, but when you try to understand what he was doing to achieve his goal you get a brainfuck. Duplicate code, unused code, dumb variable names like blRszN.
He wrote unittests like "expects Exception to be thrown or Server returns Statuscode 500".
Yes, Exception, the generic one.
THESE FUCKING TESTS ARE GREEN BECAUSE YOU DID NOT ACTUALLY TEST SOMETHING.
GREEN IN THIS CONTEXT MEANS: YOUR PRODUCTION CODE IS A BIG PILE OF SHIT.
I already removed 2 bugs in a test which caused another exception than the "expected" one and the test does still not reach the actual method under test.
Dumb fucktard.
The sad thing: The fuckers who did the code reviews and let this shit pass are still here writing code.4 -
Trying to write more commit , so that i can stay top in github project chart with less real code be like....
Git commit -am "added p in code"
Git commit -am "added r in code"
Git commit -am " added i in code"
Git commit -am "added n in code"
Gir commit -am "added t in code"
Git commit -am " gave the proper indentation to print"6 -
This is so true, I always feel like my code architecture going to be clean, neat and organized but reality is always the opposite 😭
Source: https://instagram.com/p/...3 -
ALRIGHT! I'LL GIVE YOU SUPPORT ON MY VACATION TOO, IT'S NOT LIKE I HAVE FRIENDS AND FAMILY, NOPE, ALL I CARE ABOUT IS YOUR UNSTRUCTURED PHP CODE WHICH NEEDS TO BE REFACTORED BECAUSE 2 VISITORS ON YOUR WEBSITE SUGGESTED SO!6
-
When you and your colleagues fight over code intending whether it should be a tab or ''x'' spaces.
My reply: It doesn't matter what you use!! It's like eating with either a fork or spoon, as long as you eat, dammit!!
My friend:5 -
Never be egoisitc about your code. Its good to feel proud on your code that you did it. but sharing is caring.. don;t be like only I can do this.. ego is not for dev community.. be adaptable for changes whether you learn from junior or senior :)7
-
I hired a coder to write a WordPress plugin on my dev server. He no longer works for me and is unreachable. The plugin does most of what it needs to do. But when I dig into the code and the database to find what should be obvious bits of code that do obvious things? None of that code is found. Not even with a recursive directory keyword search for that should be easy to find like CSS class names and IDs. Even the data that comes from the database and that I see on the screen is not actually present in the database!!! Yet it all works. I'm pretty sure at this point the code and data reside in a parallel dimension only the coder can get to. How do I debug code that doesn't actually exist?!13
-
My development process seems to go:
1. Write code
2. Believe that said code is amazing
3. Write more code
4. Revisit earlier code and start to doubt it's amazing-ness
5. Get frustrated that it could be done better
6. Redo 1 and repeat cycle
Seems a massive waste of time but I tend to like taking a different approach as soon as I find I'm getting stuck with the previous one.
I then get encouraged to take the quick/easy approach which seems like a backwards step and not worthwhile because I know it won't be as fast/efficient.2 -
Monday: coffee tastes like dead rat. And I wrote hacks around hacks in legacy code just to get it to last a little longer until the new system can be made.
The coffee left a better taste than my commit.1 -
who here has worked for a bank?
without naming names? what was the scariest thing they did, like, bad code, bad security, etc, that you had to fix
always wanted to be a fly on the wall of the devs office for a bank...10 -
Should a developer really have to be a jack of all trades? I write code, but at work I feel like I am always getting pulled into sysadmin debacles. I am not a sysadmin or an ops person. I am a developer, not a systems guy.
If you want me to be a systems guy, then train me to be one. You hired me to write code, not to troubleshoot shitty IBM Application Servers.8 -
Self documenting code is a fucking myth you bloody sheep.
Write “self documenting code” then add a fucking comment or two explaining why the fuck the code deserves should be there because nobody can see what the fuck it is doing or understands how the whole collection of microservices works. I’m sick of spaghetti code bullshit full of accidental redundancy because it is impossible for anyone to realize why something is there at a glance.
I renamed different “Contract” classes today by adding numbers before code review.
Contract
Contract1
Contract2
Contract3
All of these classes are supposed to be the same but somehow they aren’t and you self documenting dumbasses missed it. Don’t gripe about the numbered classes in the repo… fix the fucking code and collapse the classes so we don’t have four sections of code describing the same fucking structure from a http get with different interfaces because four people couldn’t read the whole like some fucking computer.11 -
Hello World! First post here. I'm literally done with frontend stuff. I want to design code, not to code design. Unless it's Processing. I find it cute. So.. I have a somewhat handy grasp on C++ because of a class in electronics course, Python seems quite easy to catch. I'm totally new to programming. I'd like to get into software, game development and android development (but I would like to do things cross-platform).
Which paths, resources, languages, useful books, videos, or just anything would you recommend?
To be fair, I have no coding friends so mentorship or simply finding code buddies would be great. 💜7 -
Life is like code,
Your loved ones are your IDE,
You can be good with code without an IDE,
but it makes things much more smoother when you have one :D
Life quote :) -
Using an array of function pointers to replace large switch statements... holy shit.. I feel like Thanos getting the time stone.
Just when you think you can’t get your code to run any faster, nor did I think I could get the code any smaller... BOOM.. C never ceases to impress.
Next I’ll be turning this into “object” oriented ... but since it’s C ... it will just be Struct oriented .. SOP ..18 -
Bro, that code u call well written, would look better if it was encoded in base64
Damn, u look like the guy at github who thought it would be a good idea to sell to microsoft.
You are an insult to anyone who codes... or thinks4 -
No documentation. Thousands of lines of code. Still learn enough about the solution to make a required change in a day. Now the company feels like I should be the one to lead training for the module, and I still don't know what the other half of the code does. T-minus two hours...2
-
Start-ups and corporations trying new things be like:
"Why should we pay a developer or a company to develop this and this for us when we can just:
- start a competition.
- get free design mockups and code.
- decide which is better.
- reward a small prize and maybe some freebies to the competitors.
- profit. FREE CHEAP CODE AND DESIGNS!!!"
It might be the reasonable and logical thing to do from a business standpoint if its about code you need to rarely maintain..
But from an independent developer viewpoint - FUCK YOU AND THE SLOW ENSLAVEMENT OF MY SPECIE!!!3 -
Anyone ever run across some code that was so succinct and elegant, that you couldn't imagine ever doing something like that and start to feel bad?
<Look up who committed it>
Oh, well, damn... I used to be so good at this coding thing. -
What's the funniest advice you've ever received from a co-worker?
Mine is: "Always code like someone with a short temper and a machete will be reviewing your code"2 -
I'm gonna cheat a little since i don't like alcohol 😁
School projet, designer sends me final design less than 24 hours before the deadline, i coded all night long. 17 hot chocolate bowl. I never got the luck to be in the same flow than that night. Each hot chocolate made me stronger, lines of code were running, CSS was perfectly good first try.
Once code was submitted, i slept for like 14 hours. I woke up hugging my pillow.
I'm pretty sure i was drunk with hot chocolate.1 -
I (don't) like how some people say "If your code needs comments, your code is probably ugly and should be rewritten".
Well, asshats. You have never considered complex calculations/functions or "temporary" workarounds, right?
Sometimes, you have to do it in a not-very-readable way for efficiency. There is no way around that in that case, and comments that either explain the code below or provide alternative, slower code that's commented really help others understand your code.
If I ever work with you and you don't bother commenting your code at all (or rather use slow code because more efficient code doesn't appeal to your "muh code dun need comments" approach), I will hate you.6 -
Anyone else experiencing moments like 'you sit behind a computer all day, how hard can your job be?' or is it just me?? 🤔
I'm getting tired of this shit... Especially when it's comming from a person who relies ob tonns of apps to do their goddamn job.. :/
I'd get it if it was comming from a farmer who actually has to work hard to produce the food for us.. or any of the blue collars..but from white collars?!? Dafuck?! Yeah, I may not be the person writing the code for your precious little apps, but they're written by people just like me, who sit behind a computer all day & code.. :/
Show some respect ya cunts!!13 -
Don't you feel sometimes like you may not be as good dev as you think you are? Like all you do is search for chunks of code in stackoverflow so you can assamble a semi functional project.
I'm having one of those days, and it just feels like shit.6 -
it's decided, i'm creating a programming language specifically to trigger SJW (like the idea of C+=) which starting to corrupt this industries.
perhaps it's not gonna be huge, so i will blend this with my original idea; a simple language to fix python syntax that a lot of people didn't like who come from C like syntax which transpiled to python code.
maybe it's silly, but this need to be done. at least for my self.11 -
When in internship you have to read 150000 lines of code to make changes and the code does not have any comments, no indentation, no documentation, no wiki. You'll be like fuck this shit. I'm outta here.1
-
Doing and Code Review today... Not sure if this guy has really bad OCD, gets bored, or gets stuck and starts commenting the shit of things...
I'm not sure if I like it or hate it... typically "Good code should be self documenting" but this actually might be acceptable... code on the left, 10K foot view on the right?4 -
When i sit down and code, its like a conversation with women.
Im not sure whats going on, but it appears to be working.6 -
On a scale of 1-10, how lazy are you when it comes to prototype code?
Me, well I'm a 'fuck it lets just wildcard anything that is a child of a GLib objects'
Don't be like me kids...
EDIT: Yes i know it should have been an override void4 -
Trying to explain an awesome block of code logic you came up with and how it streamlined everything.. And your partner be like.... Thats cute dear
-
when code comments be like
# loop over the array
for i in 1...10
# divide by 2
x = i / 2
# return the result
return x4 -
THE CODE USED IN MY MANDATORY ONLINE TRAINING ABOUT CYBER SECURITY AND STUFF LIKE THIS:
<script>window.showQuestion(someOverlyVerboseResponseFromTheServerWithTheCorrectAnswersMarked);
</script>
Oh boi it would be a real shame if someone proxied your precious function :)2 -
I don't know if we can be friend...
I don't like cable art, my desk is messy(no setup), no stickers on my mac, don't care I have to use mac or pc or unix, I don't code at night.....anymore, I don't have problem with ;
But....I love coffee.2 -
!Rant
I'm going to be teaching my roommate how to "code" soon. Or rather, I'll be teaching her how to use Scratch, so she can have a leg up when she applies to work at a children's code academy that uses a Scratch-like environment. Should be fun!
I love that Scratch exists. Such an accessible way to teach basic concepts like loops, conditional statements, etc, with results that are way more fun than "oh look I output the fibinacci sequence"1 -
Ughhhhhh. This fucking code is a disaster! The guy says he built it DRY, but it's WET as fuck! So much fucking repeated code!
I'm annoyed most because I know that it'd be a fucking waste of time to try and rebuild what these guys have built over the past 5 years, but goddamn it, it shouldn't be an excuse to keep on making code like this!
I know that I'm not super experienced in C# but pick up a goddamn book on good coding practices. This thing is a disjointed mess and it never had to get this way.
So many fucking interfaces!!!! AAAAAAAAAAAAAAA19 -
Typical code life?
1. Write rough comments
2. Write more detailed comments
3. Write pseudo code
4. Write semi-working but definitely ugly code
5. Write working but very ugly code
6. Refactor the code to be nicer, check for patterns, bottlenecks and other bits and pieces
7. Push to git the "final" code
8. After few months blame whoever wrote the code
9. Refactor all the things!
---
This happened in my career more than once and still - it seems like the best option out there to get things done. What do you guys think? Should something be added/removed from this? Is this over-complicated or what?2 -
Java must be like a food that requires an acquired taste because the more that I code in it, the more I enjoy it.2
-
Tired of non-dev co-workers talking to me like I work for them. They better be careful. I'll code their computers to do their jobs for them.
-
The English language.
Maybe my fascination with code that reads like a book comes from a desire for my code to be understood. Maybe it comes from novelty. But it really does send tingles down my spine when it reads like literature.
That's one of the largest reasons Lua is my favorite language and Java is one of my least favorite (sounds like a guy with a bad stutter, always repeating himself)2 -
My code be like:
Call the method cronk...
WROOOONG MEEETTTTTTTHHHOOOOOOOOOOOOOODDDDDDDDDDD!!!
*climbs out of alligator pit*
Why do we even have that method -
"Pull the lever cronk
...
WROOOOOOOONNNNNGGGGG LEVVVVVVEEEERRRRRRRR"
*some time later*
"Why do we even have that lever"
^^^ my code be like -
Last year I had to program most of my projects in Python. I like the language, don't get me wrong. But man oh man if you indent your line of code one too many fucking times, it can be such a pain in the ass to find your error...
Even if it may clutter your code (not in my opinion), that's why I love them curly brackets and languages which use them <39 -
What is this 'cutting edge dev tech' y'all talking about? Does it count if I somehow manage to add support for MS Edge?? 🤔
Hell.. I'm stuck with COM+ & activex, so if anyone who gets to use fancy pants new techs would be so kind to ping me and let me know how it even feels to code like it's 21st century, that'd be great..2 -
When you get a summer job at the university to improve internal tools and asking your guarantor why the crappyness of his code is evident even to a noob pythonista like me and getting the answer like "I'm writing this only until it does what I want" kinda frustrates and demotivates. I'm sure this is NOT how things should be done.1
-
Got to talking with someone in our company about AI generated code. I said we still have to audit the code, understand how it works, and ensure there isn't any nefarious libraries or code in what is produced. Like what we "should" be doing when we find libraries on the web. I explained how people will purposely create libraries that are spoofs of other libraries, but have malicious code embedded in them. It doesn't take much to imagine someone using a sketchy AI to push this kinda code.
How do you reasonably fight this if we start increasingly relying on generated code by AI? So I suggested we need an AI to review AI generated code. Then we need an AI to review the AI that reviews the AI generated code. Then...3 -
My senior and I started pair programming to improve my code quality. He likes it and I find it fun (and convenient that he helps me) but it feels like I'm making him do my work. I also fear that I am too horrible to be trusted with code alone but if that was the case they would kick me out right?5
-
236 lines of code in main doing like 400 things that should each be their own function DX
Fucking legacy projects
This is why I drink on the weekends4 -
So after my hosting my first project and announcing it on devrant, the users pointed out the many security faults and places where the code can be exploited ( thank you so much ). So I started my research on security ( im 99% self-taught ). The first thing I landed across is the code vulnerabilities which the I can fix then the vulnerabilities of the language itself and then binary code to overrun whatever the language it is. Well, the topic gets broader and broader. If I click on a link named xxx vulnerabilities oh god that is a whole new collection of hundeds of wiki like pages. I feel like I'm lost and here I need some real help2
-
Whenever I have to ask about how certain code of someone else works, I feel bad. I feel like I should be able to figure it out on my own.
On the other hand, if people ask me to implement something within their code, that I am not familiar with, I kinda expect more info? Like if you don't have any tutorials or documentation on your tool, be prepared to answer some stupid questions about how to set it up and whatnot. How else am I gonna know how to start with? Having to read the entire source code is a massive waste of time, no?
tl;dr: if you don't provide documentation or tutorials, be ready to answer stupid questions.8 -
I'm a junior dev, been on placement a year.
I get tasks done mostly on time, my pull requests are merged, yet I still feel like what I'm writing is seriously under quality.
What point will I stop writing code that isn't good enough to not be stressed about? 😷7 -
From a few years of programming experience, I come to know that "we cannot write perfect code."
What I mean by this is no matter how perfectly you write code, but if you have a peek on that code after about 3 months, you will be like, "I could have done a lot of things in a better way." Provided the code is atleast of 100 lines. -
Tired of dealing with shitcode, that's all I always inherit. Maybe I picked the wrong career? or maybe I shouldn't have even read about things like SOLID or picked up Clean Code.
Then again if I hadn't, I wouldn't be where I am. But I'm unhappy. Why do I always get these projects where the poeple who wrote them (and dissappeared) clearly had no proefficiency on the used tech stack.
Am I ever gonna be part of a project with an actual lead/architect, who strives for the code not to rot?
Maybe I'm just being a little bitch whinning over this?
Halp!! the more I code, the more I hate it. It wasn't like this when I was the architect. But I didn't make as much money as I do now...
What do I do4 -
So this is what a test looks like here in my school...
I really like my teacher but his test are... uhh... fucking awful.
I mean the code isn't even indented ffs! Like wtf?!? How should one be able to read this bullshit?
The questions are shitty too.
Also please add line numbers so it is easier to describe how things work in the code.
AND USE FUCKING A4 PAPERS FFS!!!
Thanks,
an experienced student7 -
This book isn't at all what I thought it was going to be. I hoped it would be patterns and practices to writing better code...it's more like a philosophical Chicken Soup for the Developer's Soul. Self-care for syntax geeks.
And by that merit, it's actually quite good. -
So I'm approaching a 8 year anniversary working in IT and this feels like the first time needing to do a serious rant.
Today I've come across some code (infact just a single line) written by another company that is so fucking fundamentally stupid that they should be banned from writing any code ever. Like holy fuck.
This is textbook examples of shit never to do ever in any fucking environment or intranet/extranet etc. What the fuck. The fucking muppetry involved in this. This is what they teach novice programmers - you see this code written 20 years ago? Never fucking do this. You see this company that went bust 10 years ago? It was because of shit like this. Never ever write code like this or your 90kg ass will be thrown 300m by the greatest medieval fucking siege engine ever created after we throw you through the catastrophic gaping hole in time and space that your line of code just created.
Fucking fuckity bye.3 -
Get a request for commit rights for my container repo; another developer would be lovely. Let's see what they know and want to work on.
*reading message*
*reading message*
"...I'd like to enable your containers to hold other containers."
They already do. Stay the fuck away from my code. -
Why are people behaving like communist dramaqueens on every OSS repo?
Why do OSS libraries and frameworks have to be political cunts and insert *the current thing* into every god damn console message of their tooling and on their websites?
Stop it. Get some help.
I want to code, not be a aborted political SJW fetus. Let me fucking code in peace.5 -
Serious question: If a highly intelligent being, better than humans, is about to code something, how would they probably do it?
Will they use the same concepts like control flow, iterations, types, operators, object inheritance, etc?
If they are quantum capable, how can they code with booleans when it can be both true and false at the same time? Will they code truthy and falsy with another dimension like time-space temporality?
Do their code simultaneously modify the hardware or bio-hardware as it iterates over the outcome of the code?
Does input and output even relevant to them?
How do they represent infinites?
Do they have similar github workflows or they telepathically update the source code?
Do they embed their program in their DNA? Then pass to offspring the codes they already created?
Do they code using a language or do they use some frequencies and material science that simultaneously show real world output?
And do they have their version of devRant?16 -
First question in a job interview should be " when you are not familiar with a certain code do you use find-usage or freak out like a little girl" - I have a coworker that freaks out and makes me crazy1
-
That moment when, after you've spent days trying to refactor your code to be clean and readable, you look at what you've made and you honestly feel like you actually made things worse than before.1
-
"Dear Windows staff,
To think a fatal error screen can be shown beautifully is likeable.
To add in a QR code to be redirected to some assistance is likeable.
But like things that are likeable, THEY DON'T NEED TO BE REGULARLY SHOVED TO THE FACE !
Sincerest regards,
One who desperately wants to shutdown Windows Update once and for all.8 -
i transferred shitload of code from one class to another, stackoverflowed something and copy pasted it because i have never seen that this needs to be written like that, hit run compile, open up my logs expecting a mass crash and possibly explosion. it worked on the first try2
-
As we currently see a lot of codeless software platform, in the next 10 years there is gonna be high demand for people to extend these shitty apps into something proper, just like it happened with wordpress. There is a key missunderstanding that writing code and developing an application are the same thing; they are not.
Once you can write code you sure ass aren't a developer, thats a grueling journey until then, and being able to create an application without code exaggerates the problem even further.2 -
1 day ago my wife's father died, I'd like to do checkout on this repo called life, but we can't, I loved that man as my father, I have to be strong to keep my wife strong, I cry when I'm not in home. Code it's like my beer. Cheers!
-
When you commit code to the repo and a a junior on the team takes it upon himself to rename all the classes and methods coz he doesn't like them even though his changes make no sense and then sends them to you for a code review .....
Wonder what the results going to be ;-p1 -
Same as we look at some old pages and see "oh this is unstyled table layout, that is xHTML inline style - it's from the 20th century"
People will look at pages of today in like 20 years and be like "Oh gosh, the material design phase. - oh the apple-blur-copy-cat-phase, oldish HTML5 code, that's from the 2010-20-ies"4 -
So today I started working on a code base someone else wrote and stubled across this and thought it was worth sharing.
Why somebody would be doing something like this is beyond my understanding.
Not commenting on the empty catch block keep in mind the whole snippet has nothing to do with rest of the code...
WHY!!!!!?!?!?!?!13 -
Golang code review be like
> oh no, you used prohibited `else` keyword
Context? Dosent matter. Its banned, mkay?
Fix? Oh you know its hell to read now22 -
Hey!
I won a competition called “Google Code-In” and I’ll be in San Francisco this June. We’ll be visiting Google’s office is San Francisco & Mountain View. I would also like to visit other offices. Are there any which are open for public visit ?2 -
!rant
I know this may not be the typical post on Devrant and it may be a little off topic, but I could really use some advice from fellow colleagues here.
The thing is, I just finished engineering school and I got my first job as a software engineer. So far so good. I've never been a natural talent in this field, and I suck at writing code. I find things like architecture, system design, innovation, requirementsspecification, management and business development much more interesting.
These past weeks as a software engineer has been really challenging for me. I seem to be totally "in over my head", and fuck everything up. I can't understand how the code I'm supposed to write works, and can't solve even the simplest of tasks that are assigned to me if they involve any implementation of code, or fiddling with Github or build servers.
Is it normal to feel like this as an engineer with zero experience? Will things get better, or should I just resign or wait to be fired?
What would a natural next step for a software engineer who'd like to move more into business and management be? A MBA? Project management courses?
I hope to get some advice from you guys. Maybe you've felt like this when you started out as well? Anyway, any constructive feedback would be really much appreciated.7 -
Not writing tests for your code is like leaving it unguided in the hands of future Devs who gonna just change something and break the core logic and there won't be any regression test to run and check the integrity.
-
Work rant :
I once had a code review and remembered I forgot to comment my code and said sorry I forgot to comment it out.
The reply I got?
Don't worry, here we say your code should be readable enough and no comments are required.
Im still amazed, like... Even if the code is readable, fuck this I need a tl;Dr comment for the long ass fucking code... What the fuck5 -
When it’s 3am and you are working on an exception for more than 2 hours and have optimized your whole code just to be sure and remember you are writing swift not java: some ints have low max value like UInt8.3
-
Programmers after Writing some successful code be like:-
"Chill, chill just chill"
When that code went into Testing phase:-
"Where are you now? Under the sea.. Under the sea..."1 -
!rant First code review in the new team, came back with list of helpful suggestions and constructive criticisms. Yep I'm going to like it here. Excited to be learning from the bests.
-
Some of the worst code reviews I had were at my 1st proper workplace which incidentally was the strictest one! I was such a lazy oaf and hated those.
Still don't like code reviews but I do admit those first ones did me a tom of good.
Nowadays when I am the one co ducting them I tend to be more relaxed and chill and not be a nazi coz I still remember the repulsion of my first ones ^^' -
We don't like someone correcting our grammar...
But we would be so grateful if someone corrects our code :)3 -
Too much technical debt
Write more unit tests
Unit tests failing, the code will be right so change the tests to pass
Too many unit tests to maintain, they look a lot like technical debt
Remove unit tests to reduce maintenance overhead -
I love it when you don't know if your code is working as intended because you can't figure out what the intended behavior should be.
yay!
*sad party horn*
Please ignore the wk99-like code. I've been throwing stuff at the wall.1 -
Totally hands off. Haven’t touched code for about 2 months at least. Just concentrating on organising things and meetings.
Manager in latest monthly review : “we’d like you to be more hands off”.
How!?10 -
Fuck you for asking for my advice and then just disregarding it because it doesn't dovetail with what you were hoping for. You continue to justify your shit code design as "the way it has to be". Bullshit, I just told you other ways to do it. You didn't want to hear it. Open your mind. Learn something new. Be a professional. Your code is ass and you should feel like an ass. Don't ask for my help anymore. Prick.1
-
i think ai assistants would be much more interesting / less annoying if it had a faster, snappier syntax to talk through. Like shorthand code but in the sense of talking and just getting one word responses.5
-
when you see this in the code of a senior programer
if(0){
all sort of things;
}
or just like
if($var == $tmp){
do nothing
}
if i would have done this in college i wouldnt be programming today...2 -
Sometines after a long day of having clients continually find edge cases that break the code makes me want to be like.
"Hey! Having the app work well was never part of the scope for the project, just that it would work ish."
But I know better. -
To me, writing authorization code for securing APIs is like having to fold an enormous pile of laundry and actually putting it all away afterward. It needs to be done but I'm not going to enjoy it.3
-
Me compiling c++ code at 3 am be like:
gcc filename.cpp -o filename
Some error pops up
Cries for a while, looking up for the solution
After writing the whole code again notices was using gcc instead of g++... -
Generator functions should be treated like sorting algorithms: Not worth your time if all you have is 4 or less async instructions.
Callback hell is actually kind of nice and warm when you're a just a few levels down. If you're really confused by your obfuscated code, you suck at node. -
!rant
Just wanted to let you know that i discovered a cool site to test out angular,
https://stackblitz.com/
Pretty much like jsfiddle and co, but does the setup for you and the editor feels like VS Code
may be can be useful for some of you2 -
You know what really cheeses my onions? When people write their code in a foreign language, say French or Spanish, and then come to me asking why it doesn’t work. Like, mate, how you expect me to be able to make sense of your code if your variable naming is totally foreign? And it looks horridly out of place to boot.
Moral of the story: Write your code in English and save us the headache.2 -
How f*cked does a code base have to be until you jump ship? I got a new job recently and been working there for about 4 months. It's a big company and there's ways to move around internally.. but holy cow the code is bad. It almost seems beyond the point of no return... Almost like a totaled car.13
-
Yo the developers I see on Instagram are doing 100days of code with 3/4 monitors along with a laptop and tablet side by side. rich af lol. seems like a show off but idk.may be im saying that cause i can't currently afford it lol.13
-
Is it common to be handed a code base, be told "that's yours now", and not be told what needs to be done with it? Like not given a spec, not given a list of change/problem reports, just "have this, it's yours, go do stuff, don't break anything"? I am trying to determine if this is a blessing or a curse.3
-
is "drunk coding" really a thing? i can't imagine how.
i prefer working code, so when i'm writing code, i need my brain to be working. the "benefits" of alcohol, like reducing social inhibitions, don't benefit source code.8 -
@dfox, @trogus, would you consider adding the topic for next week to be "Near miss: how I almost lost all my code/data"?
It sould be fun, and people can also learn something. Like what not to do, how to recover and how to prevent this kind of stuff...1 -
People be like: “We don’t use comments cause good code should explain itself”
Then proceed to use complicated app architectures with classes all over the place.
Fuck.7 -
Learning to code is like learning to write when you were younger. It can be sloppy or clean but if you keep at it it'll probably become clean. But, with these sites like code academy that accept only one solution to the problems they present it's as though you're being told that everything you're doing is wrong eventhough you get a solution to the problem in the end. It bugs me that these sites want people to code the exact same way.
-
Trying to refactor legacy code can be a real adventure. It's like exploring an ancient ruin, except instead of hidden treasures, you're uncovering cryptic code and dead ends. But the real plot twist comes when you realize there are no unit tests to guide you. It's like trying to navigate a maze blindfolded - you never know when you're going to hit a dead end and end up with a headache! 🤯6
-
seriously considering migrating from code to selling snacks, becoming a barista or whatever
some people just drain all my motivation to code even personal projects
feel like i'd be happier, and less stressed, selling t-shirts by the beach 🫠16 -
Immortality in the sense like Matrix did it would be quite handy. Imagine you could become a program like Smith and be able to change your own source code, clone yourself with the same thoughts, knowledge and past.
Well, unless someone turns your machine off.5 -
I just submitted my professional goals this year.
As I was writing them a lot of them actually sound like things my manager should be doing to increase code quality n agility n reduce the # bugs that end up in prod... -
I'm doing a code review on a huge feature, basically touching every part of our authorization logic, and man... It's like my colleague writes his code to be as hard to read as possible. He's 60+ and you'd think he'd have learned how to write good and clear code, but nope. "Let's make it cool cool and I look like I'm a genius. And if I can spend 3 keystrokes less on a function I'm happy". Fuck me.
-
Most of my projects are based on one or few existing platforms, so core technology considerations are usually quick.
I like to wrap my head around the user stories first and then decide should this be more of a future-proof code, ie more extensible/generic, or just a code that will serve a few specific scenarios but would allow me to get it over with quickly. -
When you marvel at your code creation and the beauty of your envisionment only to be painfully whittled down as your boss tells you to change it all, because he doesn't like how the code looks. Joys of being a junior developer!1
-
I feel i need to be specialized in something coz everyone can code now... like u have machine learning engineers and devops/cybersecurity but im not really into either. What other sub fields are there?4
-
So, I like refactoring old shits.
Now I want to exterminate this over thousand lines of code class. I have to be witty about it and do it within couple of PR, or they will find out I'm not doing anything productive but making their code cute again!3 -
I love sports and code. I dreamt of being able to teach my boy how to play ball but after a few years of TBall and Soccer, I accepted that he did not like sports. I didn't want to be the kind of father that forces their child to play when they don't want to so I let the dream go. Besides, he'll be a coder like his old man right? He's 10 now, so I tried to start getting him into working on some Minecraft mods. He loves Minecraft... but no interest in code. 😭4
-
Okaaay.....so after I got fucked at the technical interview i returned there the following day and wrote them code for a system that was actually on their pipeline
Left the thing 80% complete and they were like: Amaizing we will be in touch
And I left bouncing1 -
Not sure what is going to be worse. Fixing the bug in this code. Or removing all of the code I added in the name of finding the bug in this code. I have found myself asking myself why I chose coding when I come have picked something less stressful. Like flaming bull fighting.
-
Coding in Pharo Smalltalk makes me not want to code in anything else.
If i could find a Pharo job i would be pretty stoked.
Yeah I like Smalltalk that much.2 -
I might not be the only one who writes a complex ass code to do some task and when it's done I feel like a spartan and then I find out that a library was already there for it. Me 0 Internet 1
-
Our professor takes points off our code if we use tabs (not much, but still).
But the best part is having "few" spaces is also a problem. Seems like using tabs we be a solution then.
Why?!6 -
Me: *Starts to code for uni assignment*
Puts ANY sort of music in the background => hours of coding go by, beautifully.
Tries to code without music due to broken headphones => 5 min feels like an eternity and nothing makes sense...
I swear, "my headphones broke" should be a valid reason for an extension.2 -
I'd like to one day be as good as my tutors or my better half.
Overseeing research code and developing it further with very little documentation seems like a very precious skill to me. They have my respect for that.
That would also involve getting a phd.
I feel so clueless sometimes but apperently I'm a fighter, so let's keep goin and trying :) -
So I've been in this dilemma.
I'm a senior like around 10 days from graduation. And I know I wanna do programming but like I dont know what area I want to do..
I'm certified in JavaScript and Python which I'm better with python but I dont have any accomplishments to be proud of..
And I've always wanted to make a game (I have a few ideas tbh) but I feel like if I do I'll be sucked into that only and not ever really program software or web apps..
Am I going to succeed? How can I be good enough to be a professional if the best thing I've made is a bit that barely has original code?2 -
My gf wants to be a nomad.
I just like to code in my chosen place of work (home) and not lose focus with moving around.
I'm worried, I get anxiety if I don't find myself in places that let me be productive. I'm very much like a cat in that regard 🐈7 -
To the newbies out there, those who just study and work hard, do you ever feel like you can’t do it? Like what the fuck is the point. You work your shit job and get home and code but kinda just look at your code editor for hours without typing anything? There are times I feel like that. I stay up all night and go to work at a shit job where were accused of stealing shit and it’s like, dude shut the fuck up, but when you get home, you know you’re gonna be a Developer one day, but you just don’t know how you’re gonna get there. Keep on pushing. It’ll come and you can leave you’re shit job. I promise that.rant coding javascript java code keep learning fuck webdev work ranting engineering web development fuckem
-
Working night has to be the most relaxing thing, I'm all alone at the office with some good relaxing classical music, nobody to interfere, good coffee and code and the average office ghost, looking out at the street below I can see the city slowly coming to life in the morning. Wish everyday could be like this 😏
-
Senior developer :: So, how's the work for maintaining the code base going.
Me(Intern) :: It's pretty easy because I have treasure
Senior developer :: what treasure ??
Me(intern) :: Stack Overflow.
Senior developer be like -
Yeah Statler and Waldorf are my new role models. A code review in S&W style should be quite a killer, haha.
- I've never seen anything like this before.
.
.
.
- And I hope I'll never see anything like this again!8 -
I know depression can be at a spike these days, but you know, when the frontend developer is like in hiatus for 2 weeks because of that... And just tells our boss like "hey I'm having serious problems with the frontend code", that's a shitty thing to do, like dude, quit or be honest with our boss so he would know how to handle this batshit1
-
Learning New Design Patterns...
When all you've got is a hammer, everything looks like a nail. Arg.
Recently, my code in almost any controller is like so:
return (new MyFancyClass($param))->methodThatHandlesIt();
that can't be the solution to everything.... although it kind of is
how can I beef up on patterns and avoid crushing a screw into the wall without realizing it's not a nail4 -
Am I the only one who seems to have trust issues when saving code in my text editor? Whenever I want to save I press Ctrl+X+S like 5 times just to be sure.
NB: Ctrl+X+S is equivalent to Ctrl+S in Emacs/Spacemacs1 -
Why is the C++ build and package management system so complicated? I feel like whenever I work on a C++ project, I spend more than half my time just figuring out how to set up the environment, build the binaries, run the tests, when I’d rather and should be writing code.3
-
I dont like programming languages where "there is more than one way to do it".
There should be one way to do things, it makes it easy for developers to understand code others have written, it makes it easier to start working in new teams etc etc.23 -
Coding is like handwriting.
Code review is about having a common understanding of the big picture and ensure be features follow the general architecture and process flow.
Code review is not about nitpicking on FUCKING TRAILING WHITEFUCKINGSPACES , lower case vs upper case SQL statements, extra empty lines AND EVERY FUCKING MINOR DETAIL you can imagine18 -
In the words of Khabib 'Code like a champion, eat like a champion and sleep like a champion to be a champion'8
-
What's the longest code review meeting you've ever had? We're about 3 hours into this code review so far, and it doesn't sound like we're going to be done anytime soon3
-
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.
-
Where do i start , if i am interested to contribute to Open Source projects in C ?
I have a good understanding of C language. Even if i am not able to contribute , it would be nice learn from those projects .
The problem with big projects like the linux kernel is that i dont understand or cant comprehend most of the code , except for few sections like gpios..5 -
I wrote some code in a different pattern than that was seen in the project. Got positive comments, but the senior said that as per the project rules you are not supposed to write like this.
So ended up writing some duplicate code but somehow it incorporates my pattern and existing project rules.
Should I be happy or sad? -
Finally got my first dev job. I am looking at the code base for my company. And it’s like I know how to code in this language. But I don’t know half of the advanced shit they’re doing. I understand they have more experience than me. But I’m just not sure how to catch up to them. Or be even on the same level as them? I guess just more out of office learning?
I can read what they’re putting in the code and understand how it works. But like how they came up with it I have no clue. I guess I’ll learn over time and have to put in some extra man hours.5 -
How can code refactor be so stressfull that even doin' it on YOUR OWN CODE looks like taking a slow walk over broken glass? More than never: GOD BLESS THOSE WHO DAILY DEAL WITH LEGACY CODE
-
Not sure what's better on Friday:
Fix the bugs and push it to prod so manager will be happy.
Or sit there like a dumb fuck and wait for Monday before touching the code2 -
Today I've read this line of code:
$like === true ? $operator = "LIKE" : $operator = "=";
Should I be angry, sad or disappointed?
That was written by a person who I tought could code.6 -
I remember coding a hierarchical website crawling interpreter without using TDD in a library class.
Standing whole day in the flat, think about the working code have to be written.
It was like:1 -
OK... so just spent 3 hours doing the Code Sprint.... 1.9/7 correctly answered... these were "Easy".
Well this is how I feel now....
btw any tips how to do these, seems like you have to be a real God to complete all of these? within just a few days. Do you really need to be able to do this at a tech company? -
While most of the developers like to work on an IDE with dark theme, I still prefer my code to be on a white background.
Am I the only one with this odd taste or are there any other fellow devs with similar interests 🤔8 -
While changing a pathetically written code, a thought came to my mind that like doctors we should also have a licence system for software engineers... And all the engineers who wrote such shitty code should be banned from the profession for life.,👾4
-
I hate low code products. How about I build some bloatware that's inefficient, expensive to host, and completely dependant on something that will be abandoned in 4 years.
If you want to know what your application will look like in the near future, visit your Myspace profile -
You've developed APIs. And they're working locally.
What's the issue in giving that to the front-end team to consume them ?? ( Said in angry raised pitch )
Somebody please let that dumbfu manager know that the codebase needs to be DEPLOYED on a server somewhere. Without that, you just can't magically build code from codebase and give it to people like code fairy !2 -
how do you go about working with a teammate that the best thing would be to rewrite the code he worked with for the last 5 months!?
I mean, no separation of concerns, layers upon layers of unnecessary abstractions, unneeded parallelism and mutex and whatnot...
Like, 5000+ lines of code that could be done in 400...3 -
When I code in Qt Creator, and a function get to be more than 950 lines of code, autocomplete/autoformatting stops working.
I feel like Qt Creator is judging me...2 -
I want to slap the previous devs on my team. Not the current ones, the previous once.
I don't need a comment on every. single. line. of. code
//verify thingies
if(thingies != null && thingies.count != 0) {
Like my god, i can read the if statement to know what it's doing, goddamn.
Comments should only be used when doing something that might not be immediately obvious to the next dev looking at the code.8 -
I've seen multiple rants about how people got blamed for hacking the school or airport or whatever, because they had a terminal or code editor open. Because white text on black background obviously means you're a hacker.
But what if we didn't use dark theme? What if your terminal looks like notepad and Android Studio like Word. Would we be less scary then? Would we be accepted by the public society?1 -
Is there a program which is good for simply looking at code? It wouldn't be an editor per say, but a viewer. It should be tailored around code, have the usual highlighting, color themes is welcomed, maybe something that highlights comments, documentation and so on.
For development on Windows, this role have always been filled by Notepad++ for me because of its integration to the context menu. It does the job, but I'm wondering if there is actually something like this on the market.17 -
Because of this spaghettis shit of code I was unable to make some progress. now I have to bullshit my progress in the standup. because telling I wrote 0 lines of code feels like I should be ashamed of myself. FUCK!3
-
To be sole developer.. what struggles did you face ?. Did you do something like hiting the head on walls when your code broken. ?5
-
Would you guys be interested in a text editor saving system like in skyrim/fallout ? f5 saves current code by creating a new branch, f9 discards the branch and goes back to previous code and maybe f8 to merge.1
-
Be me first time using python forced into it.
Get frustrated with all the syntax errors you make and Python's cancerous horseshit syntax.
Chase a weird desync problem between C code client and Python raspberry pi controller.
Make 7000 changes to the code and run out of ideas because nothing makes sense anymore.
Decide to go ahead and write C code.
Find out you've been writing code to a different file and running an older version of the code.
I'm a retatd FML don't be like me.6 -
Its nice to work for a client that does not call broken features "garbage".
I mean I get it, broken code is garbage but it makes the hours and minutes leading to meetings less anxious when I know I won't be hearing comments like that.3 -
Long time nothing from Mr. Gitmaster, somehow made my peace with him as the project moved out of my focus and he actually seemed to be contributing.
But now some pull request exchanges burst into flames as if they were on LKLM before Linus got castrated. Actually it's with the guy who is jamming out most of the front end code trying to make a really shiny UI with lots of animations that turn our macs into heaters.
Well, debate was over JS code styles or lack thereof and how commented out code should be removed (would actually support Mr gitmaster here). They have me a bit lost there, as I expect the freestyle JS code we produce without any agreed Coding Style Guideline to be an even greater clusterfuck than our C++ code base.
Anyway, hope they come to terms again, like at the start of the project when they jokingly attributed one another as assholes. Their opposing characters could actually benefit from each other. -
So the last couple of days I have been optimizing my site, from a Pagespeed score below 40 to 97 and I can't get further because I'm using Google Analytics, Facebook Like-button and load a couple of images from Youtube.
Why must you be like this Google 😥😥It's partly you code, so why are you punishing me 😥1 -
Project I’m working on is required to be in React-Native...I’m a Swift/Obj-C developer. I wrote two lines of React code and then I have spent the last 3 hours trying to get dependencies for a single library installed to run the project again...
Tell me how React Native is a better and faster way to develop apps over native code???
This seems like a waste.11 -
Boss/prof (does not understand code): "I like it more this way. Come on don't make that face thanks to OOP it won't be that much of a deal to make a change right"
He wants to change a fundamental data structure of our software 😉😉😉1 -
- Dealing only with your own code
- Having enough time to improve and refactor your code whenever you want
- Bug reports are detailed af and not just like "doesn't work"
- Choosing the IDE (and OS maybe, too) by yourself
- Having enough time for bugfixes, implementations
- Software is ready, when you want it, not anyone else.
- Visiting trainings or seminars to improve your skills whenever you want
Yeah, that would be pretty awesome.3 -
The moment when the whole freacking office is bright like the sun and you need to switch to the light version rather than dark to be able to code without killing your eyes...
Feeling like a noob again :( -
I really like the details disclosure element:
https://developer.mozilla.org/en-US...
I've heard there's some accessibility concerns, but man I really like it...
I kinda wish HTML had more every day kinda functions built in. Yeah it's not hard to build these make them modular in your own code, but it would be nice if HTML had some of them standard.4 -
!rant
Just finished a backlog item that got rid of redudant code in about 10 classes and almost done with a feature that the marketing people will like
Who knew fridays could be this productive 😎1 -
Our manager is in tons of meetings all the time. He sees himself as our architect, and he has read and approved code reviews. Yet when he does get time to code and submits his own massive weekend coding binge pull requests, they're often entirely different from everything we've written to this point.
Instead of trying to be consistent with the work we've currently done, he continually argues any comments we make in the code review. I want to be like, "If you wanted it this way you should have designed it this way instead of giving us a bunch of empty class files an interfaces with terrible names." -
I figured it all out, where all the bad code comes from, I know it now!
I think good developers need two things, an ego that makes them wanting to be competent and perceived as such and (very important) a problem with authority!
All the bad code is written by people who wanted to be liked by their teachers. The PM and PO are their teachers now and they make everything possible for them. Technical debt and human costs are swept aside when the authorities want a stupid feature now - because they have to like you and you need to be a nice pet to whip! -
sending in code every week into uni to get graded and every freaking time... my test cases are all green, and yet they manage to think of overcomplicated ~hidden~ test cases to fail me.. it'd be like: program a method that multiplies two numbers and return the result! so ill be like 'easy peasy lemon squeazy! return a*b; theyll be like 'yeah :D u got 40%' liKE wHAt do u Want from mE7
-
Since I started living by Sandi Metz rules for devs, i feel like my code has really improved.
My favorites:
* Classes can be no longer than one hundred lines of code.
* Methods can be no longer than five lines of code.
I hope you find them as usefull as I did.2 -
I'm wondering if there is a way to use Machine Learning algorithm to optimize games like Screeps.com, which is a game that you control your game by writing JS code. Letting the algorithm write human readable code might be too challenging, but optimizing some aspect of the game should be possible, like the best scale up route optimization using re-enforced learning.3
-
I would like to understand xcb library by looking at the rofi (dmenu replacement) source code but there is no code documentation. How do you guys deal with non-documented source code (supposed to be easy)3
-
Documenting your code is like raising a child in a world full of idiots. If the parenting is not done right then your code will be as stupid as the world.
-
What helps me with low motivation is doing something completely else than coding like working out or drawing or whatever you want it to be. Then after a while I can code at full power
-
Why the fuck JavaFX has to be such a bitch
I create a Checkbox from scratch that is the exact same code of the JavaFX one but the label for some fucking shady reason is like literally attached to the box
Today I'm damn tired of your bullshit JavaFX...stop it7 -
/* wk54 */
I would like to resolve the problems of my code while i am taking a nap.
Every time that i get stopped , i´ll take a nap and resolve it in my dreams. Then, when I wake up, the code will be clear and the solution it always work!.
ALL DAY NAPPING !! -
I am the only front end developer in my team, used to be 2, and there is 4 java backend dev. We are all Seniors, so you'd expect to be experienced. I like my code to be "nice" and I am using linting tools, rules, formatting etc... (I do JS mainly).
During a scrum review some of the java guys showed some code on the screen and that thing was a monstrosity for me! I could not look at some code like that, if I had to work with that I'd probably hang myself. Nothing was aligned, no consistency. So my question: you guys aren't using any guidelines to have cleaner code ? How do you make sure you all code the same ?
...
What are you taking about ? We use Eclipse, with default options, no tools no guidelines...1 -
Why does GDB always set the bloody break point one line above or below where I want it to be. This is driving me nuts. It's like its author deliberately planted a nasty practical joke in the code.3
-
The best part is knowing that the code you are writing today will some day help thousands and millions of people to find old friends, plan trips, meet that special someone, buy stuff online or even experience what it would be like to live in another world.
-
This Old Fart looks at webpack prod ver of my code and be like change the way you write code because I can't read it.1
-
Can't every task or bugfix not be a goddamned Chesterton's Fence exercise...
Seriously I feel like I'm spending more time divining what the ancestors might've thought of when they wrote their code.
A byproduct of lazy commit messages.2 -
!rant
I'm not sure if it's good or bad, but lately I've lost that "love" for code, not coding itself, but the code in projects.
Because most of the time the projects are inherited, there is never enough time, It's always a priority. And let's be honest, most of the time programmers don't like others code. (Is it God Complex?).
What I do notice with this "new" philosophy it is that I do not stress when I do not like some development, I ask the "bosses" if there is time to change it or if we continue with how it is. I learn that it should be done better and I continue my life5 -
Once I wanted to be part of a prpduct development team, until I got to see its code. Layers and layers of code like baklawa, even worse maybe. Every dev using that layer in his own way! A nightmare!
-
I need a new title like "thought leader" of something. I only understand code and chickens. So I guess my title will be thought leader of code and chickens.
-
My advice would be to have fun with coding and make things that you like. Consider all other job fields. Only work in programming if it makes you fulfilled and gives you good memories looking back. If you do work as a dev, be passionate about making the code and projects beautiful and high quality. Search for mentorship from developers you admire.
-
Should I be bothered if I have added 200 lines of badly written code to my Android project (which had readable, organized code before) to make it almost unreadable? BTW the app's memory usage is still low like before.3
-
Waking up. Though I wish I didn't have to. Wouldn't it be nice if you could sleep-code (like how some people sleep-walk)?2
-
So what's with the whole Elastic open source licenses thing. Seems like a spat btwn then and Amazon?
https://elastic.co/blog/...
Amazon now argues that doing this means Elasticsearch and Kibana will no longer be open sourced and that the Elastic License limits how the code can be used while the Server Side Public License makes it unacceptable to the open-source community.22 -
Oh when you refactor the complete project structure and give for build the first time !!!
It's like you are sitting with your heart on your hand and praying to God that at least let the errors be readable(I am no genius to think I will be able to produce error free code the first time😝😝) -
I'd like to be able to travel back in time to ask the writer of legacy code whether they were taking drugs when they wrote it... #WouldExplainWhy
-
One thing I would really like to be able to do: always understand my own code.
Boy it irritates me when I forget to make proper documentation and have to loo back at some code I wrote days before. Knowing what I was thinking at that moment would be just great. -
you should be able to use a dropdown to select functions and member names like in visual studio in vs code while editing javascript :*(12
-
Power to edit source code of body and make it a boxer body like Jake Gyllenhaal. Damn, that'd be amazing! 😎🤓
-
When I don't code with IDE support, I will be like is it NullpointerException or NullPointerException
-
Found something like this on the code today…
my_fun() ->
ANestedList = [["Just one element"]],
IndividualResults =
[change_stuff(InnerList)
|| InnerList <- ANestedList],
lists:append(IndividualResults).
Seriously, previous dev? I understand LCs are _cool_, but… really???
---
For non-erlangers: that function can be written as:
my_fun() ->
change_stuff(["single element"]). -
Rant/question:
httpDoSmth1().subscribe(x =>
...then(y =>
httpDoSmth2(x).subscribe(z =>
//do smth with z
return z
)
)
)
Isn't this (not my code) callback hell all over again? The 2. http call expects results from the 1. http call. I feel like this could be solved cleaner using async await/switchMap/etc. ... but not like this.13 -
Hmm am learning mean stack.. so far it is good... But can anyone help me in reviewing my code. Like am doing self learning but I guess my code can be improved with better standards or approaches.. Just curious if can found any help here :)8
-
Sooo. My team and I have module we're supposed to be porting to async code and aiohttp will not work. The server keeps rejecting the byte payload, but if we use synch code like the requests library, it works fine. The code is like identical, the only difference is async. It's been really frustrating because another drop in async version of requests (httpx) works just fine! I don't want to use httpx, the rest of our codebase is already using aiohttp! We think the problem is with gzip encoding being handled incorrectly by aiohttp. I've reported the issue.1
-
Why is debugging like finding a needle in a haystack, except the needle is on fire, the haystack is on fire, and everything's in JavaScript? If debugging is removing bugs, then programming must be putting them in!
And Git blame? More like Git shame! Every "fix stuff" commit is a reminder that past-me was a jerk.
End rant. Back to code. May the coffee be strong and the bugs be weak. 🐛☕💻6 -
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 -
Even when the code is right, it's wrong. Like when you are fixing bugs:
"damn, this variable doesn't look like it belongs in this part of the code", but when you look further into it you see that is correct and you continue with the bug and have no idea what the next step should be.1 -
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 once declared and initialized a variable with a default value all together. (var a= "default";)
And in a certain IF condition the variable value has to be changed, so i was changing the value of the variable inside IF condition. If (x==y) { a=" newVal" ;}
During a code review i was asked why i am not assigning the default value in ELSE condition. And i was like whut 😑.
So........ Some Programmers be like IF shouldn't exist without ELSE.6 -
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 -
Hi my name is Kray and am an addict. I subconsciously create code with Bugs so I can later solve, I then after get a feeling of deep euphoria. It's like discovering fire albeit it's more like using matches to start one ( kgm Stack overflow.) 😅 But it's a a healthy habit in a safe environment it could be worse, I could be on narcotics... No wait I take it back I have been dabbling with JavaScript 🤦🏾♂️😂😂..2
-
Write your <insert language here> code like the person who's going to be maintaining it 6 months from now is a vicious psychopath and knows where you live.
-
HOW to document business logic in code?
background:
I'm a frontend dev for admin system of our company. Often times I code things like: if user choose this product type and that settings then I show some other input field to input. I deal with mostly forms and show/hide UI for user. And after some time nor did user/PM/test or myself remember the logic of what should show or why something do not show.
So I want something to be able to let me write code and business logic along the way.(I'm not asking for API docs or function docs like JSDoc)
Great Thanks
Related topics:
And In terms of this, I would also like to build something to centralize PM's business DOC with developers API/dev Doc and also things like how to test for our test team and etc... basically a unified place to document everything, I think scenarios like these inside companies should exists so I would like to know how other company do this.9 -
I: Sure i can code this event calendar. We have two options. Adjust design and use plugin like fullcalendar. I can adjust the look pretty fast and cheap. Second option is code this from scratch. It will look and act exactly the same as design but will be bit expensive. You know, whole javascript, CSS, HTML and so. Basicaly like entire new calendar plugin or so.
He: Client already saw the design and we do not have high budget.
I: Ok, no problem, let's use fullcalendar.
He: Designer promised to him to be exactly like design.
I: Without asking developer for solution in available price range and time frame?
He: Hm...
I: Good luck.
---
It's just funny.1 -
Seems like latex does not like recursion. Defined a command as itseld by accident and got lots of strange error. Will there be a time where i can accept that copy-pasting code only generates problem?
-
Teaching all my friends JavaScript and thereby learning more myself. What a beast it is to comprehend. Other languages feel like learning a structure and syntax, where as JS feels like learning an entire actual language.
Soon... Soon we will all be speaking ninja code. My evil plan is coming together >:) -
So this is my first rant but here goes
So I'm studying I.T. in college right, I swear the longer I do this the summer I feel...like the more they teach u the less self worth I have all I do is regurgitate code...sigh not everyone can be like cardi b...but strip club here I come -
Is JAXB explicitly DESIGNED to be the most brittle and frustrating API in the entire Java ecosystem? Sure fucking seems like it. Feels like every damn JDK upgrade or dependency upgrade requires screwing around with JAXB-related code, and not always in trivial ways, or a trek back into dependency management hell for a while. ARGH!!
-
Finish my game. It will probably be shit because the concept just wasn't that good, but I will be able to extract 2-3 useful node modules once it's finished and tested properly. A VoIP system with overlapping rooms and an efficient co-browsing system without a serverside browser like Selenium are certain. Perhaps the plugin structure as well, but that's more architecture than code.1
-
I understand the basics of c++ and java. I want something that will help me grow and learn more complex code and programs. To be honest, i don't know what to do or where to go, my next computer science class will be data structures and algorithms. Can anyone recommend a good textbook or read. Id like to pass on websites in the likes of codeacademy.5
-
Anybody who can too totally identify / has gone through similar physical and mental breakdowns like the core programmer in Netflix's "The billion dollar code" while realizing that the given code problem will not be solved on time in combination with huge financial pressure?4
-
Sometimes while writing software / consulting I feel like house md. Not always am I right the first time, but this is often due to me looking at the wrong thing. But at the end of the day I am able to give advice that may be seen absurd but usually is correct.
(tip: it's never lupus, what is quite right because code is code)1 -
Is programming a website/basic backend program in TypeScript with NodeJS actually a good idea? Or should you be programming it in C#, Rust, (not PHP), Golang, etc?
I personally feel like NodeJS has pretty amazing performance considering how much less code you would write compared to the other options. Although I feel something like Rust (haven't used it yet) would be more robust but more work.
Note: I only currently know JS, TS, C#, Go and obviously HTML, CSS9 -
To like really bother someone with the code
Just go and write in the body class display:none
No matter what the person does he won't be able to find the error😂😂2 -
My coding style is mostly influenced by good old personal preference, but also because of a certain internship where there was a lot of gain to be had by making everything as reusable and testable as possible.
I guess you could say my motto is usability, readability and flexibility:
I like tidy, reusable code with an emphasis on keeping code readable. I've always liked modular things I guess...
And I despise two things: curly brackets on the next line and spaces for indentation... But way worse is having no brackets at all (looking at you Python): it's clearer to have lower-level code inside some sort of "container" markers i.e. brackets (also gives more IDE functionality like color-coding hierarchically).
Indentation should always be tabs so anyone can have their own width of indentation set through their IDE, making it way more accessible to fellow colleagues!
And I also like having parameterized code over hard-coded functions: way more flexible. -
https://adventofcode.com/2021
Anyone ? ;p so far I like little code every day not related to work and some of "tasks" are pretty interesting (Ok, I mostly brute force everything, but it can be done so much better!)5 -
I am looking to develop an app to take advantage of the bluetooth technology in fitness bracelets. I have a few ideas but no starting point. I can code though 😅 but I'd like to know what concepts I need to know, what open source fitness app code I could look at or anything I need to be aware of before I begin my ambitious (life changing) project. I plan on using an oraimo tempo C smart bracelet for my project. Any advice, comments and discouragement will be highly appreciated 😊
-
I know that when your code is in PR Process its a good oportunity to improve but I dont want my TL think I am useless... It was a good way to verify how he likes to work and that he is a functional approach fun but I would like to give him the image of being accountable... This is my 2nd week...
I would like to know if there is a place where you can grab imperative java code so as to practice... I wont run like crazy to transform all to functional but would like to be awared..
We are using Java Vavr library which is amazing... -
Been working on some meta code.
Inspired by flatted, I made a JSON serializer that exports to either an evalable string or a string that can be written to a file and used as a standard module.
It's part of a bigger project
https://twitter.com/ThingtimeCorp/...
Hope you like -
Rant.
I hate premade code/libraries fucking fuck some library decisions should be a question criteria for any interview. I would like to know the thought process you involved on why you chose a particular library. Fuuuuuuuuuuccccccckk the frustrations.
Thanks have a good day. :)2 -
Actually, it can’t really be called a design asset, what’s updated inside are some niche graphical/image materials. I have a feeling that there will be people who like it as much as I do 😂
This is my first attempt at creating something small and I’m afraid of being overly self-indulgent. If you happen to like it too, that would be great, or any feedback and suggestions would be immensely appreciated! 🌟
As a token of my gratitude, I’m offering a lifetime discount code which will give you automatic discounts on your purchases. It’s available for one week only,🚀 please help spread the word~
You can find the link on my personal homepage.
I don't want to be treated as a marketing post 😂1 -
So... I like 30 seconds of code! And I like the idea of it tbh, I was thinking about something like before.
The question is, how bad will it be if I do a similar website but in my native language? 🤔
I don’t want to be a copycat .. but its really good idea for sharing knowledge and to help other programmers. -
This seems to be odd bug, not impacting windows itself but some things like python. Can you check this code on your Win:
if %PATHEXT:~-1% == ";" (echo Bugged) else (echo Seems fine)
What it prints ?5