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 - "how do you code ?"
-
*yesterday*
Client: "Perfect! How did you do this so quickly?"
Me: "I used a library"
*today*
Me: "I'm still debugging. It will take some time"
Client: "Well, it has already taken too long...I can hear Mozart in the background. Maybe you need to go to a library to get some quiet and get it done fast. Visit the one you used yesterday."
Me: "Library?...Ah, I meant plugin...like, code...a library is a bunch of packaged code"5 -
Overheard a phone call of a collegue:
Person on phone (P): okay so how do I upload the code?
Colleague (C): well you could use filezilla for example
P: oh... okay... yeah.... So how does that work?
C: you said earlier that you were going to hire a more technical person, a developer, to develop this wordpress side, maybe he/she could help you out with this?
P: I am that developer.
C: 😶😐10 -
Boss throwing up a huge source code that I didn't see before.
Boss: Hey, this is an app from a contractor to do XYZ.
Me: Oh, okay.. so?
Boss: You will continue the code and the maintenance now. How much time do you need to implement X feature?
Me: I need to see the code first, can't say nothing now.
Boss: ok I need estimation now.
Me: *getting nervous* I need to see the fuckening code first. if you want estimation now I would say one year..
Boss: what?
Me: what?18 -
Costumer: I found a 40 line python script on Stackoverflow to do that.
Dev team: ok, now... how many lines you think we will need to put the python interpreter, libraries and your 40 line script inside an Android and iOS apps with legacy code?3 -
Boss : How do you access code at home ?
Me : Well, Git is fairly accessible from anywhere with the right credentials at hand
Boss : What of you have virus in your system ? Can't the virus infect our NodeJS code ?
Since then, I haven't been able to get out of the mental comatose induced.4 -
A friend of mine: Look at this nice app I made 😎
*shows me a normal looking app with tabs and different views"
Me: Hmmm… looks good.
Friend: Do you know how I made the navigation between views? 😏
Me: I'm afraid to ask…
Friend: Since I didn't know how to use the piece of code I found on internet, I made multiple views one above another with visibility set to false, and during the navigation I just change the visibility. 😁
Me: WTF? Man… this isn't something you should be proud of… it shouldn't be done.
Friend: Do you also want to know how I backup the code?
Me: No…
Friend: I send it to myself via email.
Me: FUCK!
Friend: I also never use while loops, I prefer to use for instead with a break inside. 😊
*blocked*17 -
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 -
Joker: If you are good at something don’t do it for free
Me: (thinking) How much shall I charge to introduce bugs into someone’s code? 🤣3 -
HE:"Hey I improved my code"
ME:
*opens the file*
*Sees random static allocations*
*Code is as verbose as before*
*Down to 2600 lines from 2800ish*
*Still doesn't do shit properly*
"Uuuh what exactly did you do?"
*Starts noticing the lack of namespaces*
HE: "I used this using namespace std to write a bit less"
ME: "Can I pay you yoga lessons so you can taste your own cock and show your parents how good you are at it?"3 -
Lead engineer: "Well, uh... I haven't really prepared a test for you but the HR insists that I should test you before wrapping up this interview.. so uh.... what do you suggest we should do now?"
Me: "Um... how about we walk through my latest project code and you can ask me to optimize it?"
Lead engineer: "Sounds cool, allright let's do that. How much time do you need?"
Welp. Did I just pick my own interview question?5 -
So Last year December my cousin see's me making a basic 3D game in Unity and says he wants to do programming.
Me: No, you don't want that. Become a doctor like your parents want you two.
Him: I'll do it.
Me: Ok. If you want to suffer, i'll teach you some basic C#
Me: *Shows him basic C# code in visual studio*
Him: *Not paying attention* Cool. When can i make games?
Me: That's not how this works. Where do you intend to study?
Him: M.I.T!
Me: You better get your ass infront of that fucken computer, google and youtube the shit out of you, matter of fact i'll get you a shit bucket so you don't have to get up.
Him: I don't have to go so hard now, i'm only 16.
Me: *Facepalm* That's why you have to do this now.
...7 months later...
(Yesterday)
Me: Show me how you make a basic calculator application.
Him: I don't know how to do that, you didn't show me.
Me: *laughing*
Him: Whats so funny?
Me: You're screwed *still laughing*
Don't get me wrong. He's a smart kid. Just needs to fucken do something if he wants his goal.13 -
Advice that I give to interns/grads:
In uni/college, you're taught *how* to code something to achieve a goal, and 99% of the time the code will work and do the job in a lab.
But when building things for a real production environment, you learn the 100 ways how *not* to code, from seeing things break left right and centre - basically everything and anything can break your code, whether it is users, the OS, other people's code, legacy code, lag, concurrency, the alignment of the moon to your server...5 -
I hate when people look at me weird when I talk sexy to my code. It's like how do you not find this sexy. Lol I'm in class like awww yeah pull that input and increment it you dirty software.9
-
If the below is you, please stop. I'm starting a revolution called #AnswerTheQuestion
A: Hey, just checked your code, you have a huge security issue in XYZ, you should really address that.
B: Oh god I had no idea, how do I fix it?
A: Well it depends on how you *want* to fix it, no one solution is always the right one.
B: ... Ok, well could you give me some advice?
A: Well, there are many ways to approach this kind of work, but all I can say is that this way, is definitely not the correct one.
B: ... Ok, well how would you do it?
A: That would depend on the customer requirements.
B: ... the requirements is to have a website that isn't easily hackable, what do I do?
A: Nowadays, its pretty hard to make a website completely not hackable.
B: ALL THE SERVERS ARE SHOWING RED, PLEASE HELP ME!!!
A: ........ you really shouldn't prejudge colours. The colour red doesn't always mean danger, depends purely on the use case.9 -
QUESTION: HOW TO CODE A?
STACK OVERFLOW: HOW ARE YOU SO FUCKING STUPID? YOU DO THIS. THAT'S HOW YOU CODE B.10 -
Look... I know I'm just a newbie. I started a year ago as a junior. Sure. No one wants to do code review, so I got chosen to do it. People don't like it when their code gets criticised. And you know what? I get it, I should probably be a bit nicer with my comments. I should not suggest I'll make a fork and split internal library into two streams if things continue this way. I should not ask questions that can be understood as me being passive-aggressive.
But holy fucking shit, you're a senior developer. Don't treat Java as a fucking scripting language. Don't have a method that has 600 lines of code, because you're repeating the code! You've already copy pasted this shit, and modified it slightly. Like, couldn't you have created some architecture around the code? How can a senior dev copy-paste code?
Oh and why the fuck did you create a new utility class for functionality I already provide? Look, I admit, yours is a lot better, ok? It has extra functionality. But why the fuck didn't you enhance my utility class? Why did you create a new one? Did you just not want to touch my code, or did you not see it right below your newly created class?
Am I the only one who fucking cares about maintainable code in this company? When I got hired, I was in tears by how frustrating a lot of the things were. No documentation anywhere, not even fucking comments. No processes in place. Want to do something? Source code is your documentation. Fuck you! I busted my ass of to force everyone to document every little bullshit, to re-factor their MRs that I reviewed, and I won't let even a senior fucking dev pollute the code base!
Fuuuuuck... Me...2 -
*my first day on the job to work on a website used by dozens of companies worldwide and 1000s of users*
me: So where can I find the git repository?
dev: Git?
me: Uh... what kind of source control do you use?
dev: We don't use anything fancy like that.
me: *freaking out a little, I already committed to this job*
me: So then where do you edit your code and how do you back it up?
dev: Oh, I just edit it on FTP and zip all the code every week.21 -
Just found this precious gem in the legacy code I am maintaining! How do you check if a string is empty :-D ?5
-
New guy at work asks me for a code review. 16 lines added, and I have 4 comments, all about readability. Only the major stuff because I went easy on him. I even ignored a missing semicolon.
Guy comes to me and explains that code review is about if code works, not what it should look like. "You want me to write it your way, and we'll have endless arguments if that's how you do code reviews. But I'll do your requested changes." Reduces his entire code to two lines, which make a lot more sense.
Later, I ask him why he used "void 0" anyway. I was wondering if he's thinking of security aspects or if there's another reason. His answer: "because it looks cool and nobody else does it". -
We hired a developer and he has very minimal experience. I feel most of our conversations end up going something like this.
New Guy: I'm not sure how to do this obvious task and I'm incapable of searching Google.
Me: Give me your hand so I can hold it and walk you through the process of copying and pasting code from stack overflow.
New Guy: Ok...give you my hand...right...how do I do that?
FML7 -
How do you salvage a really hard question on a whiteboard interview?
Ans: "I'm sorry, I don't code on light theme"!
Via reddit user csquestions5583292 -
friend: how do you create a game?
me: *laughing* slow down, first of all try to learn to code, then...
friend: cut the bullshit! your the IT guy, tell me, how you simply create a for e.x. Call of Duty?6 -
Friend: I don’t need git. Git is for people like you who cant do good backup of their code
Me: Yeah, yeah, go do whatever you like...
2h later comes to me:
Friend: Can you make me repo and show how to use it...?
Me: What..? You drunk?
Friend: Naaah, no... My disk broke while ago...
Karma is a bitch :D6 -
Friend :- Dude i made some changes and the code is not working now.
Me:- Bro, Do you even GIT it?
Friend :- No i don't GET it how it happened and how to restore it.
Me :- You destroyed my pun and my faith in your development skills -_-.1 -
Fuck code.org. Fuck code. Not code code, but "code" (the word "code"). I hate it. At least for teaching. Devs can use it as much as they want, they know what it means and know you can't hack facebook with 10 seconds of furiously typing "code" into a terminal. What the fuck are you thinking when you want me to hack facebook? No, when I program, it's not opening terminal, changing to green text and typing "hack <insert website name here, if none is given, this will result to facebook.com>" Can you just shut the fuck up about how you think that because you can change the font in google fucking docs you have the right to tell me what code can and can't do? No, fuck you. Now to my main point, fuck "code" (the string). It's an overused word, and it's nothing but a buzzword (to non devs, you guys know what you're talking about. how many times have you seen someone think they are a genius when they here the word "code"?) People who don't know shit don't call themselves programmers or devs, they call themselves coders. Why? It fucking sounds cool, and I won't deny that, but the way it's talked about in movies, by people, (fucking) code.org, etc, just makes people too much of a bitch for me to handle. I want everyone reading this rant who has friends who respect the fact that YOU know code (I truly believe everyone on devRant does), how it works, and it's/your limitations, AND that it takes hard work and effort, to thank god right now. If you're stuck with some people like me, I feel you. Never say "code" near them again. Say "program." I really hate people who think they know what an HTML tag is and go around calling themselves coders. Now onto my main point, code.org. FUCK IT. CAN YOU STOP RUINING MY FUCKING AP CS CLASS. NO CODE.ORG, I DON'T NEED TO WATCH YOUR TEN GODDAMN VIDEOS ON HOW TECHNOLOGY IS IMPORTANT, <sarcasm>I'VE BEEN LIVING UNDER A ROCK FOR THIRTY YEARS</sarcasm>. DO I REALLY NEED ANOTHER COPY OF SCRATCH? WAIT, NO, SCRATCH WAS BETTER. YOU HAD FUCKING MICROSOFT, GOOGLE, AND OTHER TECHNOLOGICAL GIANTS AND YOU FUCKED UP SO BAD YOU MADE IT WORSE THAT SCRATCH. JUST LETMECODE (yes I said that) AND STOP TALKING ABOUT HOW SOME IRRELEVANT ROBOT ARM DEVELOPED BY MIT IS USING AI AND MACHINE LEARNING TO MAKE SOME ROBOT EVOLVE?! IF YOU SPEND ONE MORE SECOND SAYING "INNOVATION" I'LL SHOVE THAT PRINT STATEMENT YOU HAVE A SYNTAX ERROR UP YOUR ASS. DON'T GET ME FUCKING STARTED ON HOW ITS IMPOSSIBLE TO DO ANYTHING FOR YOURSELF WHEN YOUR GETTING ALL THE ANSWERS WITHOUT DOING ANY WORK AND THE FACT THAT JAVASCRIPT IS YOUR FUCKING LANGUAGE. <sarcasm>GREAT IDEA, LETS GET THESE NEW PROGRAMMERS INTO A PROFESSIONAL ENVOIRMENT BY ADDING A DRAG AND DROP CODE (obviously we can say it) EDITOR</sarcasm> MAYBE IF YOU GOT THIS SHIT UP YOUR ASS AND TO YOUR BRAIN YOU'D ACTUALLY GET TO PRPGRAMMING IN YOUR ADVANCED AP COURSE. ITS CALLED FUCKING CODE.ORG FOR A REASON32
-
Being a college student and knowing that when someone ask for "help" they actually mean "Give me your code"
The other day someone asked me for a way to solve a homework and I instead gave them the links from MSDN of the libraries and method he needed and he was like "Okay but how do I use this, how did you do it?" I facepalmed and decided to delete them from facebook, I hate leeches who wants me to do their jobs.8 -
Just got my first IT job (I'm 19 y/o)
I am a C# programming teacher now :D for teens aged 15-18
I like it but I've had the chance to give the first lecture and there's this kid
Who is constantly interrupting
"Excuse me, programming is boring, when will you tell us how to break passwords"
"Excuse me, I have this neighbour I don't like, how do I put his printer on fire using code?"
"Excuse me, so we now know what classes are but can you tell us how to run fork bomb on system startup?"
afohsdofhidsfoidfsg
I suppose the kid will be becoming famous here over time
Also, out of rant, what do you wish your lecturers said to you when you were just getting started?17 -
He: Hi Lexter, our client made a website on WIX.
Me: And he wants to remake the website due to SEO, shit code, design and all other aspects.
He: How do you know?
Me: Realy?3 -
How to get six pack Abs (Developer Version):
1. Do 20 bicycle crunches whenever your test fails.
2. 30 seconds plank whenever there's a issue assigned to you for your code.
3. 50 mountain climbers whenever the code breaks while you are giving a demo to client/boss.
4. 12 jack-knife sit-ups whenever you miss your deadline for more than 2 weeks.11 -
Manager: How’s the progress coming along?
Dev: The section of code I’m working with is one of the more difficult ones so it’s a little slow
Manager: Ok well I didn’t write that section of the code
Dev: I’m not saying you did I’m just giving you the status update that you asked for
Manager: Ok well I can’t really do anything about that so how about you tell me something I can do something about instead of just complaining about code THAT I DIDN’T EVEN WRITE!! *Marks self as offline*
Dev: …10 -
When I am sitting in my school and writing a few lines of simple HTML code, people looks at my screen and more less shouting out loud "wow you are like a hacker or something? Who are you hacking and how do you do it and how did you learn it?". It happened a couple of times to me. Sometimes I just tell them it as it is and saying something like "it's simple HTML code" and a little explanation of what it is. Sometimes (depending who it is) I answer that it is a new kind of spyware I'm developing and if I'm lucky they believe in me and starts begging me for not hurting their computers.
Just a few lines of <script> and some code highlighting. How to become a hacker!8 -
Random dev online: Any chance you could help me figure out how to use something the company you worked for wrote? I need to do XYZ
Me: I didn't write it but sure. Theres a doc here about the full process of doing XYZ <link>
Random dev 5 seconds later: But how do I actually do it? The link doesn't show how to do it via code.
Me: You'll find if you actually read it, that it does. Because I checked. Good day2 -
I bet some day we'll have robots tell us where bugs in our code are instantly and our kids will say "How did you ever write code without them?" And we will say "We had to use this archaic thing called Google and do research... It took forever!"6
-
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 -
Programmer Influencers piss me off to Jupiter and back.
The ones who talk about just being a programmer, and don't do normal tutorials and solve a real-world problem and demonstrate it.
"i iNcREaSeD mY pRoDuCTiViTy bY 90%. hErE's HoW"
"tOp 10 lAnGuAGeS yOu sHoUlD lEaRn iN 2023"
"dAy iN thE LiFe oF a SoFtWaRe EnGiNeEr"
"HeRE's hOw yOu cAn wRiTe bUg fReE cOdE"13 -
no matter how big shot programmer you are, you 90% time you will only code
if(condition)
{
// do something
}
else
{
// do something else
}8 -
First year at uni, during c++ basis.
The professor has just finished explaining the while cycle.
Professor: We want the code to print all numbers from 0 to 40 using a counter. How would you do?
Classmate puts up his hand: we do 40 if statements and when we reach the 40th one we stop.
Professor: *face palm*9 -
How intellij handles syntax errors while reformating code vs eclipse:
Intellij: I'm not sure what you want to do there, so I'll just make slight adjustments.
Eclipse: Yeah, I don't understand this so fuck your whole file. -
- Hey how are your fingers today, do they still hurt?
- They're OK, why do you ask?
- Oh, then it must have been your lack of programming skills which made me puke while looking at your code.1 -
"How do you make an app?"
The most difficult answer to explain to someone that knows nothing about code.3 -
Processing is WHAT?!
So is it just me or is processing like the most fun thing to do with coding ? I mean, it's perfect for relax; it's fun like playing games but it still gives you something.
I've never been so keen to code like I am after weekend with processing. OMG!
And it's not just that you can do everything, understand how M$ Paint/Photoshop does things, understand how games work and how EVERYTHING around graphics works, it's also that there are SO MANY REAAAAALLY GOOD resources that you enjoy ""studying"". Things like pong, game of life, Gaussian blur (the one you use in Photoshop daily, yeah, do you understand how it works ?), Painting or edge detection OR ANY OTHER THING RELATING TO GRAPHICS.
It's simply amazing so if you don't know about it, give it at least 10 minutes(at that point, you'll be programming GTA 6/Photoshop 2 or something..), you won't regret it.
Anyaway, feel free to share your creations!10 -
Hey, i took a look at your code and heres how you could improve your performance!
"No thanks lol it works this way too"
Okay you fucking idiot, thats not how you do normal distribution
"Why are you so mean"1 -
Me: Can you do the javadocs comments
Coworker: I've never done that, *looks for it on google*, I can't do it, I don't know how.
Me: Did no one asked you to comment you code at school?
Coworker: Yeah, but only the ones with '//'
Me: Ok, bring me coffee1 -
I was teaching my fiancée how not to write duplicate code. After a while of me ranting about why you shouldn't do that she made a dostuff() method and dumped all the duplicate code into it.
I kinda like the result of that.
On that note, i finally made an account after lurking here for weeks. So, Hello!1 -
Software engineering course.
Professor wants to show us some Java code.
*Opens eclipse*
*Font super small*
Student: can you please increase the font size?
Professor: sure.
*Can't find the correct setting to do that*
Professor: does anyone know how to increase font size?
Some student at the back: copy the code to notepad++.
:/
Cool professor though..9 -
I've been looking at the shittiest code today. Hundreds of lines saying
this.thing.otherThing.EvenAnotherThing[this.someFuckingIndexThatShouldntBeAField].theOnlyBitThatsDifferentPerLine.AlsoNoneOfTheNamesWereThisMeaningful
Over and over. They're all wider than the editor window. Clearly copy pasted. Just make a fucking variable Jesus Christ how do you expect anyone to read that2 -
There's this junior I've been training. We gave him a bigger task than we usually do
"How do I link an object in table X with the corresponding object in table Y?"
"How are objects in two tables usually linked? How did you link Y with Z in the first place?"
"Em... Foreign Keys?"
"Yup"
"But there's not foreign key from X to Y."
"Well, create one. You've got full creative freedom over this task."
I sometimes feel like Juniors are either completely careless about past code or overly carefuly with not editing any past code. Frustrating but adorable2 -
How to teach a 5 yr child to code?
The method is simple you don't need to teach him to code just help him to understand the method to execute a task. It took me years to understand that coding is a way to express what you want to say- the method and also is our expression. So, if you can help him/her to understand what to express, then I believe the method on how to express is totally unworthy. He/she can say printf("I know this") or print("I know this") or #I know this or he/she may create a new language.
Which you might call: The Baby's Code in future
If you like it do ++8 -
Me: 'alriiight let's run this code here'
Logs: 'lol the function you did is deprecated. how about you don't do that, and do the right thing instead'
What was the right thing?
I don't know. It's not on their documentation in their site.
Thanks, js devs :) you guys are the absolute best3 -
Me: please return http code 202 in your http service.
My collegue: ok.
After one hour...
Me: you are returning 200, I told you 202. Let me see the code:
OMFG she was writing the string "202" in the response body!!!
I do not know how to escape from all of this shit.1 -
Go to business school to get a Finance degree... Since you already know how to code, why do you need study CS? Finance is hot now, make $$$$$$4
-
I noticed my co-worker has been using Atom editor for everything (we do Java/Scala). I asked, "So are you using the new language servers? How are you doing code completion?"
"I don't use code completion. I turn it off."
O_o "Do you not use screwdrivers? Like do you tighten screws in by hand?"
I've know people who code Java/Scala in emacs and vim, but they still had completion, type-lookups, etc. They was a higher learning curve in knowing all the keyboard commands, but all the tools were still there. I don't get people who refuse to use tools. It's reflected in this guys works too when looking at the code reviews.
When all you have is a hammer, everything is going to look like a nail.4 -
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
-
I can repair an electronic item, write code and debug. Has a degree in CS so why do I have to ask the wife "baby, how do you operate the washing machine?"5
-
How do you lock your phone (or computer)?
- not/swipe
- 3x3 dot connection pattern
- number code
- password
- fingerprint
- FaceID25 -
Last week I designed the front page of a construction company website for getting the internship....
After showing my sample to the HR ..he mailed me asking
--->
"Do you know how to code?"
--->
Now I don't know is it sarcastic or I really don't know how to code.17 -
SLOC is the shittiest metric to exist.
If you're in software management, know that any of the numbers you've ever received (from me or anyone) for SLOC count are totally worthless.
"How many lines of code do you think you'll need to write to finish those features"?
"100000000000000"13 -
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 -
Hey Designer/Developers, I got a question for you. Yeah, you 👇🏽
When working on a project codebase that is expected to grow and evolve heavily. How do you usually split up your CSS (SASS, LESS etc) in a good way to take into account all the different device sizes?
I am not asking how it is done but more about the design of the code. This would be for a production codebase to be released.
Do you use large blocks broken down by media...
(Media width) {
~site code
}
(Other media) {
~same site code with diff sizes
}
Or do you do individual media queries inside css classes...
.className {
(Media size) {
}
(Other media) {
}
}
Or a mixture of both?
If it is a mixture of both then how do you decide which way to go about structuring the code.
I have been endeavouring to greatly improve my CSS and have done so. But this question has been bugging me. Both sides seem to be a bit sloppy and my programmer side is fighting the repeatitipve code.
Note: all code examples are gibberish and only intended for visualization.17 -
Hey guys how do you deal with juniors who code like this?
As a Senior this give me OCD and anxiety.55 -
What do you do when a developer who has higher title than you; changing a bit of your code to his/her own favor and then claim "fixed and optimized" your code to shoot you down and then take the whole credit?
Essentially how to deal with this kind of theft or robbery?9 -
Have you ever looked at code you had written years or even decades ago and asked yourself either:
1) How this this even work?
2) What the hell does this do?
3) or, I can’t believe I wrote that. (In horror or serendipitously)5 -
My Manager: Could you help "other manager" (OM) they need some very simple code changes.
Me: sure that will only take a few minutes *adds 15 lines of code tells OM one single line they have to modify*
Some other manager (SOM): Hey how does this work, I'm confused, do I need to do anything?
Me: Yes see the email chain you were copied on.
SOM: Actually let's have a meeting instead and all discuss this.
Goddammit this was a simple change to make your life easier now you are wasting everyones time by not reading the email -
Guy sitting next to me sees me coding, gets excited, and asks "OH, THAT'S COOL... what do you do?"
In my head I'm thinking: I... CODE.... ur watching me code.... I do exactly what you see me doing!
Not knowing how to answer, I just end up staring at him for 10 seconds.3 -
I (don't) like how some people say "If your code needs comments, your code is probably ugly and should be rewritten".
Well, asshats. You have never considered complex calculations/functions or "temporary" workarounds, right?
Sometimes, you have to do it in a not-very-readable way for efficiency. There is no way around that in that case, and comments that either explain the code below or provide alternative, slower code that's commented really help others understand your code.
If I ever work with you and you don't bother commenting your code at all (or rather use slow code because more efficient code doesn't appeal to your "muh code dun need comments" approach), I will hate you.6 -
The more I learn about programming the more terrified I become about having huge knowledge gaps and learning something wrong by possibly making wrong assumptions about how certain things work or by falling on bad tutorials. I'm constantly hyped about coding, and at the same time I always feel I will never be able to say confidently "I know how to code".
How the hell do you make sure you are learning programming correctly as a self taught? Or do i just have to accept that no matter how and what I code there will always be a better way to do it, resulting in me constantly feeling as a low-skilled coder?3 -
Watching IT guy on the show "How to get away with murder" explain how to hack:
"It's not that complicated, really. You just download that app from the deep web and worm your way into the phone company's main frame using basic java code. Anyone can learn how to do that."
Thats how you do it! Thank me later.8 -
When your sprint review is turned into a 5 hour argument about how to effectively do scrum and all you want to do is code.1
-
One thing I hate about WinForms:
"do not modify the contents of this method with the code editor."
How the phook do I add eventhandlers without adding them in the code? By some mysterious ways in the so called "designer"? Click and drag? Wearing a tie and talking to the computer? Making a phone call to Microsoft? Immersing into VR and ordering an event handler from a virtual store?
No, I've always just typed whatever I want to achieve and I'm going to do so whatever those know-it-all comments say in the auto-generated code.
You can call me a conservative old fart, but nothing beats writing my own code.6 -
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 -
Honestly I frankly do not care for your title, I care for what you've done and can do.
You may be "more qualified" in research, but if you have no idea how to write software, you're not qualified in software engineering, and frankly, you shouldn't be telling me how to write my code if you don't even understand the use case.
And then don't pretend you own it??????????? The fuck man. I'll sink you.3 -
I contacted the creators of Nova Launcher because I want the full version. They have both an google play upgrade as an input code upgrade.
Since I dont have any google service anywhere I contacted them to ask how to get such a code because I dont have any google service. This was their reply:
"You would need to purchase the app via the Google Play Store, then once you have, email us a copy of the receipt and the email you used to purchase the app with, then we can give you a Direct License to use since you don't have Google Play Services."
How do I buy it if I dont have any fucking google service?17 -
How I feel when im asked to add functionality to a project that was built like 10+ years ago and needs refactored in its entirety but the code base is so terrible that youre honestly better off just starting it from scratch but you are thrown into 5 other million things and there is no time to do it so you just shit out the bare minimum code that will not break the rest of the application.4
-
Everyone who self taught themselves code, how did you do so? Books, websites, any recommendations?28
-
"Yesterday "
Client: ''Perfect! How did you do this do quickly? "
Me: "I used a library"
"Today "
Me: "I'm still debugging. It will take some time"
Client: "well, It has already taking too long.... I can hear Mozart in the background. Maybe you need to go to a library to get some quite and get it done fast. Visit the one you used yesterday. "
Me: "library?Ahh... I meant plug in like.... Code, a library is a bunch of packed code. "4 -
I hate how my teacher always says "do your homework that does this and only this"
and the the next day he is like "i'm gonna implement the code you were supposed to do so it does 4 more thing you couldn't even think about it"
and i have to spend all my day changing how I wrote my code because it's (for me) impossible to re-use my code in relation to the new implementations5 -
So fucking tired of priority shifting. How the hell is anyone supposed to get shit done with 500 fucking meetings and between each one you're told do something different?
This is critical you must do it now! No this!
My response, fuck you I'm going home my head hurts let me know what you'd like me to code and when you've decided add a day for annoying me.2 -
!rant
how long do you guys code per day?
being a student i have now extreme difficulties in time management😐
need some advice...9 -
Do you know what a meat proxy is? It's when you work as a consultant for a company, and the company doesn't give you credentials to deploy, debug, or interact in any way with your code. You then have to work through the sysadmin, while telling him how to go through every single step, every git pull, every line of code to edit. Kill me10
-
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 -
to the guys saying "oop is dumb" / "i don't need oop" / "i've never worked with oop"...
i have some questions:
- which language are you working with
- which problems are you solving
- how big is your code base
- how do you maintain readability of your code?
don't get me wrong, i don't believe that oop is always the answer. i'm just curious which fields these statements are coming from. if they all come from a low level (assembler, C, ..) or functional languages or "scripty" languages (python, JS), or if there are also people working with languages like C++ where oop is pretty much established. and if the latter, i'm curious how people design their code and what problems they solve... tell me your story :D30 -
Heard that this morning.
Someone trying to teach somebody programming: you’ll see, programming is easy. We’ll start slow, I won’t teach how to code in c++, java or linux...
🤦♂️🤦♂️🤦♂️🤦♂️🤦♂️
How do you want to teach him programming if YOU THINK LINUX IS A PROGRAMMING LANGUAGE!!!!!!!!!!3 -
How often do you get bored (eg. on a bus) and just code something completely stupid on your phone?
(pic is the result of some spaggeti I made on a bus today)7 -
Why do big companies hire such loser engineers ??? I mean what the hell man. When you are hiring a fresher to code they should at least know how to apply/write a for loop. I once had a colleague who assigned each array element individually instead of writing a for loop and asked me why I refused to approve his stupid code. What do I reply to this ? It was so dumb, I could not articulate an answer.13
-
I found a bug.... it's in production for a long long time... I wrote it while optimizing some legacy code....
FUCK.... how do you feel when you discover a bug in production created by you?6 -
The feeling when, as a junior dev, you realize the code base is a mess and learning from the senior devs is more accurately learning the preferences of the senior devs. There is no "right" way to do things.
Also, how did anyone get anything at scale with JS before typescript!?2 -
How can you call yourself a code if you live in a city and never experience the outdoors, trees, birds, life. I do it all the time and it gives me so many more ideas and concepts to include in my coding.
#include <outdoors.hpp>6 -
Arrrgggghhh!!
How the fuck do you stay focused on one task?!
Writing code, is like browsing YouTube for me. I begin by searching for a Hibernate tutorial, and end, 3 hours later watching a video of a cat chasing a dog up a water slide.
How do you stay focused on the task of writing the specific class, method, package you set out to achieve when you sat down for that session??4 -
Why on Earth are people letting management tell them how to code? It is not their job to know how to do it. Much less to tell you how to do it.8
-
The one thing they do not say about low-code tools is how much code you have to write when their undocumented garbage doesn't fucking work.
-
are there some graphic designers here? 😎
Do you code?
Did you learn some stuff here on devRant? What did you learn?
What do you design mostly?
How do you deal with programmers who don't obey your design specs because they're lazzy fucks? muhaha 😆
how do you think this profession will evolve in the next 10 years?
and you devs, what do you think of us? what are your experiences with designers? good and bad ones?8 -
Developer vs non developer interview:
Non developer:
How well do you know excel ?
Developer:
How would you write spreadsheet app, what if it was cross platforms mobile application but also desktop app ?
Non developer:
Do you know how to use windows?
Developer:
Do you know kubernetes, distributed systems, lambdas, cloud services and how to deploy to server farm ?
Non developer:
You know how to use printer / fax and coffee machine ?
Developer:
Do you have experience in writing code for embedded devices ?
Non developer:
Do you know powerpoint ?
Developer:
How well do you know javascript / html / css, are you comfortable with writing backend node.js code or electron applications ?
React native and native apps maybe ?5 -
How do you write your "identity" in your code so that others can see that it's you who made it?
Do you do it with a simple "made by" or do you write more?17 -
You know that feeling when the junior programmers do their job quickly, properly, and elegantly just like how you would have done it? :)
Yeeeeah, me neither. What the fuck is this dog shit?? God dammit! Why we have 2MB of CSS?? Do you even you this jQuery plugin?? What do you mean frontend.php and frontend2.php?? Why is this block of code indented all the way to the right?? "Just 1 bug left" OH REAAAAALLLYYYYY?4 -
When people use one character variable names in their code I'm just like:
How do you guys live like this... 😰1 -
> Help novice programmer with his task
> Compile his code
> Start it via Visual Studio
> Visual Studio freezes
> Get Blue Screen
> Lose work of over one week
How do you guys relax when something like this happens besides smashing your keyboard against somebodys head?9 -
If you saw my last rant, you'll know how much I hate Calculus. I decided instead of trying to learn this foreign topic, I'd instead translate it into a language I DO understand: C. The irony is that we use Calculus so we can learn to code easier, but I'm using code to learn Calculus easier. Funny if you ask me.1
-
- Favourite pastime while waiting for your code to compile
- Most heroic/ingenuous bug fix
- Hardest to track down bug
- Worst legacy code you wrote and left behind leaving a job
- Weirdest project
- Last side project you actually finished
- Explain your job like I'm five/the way you do it for non-tech people
- That time your past self (almost) got you in trouble
- Software pet peeves
- Story about how you freaked someone out
- Feature that most certainly was a bug once
- Post something for your favourite previous weekly tag! -
How do we feel about documentation?
Fucking lies, lies and more lies.
If you are not going to keep it accurate don’t even fucking write it down you goddamn morons!
I would rather look at the source code then be led down the garden path by your fucking lies.5 -
Fucking love how one-liner packages are breaking basically the entire JS ecosystem every once in a while. Why the fuck do you add one-liner packages as dependencies in your code?10
-
GOD I FUCKING HATE UNITY AND FUCKING C# SO MUCH
EVERY TIME I TRY TO MAKE IT DO WHAT I FUCKING WANT IT TO IT'S LIKE "mmmmmm nah lmao" LIKE FUCK WHY CAN'T YOU JUST FOLLOW FUCKING 3 LINES OF CODE NO MATTER HOW I PUT THEM OR ORDER THEM YOU BRAINDEAD FUCKING PIECE OF SHIT PROGRAM4 -
I’m convinced that CSS is black magic and those that can visualize what it’s going to do before changing code are witches/warlocks.
Usually my attempts end up in humor as the website ends up /comically/ broken. Elements shifted around to not anywhere near they belong, drop downs appearing from completely nonsensical places...
No idea how you all do it.2 -
Co-worker told me my code isn't up to" standard" and I don't follow "relevant convention" because I don't use a space after declaring a class/function AND inside the parentheses:
Me: class MyClass(something):
Her: class HerClass ( something ):
How do you do this personally?9 -
Devs with young kids: how the hell do you do it?
I am a foster parent for my cousin who is 4 months old and I don’t know how in the fuck to make this work. How do you do it? How do you balance code and kid?
For reference I work full time at a tech support place, I go to school full time, and I’m trying to pivot into software development, which means any free time is spent coding/studying code/building a portfolio. Problem is I don’t have free time because of the baby. How in the hell do people do this.3 -
What I absolutely love to do is refactoring. With strongly typed languages, I often just remove or change something and then follow the compiler errors to finish the refactoring by fixing them.
It‘s not just a matter of renaming something. I will reliably get all the places in code which are affected by the change.
How do you handle that with weakly typed languages like JS? I can only imagine how horrible of an experience refactoring would be.7 -
to whomever it may concern...
if i wanted to do code review keeping in mind how asshole you have been and made it my personal vendetta, i would not review it at all.
i would let you and your shitty code rot in hell. -
make dumbass solution duplicating code because you can't figure out how to do it correctly
nobody corrects you on code review
later somebody on another team has their stuff broken because of you and kindly offers to hopefully fix and not break what you got out of it3 -
Fellow C# programmers, how often do you use #region in your projects and how important do you think it is?
I have found myself using it increasingly. It works great for me and I feel that I can structure my code better.10 -
How do you deal with a boss who doesn't know code at all and he expects you to code for him??? How can I explain to him anything because even a single word like git confuses him... :/3
-
How long do you think code reviews should be? Ours can run from anywhere between 10 minutes to 4 hours4
-
@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 -
Why the hell are senior engineers coming to me me to debug and figure out issues? I don't even own this code..why should I care? Does your brain stop working as soon as you see the stack trace leave the code you have written? You are getting paid more than I do so go figure it out yourself. Why are you asshats even getting paid more than me? How did you even get there if you can't debug? Again why am i getting paid less than these asshats7
-
How do you explain to your client that no, you cannot have a perfect solution, because the algorithm is O(2^n)?
I mean, without requiring him to get a degree in CS. Also without making him think that you can't build efficient code because you're dumb. Or that the hardware is slow.3 -
Co-Dev: The table doesn't have pagination. You said if I use your code it will have search bar and pagination.
Me: Did you initialize datatable? (we are using JQuery DataTables)
CD: No. Do I have to? How can I do it?
I. can't. even.6 -
The best dev advice a dev has given me is to write clean and structured code from the very start of every project. Changed my life in general.
"How you do one thing is how you do everything." -
On a shitty day where your brain doesn't work, have you ever looked at some code you wrote, and actually get intimidated by whatever version of you wrote that? After stumbling around most of the day, read some beautiful code, I admired it, then realized, holy shit, I wrote this?
"Yeah, I don't know who that was, it looks great, how the fuck did I do that, and will I ever be able to do it again"
Like, I don't think I can, definitely not today, write anything even close to that.
bleh.3 -
How would you feel if you can't solve your code? I'm almost a week stuck on a server problem. I applied for frontend dev position, it's okay for me to do this kind of stuff but the fact that I can't solve it for so long it makes me feel down :(5
-
How do you guys deal with reviewing garbage code?
Do you waste a ton of time, trying to understand the code, so you can write constructive feedback?
Today I wasted 4 hours reviewing something like that and I'm still not finished.10 -
I wanted to rant like 10 times today but was on a tight schedule (yes its fucking sunday), so here is everything:
*********
Fuck you, i dont give a shit that you need to present data tomorrow, its weekend, you cant just fucking call me to get things done asap. Im working from the code of a dead guy do you know how fucking hard it is to ask a dead person whats their code do?
*********
I really wish devrant had some kinda longboard/skateboard in the profile pic
*********
Im still not a fucking designer i can make like does-not-make-you-barf tier designs, JUST TELL ME WHAT TO FUCKING CODE JESUS
*********
whys the new rick n morty episode not out yet wtf
*********
Yo i love linux but set the fucking privileges right you dipshit, i cant exrcute my damn code on your crappy ass 2008 xeon server fuck you3 -
I think that the idea of IIFE in JavaScript is a good example of how shitcoding can be built into the core of the language.
How can I make my code clean if the language itself forces me to make such an ugly constructions?
What do you guys think about it?3 -
how do you tell a junior dev on your team there code is shit and please don't push to the main codebase without approval first,
without crushing them and and sounding like an ass cause there a good person just a n00b developer8 -
Person : Today you worked for 18 hours. What did you accomplish?
Me : I did no progress in the code base.
Person : How is that possible? You were on the IDE all the time.
Me : When you have a huge package pulled in, that takes 3 hours to build, for every single change you do,
And the build path is screwed :D2 -
What i thought to be a cool company, turned out to be a shitshow.
Our "Team Lead" when assigning tasks keeps saying things like "it's only..." or "It's just..." or "You only need to change one line [there]..." And that's in regard to a terrible product with a pile of tech debt. So when you actually start to develop/fix things, you end up redoing third of the whole application.
How do you deal with this? How do you tell the "leader" that he should look into what we have in a code before making us all look bad for doing "just this one line change"?2 -
Have you felt so burnout that it feels like you’ve forgotten how to code?
If yes, how you’ve solved?
I feel like I hit rock bottom. Everything takes forever, and I even forgotten how to do a pull while speaking to a junior recently.
Furthermore, I have to do a performance review and I can’t even think of anything worth mentioning. For sure I’ll be in the next layoffs that should happen soon.
Job market is quite depressing right now. All positions that pay what I need to earn are asking for someone with 3 heads, 8 hands and 9 d*cks.
I miss the times where it was possible to be a senior and just code, without any BS, without having to prove that you can make the company earn N millions more.8 -
How to get answers on StackOverflow without getting attacked by ferocious developers:
1) Ask your question before 2012
2) Upload as many details as possible. (Send your entire PC by mail is reccomended)
3) Be as specific as possible. Just repeat your question indefinetly changing the wording a little bit.
4) Don't ask for code examples. If you ask stupid questions it's obvious you are an expert developer and know how to implement stuff... right?
Most importantly respond politely to all of these traditional stackoverflow answers:
"Did you at least google it?"
"You need to be more specific"
"We can't spoon feed you"
"You shouldn't do that thing that way, I personally prefere this way and nobody can change my mind"
"You don't have enough experience to do that thing, don't do it"8 -
Fuck being asked every time if I fix computers, Bitch I code in them!
It's like being asked: do you fix cars? No? But if work using your car, how come you don't know how to fix them?2 -
The overwhelming code smell when you finally got a chance to do a quarterly project-level code review as a team lead.
It's my fault for feeling like they are teaming up against me, and I don't know how to fix it.8 -
Code review with some people is emotionally draining. How do you keep encouraging someone to get better without being a dick when the improvement isn't there?4
-
how many programmers watch anime, cause i have 3 friends who can code and they all watch anime, and if you watch anime do you have some good tips?12
-
You know that stage you reach when you no longer feel like you can't format text without Googling how to do it, and you confidently build well-designed apps with elegant code?
That stage does arrive, eventually? Right?5 -
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
-
@college project submission
Teacher:once done print all your codebase and come with to class
Me:But sir there are better ways of submitting our code.
Teacher :what do you suggest
Me:we can a repo such as bitbucket or github
Teacher:I got no idea of that you send the code using Gmail or just print the code for your grading.
Me:for Christ sake how will I send all my android files through Gmail.4 -
Man it is retarded how VS re-aligns your precompile statements to the BEGINNING OF THE FUCKING LINE EVERY TIME YOU ADD A NEW ONE.
Why does it do that in the first place, it looks ugly when it’s not in-line with the code, fucking stop it. -
I wanted to accomplish new things today.
Instead I'm swimming in:
"This worked before"
- No it never worked that way, you want it to, but it never ever ever has done that thing NOT EVEN CLOSE.
"The thing..."
- Wtf is the god damn 'thing'? How could anyone possibly know what you're talking about? How do you go about life like this?
"How come we can't make it do X?"
- Because the code can't read your god damn mind, that shit isn't in the database, you don't update it and your laundry list of minor fixes for one time or non issues has resulted in you getting coded into a maze of stupid custom code so deep you're NEVER GETTING OUT!!!!
"Is your timezone before or after our timezone?"
- I DON'T FUCKING KNOW, I JUST TOLD YOU MY TIMEZONE, DO YOU EVEN FUCKING KNOW YOUR TIMEZONE?!?!?!? IF YOU CAN'T BE BOTHERED TO LOOK UP YOUR FUCKING TIMEZONE I SURE AS HELL AM NOT!!!2 -
Colleague wrote all his test cases after finishing his code and set expectedOutput to garbage. His tests failed, printing actualOutput. Then he just replaced the garbage expectedOutput with actualOutput. Bingo bango, all tests passed.
"How do you like me now TDD?"1 -
i am an unskilled pussy without strong opinions
sometimes you get conflicting feedback on code reviews from seniors
i'll do whatever you guys want (haven't encountered anything egregious enough that I do have a strong opinion on yet), but y'all may need to sort out how you want me to slice this cat5 -
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
-
I'm running into an issue with code coverage... I ran the analysis and it's penalizing unused getter, setters, equals, hashcode.
And the thing is I need those getters so GSON will serialize the fields...
How do you make coverage always > 80%?
Based on current analysis, I only get 60.15 -
How often do you write code in a raw text editor, without any tools whatsoever (no IDE, no colors, no syntax highlighting,..)? :P
I'm doing that now.12 -
Any other devs with PTSD here? Since the trauma I find it hard to focus on programming. Before the trauma I would code on the job, get home and code personal projects for fun. After the trauma I can barely focus on programming for work.
How do you focus?4 -
What you do: copy and paste existing code from the project
How you explain it to your boss: "conformed to existing code style" -
Managers hiring process in my mind.
Do you know how to:
Code? No
Pick up the phone? No
Repair stuff? No
Doing photocopies? No
Swipe the floor? No
You are hired!1 -
How do you cope with coworkers who are okay with lousy code and don't want to make it better because "how does it matter"?5
-
The feeling that every work day is composed of new challenges that help you to grow and learn more. Also, how cool is it when your code works as intended and with no ramifications on the first try? Last but not least how many people can say that what they do at work is their true passion?
-
How do you actually make an AI (without if statements)?
I don't need the code or anything. Just an overall idea of how AI is taught something or how it really thinks.
Any references will be appreciated9 -
That moment where you find how to do it in the docs
But you had passed that section 3-4 6 times
But you had already formulated your own fix
And you have to redo that code block -
How do you do to get going quickly again after leaving code unfinished? To-do comments? Separate notes? Something else?6
-
I've had this idea for some time now. How about a website that gathers some of the most well written open-source code and allows you to easily read it for educational purposes? Everyone says that reading source code can be a great learning tool but directly jumping into github is not very friendly to newcomers. I saw what underscore.js has done with the annotated code link and I think it's great. What do you think?6
-
For the new/aspiring developers:
1. If you are still looking to learn more, but you don't know where to go, start brainstorming. Make a list of projects you could make and sort them by difficulty. Put the ones you could do now at the top of the list, and the ones you aren't sure how to do yet, at the bottom of the list. As you go through them, if you want to do something but aren't sure how, just hop onto an irc chat and everyone will be glad to help. As you go through the projects, your logic and program design skills should improve, as well as your knowledge of programming.
2. Put comments in your code. Seriously. If you are working on a project and suddenly stop working on it for a week or more, you will go back to look at that code and be extremely confused. If you are making something open source, its even more important. If people can understand the code, they are more likely to contribute to it.
3. Try not to focus on code for too long. The longer you work, the more tired your brain gets. Eventually you get tired and make really stupid decisions in your code.
4. Don't code while tired (look at #3)
5. If you are writing code as an assignment, make sure to rename all variables to proper names before submitting it. The instructor will likely not be pleased to see variable names with the f-bomb in them. -
Do you guys support today's youth learning how to code? If so, why? If not, why not?
I started coding when I was 11.13 -
Have you ever tried to share your very simple project on FB groups which you just learned how to build? I got a lot of cheerful remarks and 2 to 3 haters. I don't know why they're trying to hate on but I'm just sharing my work and code. How do u not get a bad day and continue to improve yourself with this type of situation?3
-
That moment when..
in college lab work
you are the only person who knows how to do it and
lab assistant is behind you and..
he is watching your code and..
he gives correction to you..!! -
When and how do you improve documentation?
I dont mean "added new/refactored code, gotta document it" but active improvement.
Which feeback channels do you have for your docs?3 -
just wondering: how much of your programming / development is based on your memory and how much do you use Google just for a reminder and how much do you ude Google for the entire code?2
-
Let me create the Drupal train.
Fuck Drupal, its verbose shit, how it's supposed to inherit from Symfony, how it's not (at all), how it needs to create a WHOLE FUCKING TABLE FOR EVERY SINGLE TEXT INPUT, how it's required to write TWO LONG ASS PHP lines of code to display ONE FUCKING IMAGE.
Fuck these millions of hooks that allows you to do "incredible stuff" that you could normally do without Drupal.
Fuck how templates are generated, you wouldn't believe how bad it is, and how web integrators are loosing their mind to try to correctly display datas that are contained
Finally, the people who wants some "modern stuff" and make the tests even harder to write and the site uglier.
I just can't believe that recruiters still want to hire people for some Drupal shit.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 -
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? -
So, I got a task to modify a component from another team in another country.
Me: Ask the team for the repo link and explained what I was going to do.
idiot: You don't have access to our repo, I can do the fix next week and upload the code to confluence....
What the actual fuck. How can you even go there?!? -
How many of you guys actually do the eight finger touch typing? Is it common among younger devs? And for those who don't, how fast do you consider yourself while coding (like actual mechanical typing of code)?16
-
I have a sense lots of you don’t know that you can kind of create 3d shape using only html and css
Here is a cube and the code
https://txstc55.github.io/But-how-d...6 -
Do you plan the application, on which you will be working, before you actually begin to write code?
I do web development and usually begin with something rough or look at designs of other developers. Like an dashboard example, when I see an image on google search that I like, I try to make something simmilar and when I have the surface I can add the functionality and improve the design.
Sometimes I have to make changes in half of the development because at the beginning there was no assumption that there will be a need for a certain functionality or I change a implemented feature to work properly, so I have to refactor something I made as a ground on which other parts will rely, although if I had planed the application in detail, maybe it wouldn't come to such refactoring.
In school we did prototypes, used to draw flowcharts and hold on a precedence diagrams that we made, but now at work when I receive an projekt I just begin to code :-D maybe this should change, how do you do it? If you plan your project, how do you do it?9 -
Do you know the feeling when you create a project, work on it for a few months, realize that it could be done better so you rethink and rewrite it, then after half a year you think that it's not good enough once again so you recreate it from scratch once more, then you get bored and leave the project for like 2 years and when you want to come back you see how bad the code is so you do one more rewrite? Well I do.
"Coming soon" since 2013! Starts to look good tho.4 -
Refactoring code that I've wrote like a year ago, made me realise how much I've grown in the past year, do you guys ever go back to old code that you've wrote?3
-
I can't get over how absurd this is:
a = "123456"
a = int(a)
Is it just me or do you have to let go of everything you hold dear, embrace Satan, and sell your soul to be able to code in Python.10 -
Question for devs who work in large multi-team environments:
A) What is your code review process like? Does a senior review it once and then it's off to QA or do you have "levels" of approval?
B) If you're launching a feature that depends on another team how are you coordinating it? Do you just talk over a ticket and then hit merge and deploy at the same time or like what's your process like?
C) What CI/CD tool do you use? Also what code hosting platform do you use? Github/GItlab/etc.
D) Are you currently happy with the CI tool you're using? If not what are some common issues you're facing?5 -
Question for game developers 🙄
I wanted to try game development a few years back, started watching unity3D tuts, but I realized quickly that I can't actually do anything, because I don't have the skills to design animation and draw ui, and it was stupid to buy components online before I knew what I'm doing.. so I left it. Was I wrong? How did you start? Is it possible to make a game on your own, or do you need a team with members who each specialize in its own area (code, design, animation, music, etc.) And if team is needed, then how do you even start learning? Thanx -
1) Have a great idea
2) Ask a friend who knows how to code to do all the work
3) Get rejected
4) Repeat until you find a sucker
5) Profit 💰 💰 -
Interned at a company where i was developing desktop applications and also taking care of user support (general user support, nothing to do with the software i was developing).
Do you know how frustrating it is to get off your desk and leave an unfinished line of code just to go and find out that the 'my computer froze' issue was simply an improperly plugged in mouse. 😠😠
Fart on you user2 -
#AskingForSuggestions
Suppose, you were given a project source code of an Android app, a pretty BIG sized app. You don't know anything about the code unless you read line by line. Now you were given a deadline to fix some bugs, but you don't know where to start or where to put breakpoints to debug. In that case, how would you do it? How would you debug the code?
Thanks13 -
How are you supposed to read and understand 1000s of lines of uncommented, undocumented apex code and then make changes to it and do it all in time? Salesforce doesn't even provide a free debugger.
-
TL;DR - Coding standards are a shit practice IMO.
What we don't talk about enough among software engineers, is the artistic aspect of the craft of writing code.
For example, consider your client saying this to you.
"Build me a web app where a user will login. They will have a wallet to purchase subscriptions of 3 products of different prices."
Give these two statements to say, 10 devs and see how each of them will come up with their own vision of the problem and how they would implement it in their own ways.
So now you are working on a big team with say 30 people and you have a big project to work on. Different members of the team bring different styles of code to you to review and if, the Team Leader is as incompetent as mine is, they would find it troubling to understand the pull requests.
So what do you do in these scenarios? Implement Coding standards !!! They take away the artistic vision of the devs and tries to force them to follow rules like sheep.
Also the company doesn't give two shits about the code standards cuz, as long as they have working code that makes them money, they wouldn't care how the code is written.
Thoughts ?8 -
The industry is sometimes sad and hilarious at the same time. There was a townhall at my workplace and our country head was talking about all the new tech we were working on. Now he is a good business person but I doubt him as a tech guy. And then he went on ranting about AI and ML and how they are to going change the software landscape and how developer as a profession will become obsolete. He said the technology will reach up to a point where we no longer need to write code to build software. Obviously, I couldn't digest it and confronted him the moment after the event.
Me: so why do you think writing code will become outdated?
Him: it's just that we will be able to create a technology through which we can simply command a machine to build a software.
Me: oh. But someone needs to tell the machine how to do it right?
Him: yes. We have to train the machine to act on these commands.
Me: and do you know how you "train" these machines?
Him: umm...
Me: by writing code.2 -
Question for WSL users.
What's your workflow?
How do you edit the code from your IDE on Windows while the application is running in Linux?14 -
What IDE do you guys use?
I use notepad++, Codeanywhere and Visual Studio 2017 Pro.
I'm looking for decent code completion with internal referencing to keep track of methods and variable.
Would you recommend staying with VS or how about intelliJ?
Or something new?6 -
How do you keep up with this? How to stay motivated?
Management is getting worse. All they want you to do is reduce customer issues, reduce P0 and P1. Numbers aren’t looking good.
But with that also do that GIGANTIC piece of shit epic we assigned you this quarter.
Don’t forget to help that DUMBASS contractor to do this task he was supposed to learn the last 10 times he did it. By help we handholding.
Also all the manager can really contribute is by saying reduce the numbers because that’s what his manager says.
Also why aren’t the code reviews done?
Also attend a 9AM sync up call as well as a 10PM sync up call in the same day.
Gaaaaaaahhhhhhh5 -
How do you define a good codebase?
From my experience, a good codebase is a codebase that is strongly opinionated.
More rules = Better code
Honestly, i am sick of maintaining codebases written by sickos who think they are hot shit for doing what nobody else does6 -
I guess it's my third or the fourth company that am currently changing.
I have the will to improve and write better code quality level up. But sometimes i guess i have the lack to find the how to do these stuff and how to practice and who is going to tell me that i have to change these lines of code so you can improve am just in a big mess and i feel so bad about it.
Now i had just received a new warning at my current company that i either improve or i get fired. So i have been searching over google and internet how to improve as well i had just created a new project for the will to practice and become better.
Can someone tell me what i should do?
How to fix everything and let my colleagues gain my trust in my code commits ?
Because literally i feel so bad about everything and you can't imagine how miserable i feel.3 -
how can this fucktard make so many errors in his fucking 50 lines of code.
i need a motherfucking punching bag or im getting some health issues maintaining this code any longer. DO REVIEWS GUYS!!!! IM TELLLING YOU!!!! -
Did it ever happen to you that you were needed to map a mental and overly complex for no reason db schema to a simple json, and you hate yourself more every key you press because rewriting it more efficiently and simply is never an option?
How do you cope with managers and legacy code?
If it works does not necessarily mean that we should keep it, jesus christ.2 -
Context:
At work, I code primarily with Java.
I'm a big believer in the mantra, "if it ain't broke, don't fix it", but I find myself conflicted with that when I can see how much of an improvement it would be to use a different language for some of the simple pieces in our integration.
Question:
When should one start considering other languages for your team? And if you choose other options, how do you do it in such a way where you don't end up building a chimera of an integration?3 -
And now few questions for your belowed frontenders.
1. If you have complete freedom in making of a user interface, how do you settle on a single idea instead of constantly changing your code?
2. How do i make a interface that everybody will like? Are there any free recoruces avaliable on internet to educate me about it?3 -
What do you think about different English variants in code/docs ?
How you would name variable in UK company?
color ?
colour ?
Why ?14 -
Devs out there.. what is your celebration / how do you celebrate when your task / code works as you expected .9
-
Me: *updates ram to 16 gigs
Me: How do you feel about that chrome?
Chrome: Hold my beer ...
Also, anyone face any issues with laggy vs code and hyper?28 -
When you teach people how to code as much as I do, having to explain why things like this are so wrong over and over again starts to make you die inside.7
-
Do you ever take a step back and think about how we look to non technical people? Sometimes I think they look at us like code monkeys and others like rockstars.3
-
Testing requirements, some of these are pretty specific such as 'don't do X before you compute Y'... OK, check that off
Now we have some independent analyst saying how can you prove 'X' isn't done... "Look at the source code we've provided"
"OK, but where in the source should I look [for something which isn't there]?" -
How often do you come across "similar problems" that you recall solving before so you then remember or search the most likely projects and copy the code?2
-
What do you do when you give someone a feature ticket and they come back and the code just isn't what you expected?
Like to you how they did it, assuming they actually finished, is very hacky and not well designed/thought out?
And ur going to need to cleanup a lot of their code? And explaining to them how to do it is just not worth the time and will take longer then just doing it urself?
They just don't seem very bright or able to "get it".
I guess how do you go from a developer to a manager? And deal with devs they don't seem to be writing code they're up to your standards/expectations?9 -
Maybe I shouldn't code today... or get more sleep.
Every single bug I had today was due to referencing the wrong variables... and not including 'this.'
How do you guard against creating variables with the same names in method and class scope?2 -
How long does it take to start writing codes without having to do “too much” looking up of some context?
I’m quite at the intermediate level and I fear I do a lot of cramming(and pouring) than actual coding.
I want to code all on my own, or at least tons of lines before having to check something up.
How do you guys do it? How do I become ‘pro’?6 -
That feeling when you are writing code and can't figure out anyway to make it better than O(n^2) and then suddenly you figure out how to do it waaaay better in O(1) :')
-
Hey, to all programmers here :) ...
What do you do when you don't have to code for a day :o...How will you spend this holiday ^_^?8 -
stupid teacher sucked. i passed the class but i felt like i didnt learn anything from him.. how do you guys learn a new lenguage? when making a program do you write it all in paper or just code away and figure it out?6
-
Alright so I’ve already made a few posts about this but this time I kinda just want a general discussion and these are some questions I have.
So when you look at a open source project or just any project that you haven’t messed with, how do you start,
How do you handle messy code,
How do you know how to navigate the project or get around the confusion on the layout of the file,
How do you make sense of how/why the project is organized the way it is,
There have been times where I’ve tried and used one of the projects but it doesn’t work when it is supposed to already be working how do you handle those moments when there’s no error messages,
and (if you’re me) how to build/run the project
These are some of the major problems I run into when I try to start and they intimidate me heavily when I start to try to contribute to a project. I know I can just adjust the documentation or spell check which I will, but I also want to fix some bugs or add sumn. But yeah these are just things that I have problems with because I’ve only really ever worked with my code and projects so this is all still new to me and I’d like to hear your thoughts20 -
How do you deal with a peer who wants to write a bad code just because he doesn't understand the better way to write it or he just doesn't want to?
Suppose you're not in a company, so there's none above you two, like you're freelancers or in a uni team for a project4 -
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 -
Writing the code until the application finishes has never been a problem by here the OMG report how do you do ?
-
At university: Error 404
But as I say: you can learn from everything, from good how to do the things, from bad how to not do the things.
One example: don't copy code directly from a PowerPoint presentation, it will change the " to other symbol and make you look like a fool when the compiler throws errors and you don't figure it out why -
Anyone ever?
Do that thing where you just obsess over how your code looks. Like "This fookin console app would look epic with boiler plates and some finesse.
Then next thing you know the thing you were trying to learn / do get waysided and you need to shoehorn it into the rest of your day / night?
In fairness I am just learning c# with the intention of following it up with unity for game development. So this might. Be a beginner thing.2 -
When software matures and becomes bigger it feels like even a small change takes a day to implement. How do you remain innovative with a large code base?1
-
How many lines of code should one be looking at at any given moment? Of course you could zoom, but how many lines do you guys think is ideal?
Currently I have 33 when in full screen.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
-
I'm trying. I'm really trying to understand you Dagger 2. But every time I read articles, look at source code and just try to understand how your magic works, I end up copy pasting the sample code. And then I don't know what I even did ffs.
Maybe it's so damn hard for me because I don't understand Dependency injection? But I think I do... What can I do to understand you? Please tell me?
Especially when my use case requires nested fragments and isn't just that typical inject fragment to activity sample...
And now I have to fill in all of the injected fields in my integration tests by hand because I can't figure out how to fucking make you piece of shit do the motherflipping injection!! Fuck.
I need painkillers... My head starts hurting1 -
I discovered you could edit the Visual Basic code in MS Access. I would read the code that was in there and figure out how i could extend it to do what i want. first code i ever wrote was a switch statement to control whether a set of buttons were enabled based on a dropdown value.
-
Just realized how much saxophone music helps me write code. Would recommend.
PS: what do you listen to when working?8 -
Does anyone know how to protect or copyright an idea and corresponding code you have written? Is it possible to protect code somehow or do you have to go full out patent?1
-
[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 -
That moment when you in Computer Security Management and the Professor shows you the different between
Alt+ Tab and Windows + Tab.
Professor: did you guys know about these shortcuts?
Me: of course how else do I code, write a post and check one on Stack Overflow, Google help on a code, check my work email for the boss response, and see how the codes runs on a browser? -
devRanters!
Do any of you find that you can type the solution faster than GitHub Copilot recommends?
That's how you know you're senior 😏
Also, on a serious note, does it only support JavaScript / TypeScript? Didn't really take time to investigate.
I thought there was also a feature you could tell it what to code and it would try to write a solution. Haven't really seen how to do that yet.7 -
*looks drowsy* Ugh my head..
You know what, guys? If you can freshly and directly remember how to do this:
- calculate the time complexity for each type of loop and code structure
- knowing how to write the following regex:
"A 15-digit number starting with a possibility of a group of 1-2 digit numbers, segregated into three 5-digit numbers tuples with three different separator characters, evaluated ahead"
- mentally work out how to reverse an array's indexes (swapping algorithm) without writing anything down
- know how to optimize a binary search in your head
then kudos to you. lmao
I'm rusty. It took me a while..7 -
How much time do you take usually to code a backend with simple crud operations and notification system?
It's taking me some time, but I feel I'm going too slow...7 -
I 'm auditing the code of a client application and :
How the fuck do you create an external dependency (private npm) with it doesn't work outside of your project?!?!?!?
If it needs your project to work IT CAN'T BE AN EXTERNAL DEPENDENCY!!!! -
For coding advice
Don't stop thinking
Keep asking how and why a thing works
Learn the logic
Pick any one language
Write some code, do mistake, fix, learn and repeat
Do keep a balance of coding and real life ,playing games are necessary
Do exercise as well....
Maybe some more things we can , but most important is
Do what you love not what others love.
It's your life live and code your way... -
I've been using Bear which is a markdown editor with iOS and mac support. While markdown is good, I've found myself needing to use LateX for equations in my notes (doing math / theory stuff). I switched to a VS Code extension which is markdown + MathJAX. How do you guys take notes?2
-
I probably got an internship for this summer and I'm really really excited for it.
However, I've juste finished my first year of CS and it's my first internship and it makes me really scared that I'll be unable to do anything. Like sure I know OOP and how to code, but what will I do in a business?
Do you have any tips or so? It would help me a lot, I really want to do it well.3 -
Use simple working code of an if statement and reject bad data with an error.
Get the same result but through properly using springs nested path errors. But it doesn't work so now you need to spend hours in debug hell through spring framework code for something that should be easy, is blocking another team, because I have no idea how to do my fucking job.1 -
Happens alot with Android devs 😝😝.
It does't matters how much you try to make your code run, the moment you sleep some code fairy comes to do some code magic.1 -
So i was told to make a code to iliterate through some categories from web... And then boss added subcetagories... And sub subcategories... And after a while a sub sub sub sub categories... Code was piling up and boss says "dont worry, you can do it"... So i ended up with a loop within a loop within a loop within a loop... About half a milion combinations... HOW DID YOU BECAME A BOSS WITHOUT LEARNING TO DO MATH BITCH?!2
-
When working on an old system that’s a complete mess how do you handle adding new code in terms of effort?
I normally take pride in my work but if the system is such a mess I sometimes find it hard to get motivated to do it. I often find it makes me feel sleepy? Even new code that is tweaked is nowhere near as well written as if it were a new system.
Anyone else get that?3 -
Tried out the node.js code demo in this book.
🤦♂️
Terrible format, use tab for indentation, very very long function, redundant code (eg: new Buffer vulnerability)...
The major issue is none of the total.js nosql code works. Eg:
db.clear()
db.insert({...data})
Without any asynchronous call, how do you expect this to work?!
Just fixed the code and updated npm modules for demos in Chapter 3 btw... Took way longer than expected.3 -
If you have to "force" code to do your bidding, your idea on how this should work might not be the best one. Sit back and reconsider.
-
need to deviler a custom made website on a custom cms tomorrow, can't bring myself up to code... Any of you get these coding blocks? how do you guys overcome it?1
-
Do you 'draft' your code?
I'm just really curious, as I'm not a developer; but I've been doing dev work for the last 8 months...
I just realised today, that 'drafting' my code on paper makes my workflow 10^10 times better and intuitive.
Like, just writing a rough code block with what function I'm going to use and how I'm going to form an equation, etc...
Or do you guys just jump straight ahead and start pushing out code?2 -
How does your team approach code reviews? What sort of processes/tools do you make use of?
Currently my team uses TFS (which I'm not a huge fan of). I'm trying to figure out how to track issues (requests) and the code review process.8 -
Honestly, am I the same guy who wrote this code 4 years ago? How comes I never commented it! Shit man. What do you do with code that works just fine but you don't know how it works..???2
-
Don't know how to frame this question.
Do you think a perfect code to a solution is possible?
PS: A production level code.6 -
Hey guys how do you feel if someone interviews you for a developer job and then offers you a sales/marketing job based on your past work experience? I was very disappointed when he told me that btw, i told him i dont like that field, i love to code.2
-
As experienced developers, how do you do time estimation in spite of things being stuck and new, unexpected, stuff coming at you with no extra time? This has happened to me and it's depressing and frustrating to have to ask for an extension again and again. Plus, the code and tests for it get boring.7
-
I have a Question ✋
Scenario : We are the offshore team. Asked to add a feature similar to other product. I added the feature in product, created necessary database to store the data. Later Manager started barking how my code isnt similar to the one he asked for me to do. I explained to him, my way is better for, database is optimized and is simpler. Later had to redo his way.
Question : How often do you come to situation like this? How would you have handled it? 🤔
Extra : Share if you have similar story.3 -
if your documentation tells me to clone a repository then spends 20 chapters on telling me the rules of Conway's game of life and how to code in Conway's game of life when you are a setup tool you should feel bad
I don't want to clone anything, how do I set it up
I already know Conway's game of life. that's not what you're here for. -
Agirl wanted me to explain to her how to do a thing that we learned in IT. Basicly a code organising plan. And she said that the only thing she knows is that" they have start abd end" and i said" no if you have while(true)."2
-
My task is to create a form for posting customer details to the server.
I've spent almost 2 days on the UI.
I mean, it doesn't look like I've been doing much if you consider the UI only, but I've been testing many scenarios of what works best, but unfortunately, the boss only cares about the code, and not how many concepts that have been tested.
So what the form basically does is if you click on the edit button, the inputs field will occur, and if you click on it again it will remove the lines around the input field for better presentation of the data.
How do you show to someone the work you've done, do you write notes or show them the code?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 -
This begs the question: how do you define being good at programming? How can you tell if you are actually good or just think you are?
Having asked that, I think I’m getting there... by reading other people’s code, by listening to feedback from better devs than I am, by asking questions and discussing matters I may not fully comprehend, by reading books and articles, by trial and error and by constantly seeking new concepts, languages and other relevant matters to learn. That’s how one becomes better - when one is good, is another story altogether. -
when you type in a bunch of jarble to fix your lack of code experience and it ends up actually working some how. (・・;)
Just one of those, I know what makes up a car mostly, but do I really know how to assemble it? hahaha -
How come when implementing merge sort the mid doesn't need to deal with odd/even division?
I know int will always go down if there is decimal but how will it cover the whole array?
Full code:
https://gist.github.com/allanx2000/...
I guess in general, array indexing that involves dynamic cutoffs always confuse me.
How do you think about them without having to try things out on paper?7 -
When it comes to writing comments in your code, I do quite a lot of it. Even for parts where you just need to read the code to understand what it does. However I do write very clean comments, not even snarky comments where I know someone has done something completely stupid. In my work, I generally keep it very clean. I wonder how many people write profanity, or use weird naming for functions or variables?
https://thenextweb.com/dd/2018/...3 -
Do you think this product would be cool to use for macros in ex. PyCharm or Visual Studio Code? How useful do you think it would be? https://amazon.co.uk/Leslaur-Design...3
-
Supposed to code a new trading formula given to me by my boss into the system I'm developing, I understand the formula and know how to code it out, but the thing is
I'm so lazy to code or do anything since the last 6 hours.
What do you guys usually do to break this laziness issue?1 -
The moment when you are desperate enough to integrate forceUpdate into production code.
Also I like how apollo-client acts like enterprise grade when they do all the heavy crap in the UI thread.3 -
I suck at front. I lack some front-related stuff in my project and I seriously struggle with all that css.
I'd love if I could find someone to do those small pieces for me, but I really don't feel like paying someone a whole month salary for a two days job.
How can I find devs who could write parts of the code I lack skills to write myself? Do freelancers take on tasks that small? How do I know they won't be stalling the task just to get more €s out of me?
How can I find someone to help me out? How do you guys do that?2 -
@highlight
disabled: Set<string> = new Set();
@highlight
<input
class="form-control"
id="pushBack"
type="text"
[attr.disabled]="disabled.has('pushBack') ? ' ' : null"
[(ngModel)]="local.pushBack"
/>
---
Do you know what's wrong with this code? If you know and you are a junior how would you tell this to your super boss without hurting his feelings?7 -
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.
-
Stupid question but how exactly do you use javascript in an html page? What editor can you use to see a live preview as you code? Trying to make a multi-step secure form.11
-
How do you tell someone their code sucks?? Like why dont you indent?? What's wrong with using useful class names? At least chuck a comment in there...
-
Guys how to i make a python spammer for this bad game the dev left?
i already know the spamming part which requires pyautogui and time but do i actually make the pyautogui open the tabs and typewrite? correct?
(not telling you how to code it just wanted to know the operation) -
Alright fuck this, I'm sick of Sequelize's bullshit. I'm thinking of moving this over to Prisma2. If anyone has done it before, how painful do you think moving 90ish table related Typescript code will be?1
-
Jordan Castillo: Happy birthday sire.
Eddie: Thank you Maestro.
Jordan Castillo: 😊 How do you feel now that your life's code just ran past an age++?
*10 minutes later.
Jordan Castillo: Oh what? I didn't see your reply.
Jordan Castillo: You maybe forgot to echo it out.
Eddie: Oh well Jordan, I feel like an iteration I guess.2 -
- "what does that function do?"
- "I don't know"
- "how you don't know !? you are maintaining the project."
- "how do I know what 'ConvertFromDataTableToOther' will do !! it has two inner loops that exchange some columns!"
When CEO is doing code review .. -
i hate it when Im coding and my friends joke around and call me a hacker or nerd when they couldn't even print anything if i told them how to do it plus its not hacking if you believe its hacking when im typing code on python or c# online then you need to go back to school6
-
Obviously worst documentation is no documentation at all when having to interface with something proprietary (source code is kind of documentation). When you have to dump exported symbols and guess what could it do and how to call it. Luckily too old (and hopefully wise) for it now, sticking to opensource.
-
As an art guy trying to learn how to code , I’m blown away on how antiquated the entire process is. Not knowing anything about code I can expertly say that there should be a better way to program. It hasn’t changed much since I used BASIC. Is this the best you can do? Typing line after line of rubbish lingo that only code bros know. Why not invent a smart version of scratch? What a waste.
-
I am new to this so bare with me ,
how do you create intents for dialogue flow using c# so that you can use them in your agent .
I scavaged the internet for the solution for this but i only found the official documentation by google i need help or a tutorial to understand how do i create intents ,entities in c# code -
Developers across the glob! How do you keep yourself away from eye itchiness where basically you have got to code hard and stare at screen almost every day of week.11
-
Is there a testing library of source code snippets for testing babel plugins?
Ideally a pack of like all possible javascript snippets? Otherwise how do you know if your plugin may ever fail or cause bad code?4