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 - "what comments"
-
We had recently a thread asking about our internet speeds, this seems relevant to most of what I've read in the comments so far.2
-
🔥 🔥 Release day! 🔥 🔥
devRantron has reached v1.0.0 today! Here is what you can do with devRantron:
1. @mention someone when posting comments
2. Filters rants with keywords
3. Add emoji when posting rants and comments
4. Get notifications
5. Browse rants, collabs and stories
6. Browser user profiles
7. Post rants
8. Create custom columns of your own choice
Thank you so much to all the contributors, especially @Dacexi for designing the app and @sirwindfield for setting up our build infrastructure.
We plan to add more features in future. For example, searching rants, edit/delete rants or comments and most importantly, themes. Right now it has a dark theme by default.
Thank you to the users to opened issues on GitHub during development. Your feedback has helped a lot.
Whenever you find a bug or want a new feature, please open a new issue on GitHub and we will look into it.
Contributors are always welcome. I am still working on writing a article about the structure of the application, I will let you guys know when that is done. It will be easier for you to contribute when you have a bigger picture.
Relevant collab: https://devrant.io/collabs/420025/46 -
Had a PR blocked yesterday. Oh god, have I introduced a memory leak? Have I not added unit tests? Is there a bug? What horrible thing have I unknowingly done?
... added comments to some code.
Yep apparently “our code needs to be readable without comments, please remove them”.
Time to move on, no signs of intelligent life here.39 -
I just spent 20m debugging.
Basically bootstrap nav wasn't working. Couldn't understand why not.
Figured out its a an issue with the JS interfering so I remove the script reference from my HTML. Problem solved.
Okay,cool. Now let's add that file back in and figure out what caused the issue.
Hm. This line looks like it might be it *comments it out*...odd. Problem still happens.
*proceed to comment out and test every function to see what could be causing this issue*. Still happens. Fuck it. *comments the entire file out*
what the fucking fuck. I remove the script reference the problem is gone. I remove all code from the script - problem persists.
...wait...are you fucking kidding me. I OPENED THE WRONG JS FILE WITH THE SAME NAME BUT IN A DIFFERNT DIRECTORY.6 -
First day at new web dev job:
Me: what IDE do you guys use?
Coworker: Notepad/notepad++
M: Okay... Any version control?
C: Oh we don't need it. We just update the server pages.
*Boss walks in*
Boss: Heres the project for you to do just need you to rebrand this web app we made for client A for client B just need to change some scripts. Should only take afew hours.
I take a look. No comments. Not formatted. Missing braces and brackets. Semicolons at odd places and missing at others. 7802 lines of code...16 -
I actually had the strangest nightmare last night.
So I was working on a program for someone and lots of things went wrong. First of all, the semicolon button wasn't working, so I panicked and grabbed another keyboard but there was no semicolon button.
I had to copy and paste the semicolon instead. Next, there was a bug, and I couldn't figure out what caused it, so I went on stack overflow... Guess what? Stack overflow was shutdown. Unable to fix the error, I somehow caused more.
I decided to take a break and leave, but upon my return, I forgot what the program did. It was as if someone else had written it. I was simply ignorant enough to forget the comments.
After a hellish day of working on it, the person who wanted me to create the program decided to test it out. They tested it on an old version of IE.
Strangest nightmare I had this week.9 -
Java is to JavaScript
: what Car is to Carpet
: what Swift is to Suzuki Swift
: what Perl is to a Pearl
: what Ruby is to a Ruby Gemstone
: what Go is to Go Home
: what Shell is to Sea Shell
: what Bash is to Big Bash
: what Alice is to Alice in wonderland
: what Rust is to Rusty Theron
: what Awk is to your Awkward cousin
: what Dart is to Darts
: what Julia is to Julia Roberts
: what Korn is to Corn
: what Maple is to Syrup
: what Caml is to a Camel
: what CHILL is to Netflix
: what Crack is to Crack
: what Curl is to Curls
: what Hugo is to Boss
To be continued..
Have a joke? Say it in comments
Criteria : programming language on left , analog on right15 -
What if we developerized our proverbs?
1. A bad developer blames his tools.
2. Code speaks louder than comments.
3. Birds of a text editor flock together.51 -
!!fml
"Root, go fix this bug. It'll take you two days."
The "bug" is a feature that was never implemented for one particular payment type.
The code in question is two years old, full of typos, smells, junior-isms, and is convoluted AF. The feature's commit touched 190 files and implemented many other features as well. Thus far, I have been unable to narrow down where this particular feature's code lives for the other payment types, nor which code or payment paths lead to it. Burned out, I can barely focus on the screen, let alone follow its many twisting and dynamically-inferred paths. I hint as to the ticket's scavenger hunt nature during standup.
"But I wrote comments on the ticket telling you exactly where to look to fix it," Thundercunt admonishes in front of the team.
"Sure, you did," Root replies. "You reworded what the original dev had said in the comments 20 minutes prior, and agreed with him. His comments were helpful, but it doesn't tell me how any of it works," she continues.
TC scoffs and closes the meeting.
Root stares blankly, seeing neither code nor screen, questions her life decisions, and recalls the previous tickets she has worked on: nearly every one of them busywork, fixing other people's bugs. Bugs she never could have gotten away with if she tried.
"Why do I put up with this?" She asks. "They don't care, and it's killing me."
But the bills remain, and so must she.
"Fuck my life" she finally decides.20 -
Manager: Hey how come you left so many comments on my PR?
Dev: Well you’ve just recently learned how to code so there’s going to be a lot of things to learn beyond what you’ve picked up in your online coding tutorials. Don’t worry it’s only minor things like you put everything all in one function, left outdated comments in the code, have if statements 4 levels deep, have a console.log after every line of code some of which log .env variables, skipped error handling, cast to “any” a bunch instead of using more specific types, didn’t write any tests and some unrelated tests are now failing due to a circular dependancy.
Manager: THAT IS SO DISRESPECTFUL!!APPROVE MY PR IMMEDIATELY. IT WASN’T EVEN EASY FOR ME TO CREATE THE PR, NOW I HAVE TO MAKE AN UPDATE!? YOU’RE THE DEV, YOU SHOULD FIX IT NOT ME!! NEVER COMMENT ON ANY OF MY PRS AGAIN.10 -
Sometimes it just feels really good to see recruiters getting burned. A stupid one recently posted:
"When you find the candidate that has 15 years of experience in AWS, has a PhD in Artificial Intelligence, speaks 6 languages and is under budget... "
The comments immediately mentioned that AWS was formed 12 years ago.
Haha, what a stupid fuck!5 -
Finish my Raspberry Pi Zero Cluster... complete with kubernetes, etc.
... I still don't know what I'm going to run on this. suggestions in the comments welcome.27 -
What a day and what an achievement!!!
Today ladies and gentlemen I broke my record for number of passive aggressive “as per last email” comments, in a single email.
I now stand at 11
Today is a great day and I’d like to thank everyone not reading my emails who got me to this point. You guys are the real record holders!5 -
Got basically nothing done yesterday because I was absolutely exhausted the entire day. Thanks, doxxing thread. But I couldn’t sleep anyway so whatever.
Told everyone at home that I wanted a really productive day tomorrow (today) because of it.
Guess what happened?
Endless fucking distractions.
Because of course.
• Cooking since apparently it’s my job.
• Extended computer repair and maintenance, since that’s apparently my job even when it’s not my computer.
• Conversations.
• Children following me.
• People paraphrasing politics.
• People summarizing stupid fail videos.
• People relating stupid prank videos.
• More conversations.
• Endless random nonsense comments from children.
• Endless noises from children’s toys, tablets, playing, etc.
• Children following me when I leave.
• Taking half an hour to order food instead of five minutes.
• Cleaning since nobody else ever does.
• Picking up toys since nobody else will and I’M FUCKING TIRED OF STEPPING ON AND TRIPPING OVER THEM.
• More fucking food prep.
• Endless random nonsense comments from children.
• More conversations.
Is it any wonder I’m so fucking pissed off every workday?
I can’t wait to move so I can have a fucking office with a fucking door and a fucking lock. And you know what? I’m going to splurge and install some fucking soundproofing, too.
WHY IS IT SO FUCKING HARD TO JUST LEAVE ME THE FUCK ALONE!? I’M PAYING FOR YOUR FUCKING EVERYTHING. FUCK THE FUCK OFF!19 -
While implementing a new feature I got “error in function A”.
I spent one day trying to figure out what was wrong.
At the end I found that someone copy/paste “function A” debug comments in “function B”.
I almost went to jail.4 -
--- Linux wants some hugs, and everyone gives a hug about it! ---
After the CoC controversy revolving around the Linux Kernel project, a change introduced by the CoC is being put into practice:
Jarkko Sakkinen, from Intel, started replacing words comments containing "fuck" with their "hug" variant. This means comments such as
/* master list of VME vectors -- don't fuck with this */
might look a bit different in the future:
/* master list of VME vectors -- don't hug with this */
People that oppose this change criticize that the comments will make much less sense to people that aren't fluent in English yet. They also do not like the redundant censoring - the actual meaning is still implied, just no longer included as clear text. It might also cause misunderstandings to people working with the code.
Those supporting this change, aside from jokingly mentioning that this change will save one character per f-word comment, note that this can give the Linux Kernel project a more positive feeling with anyone who works with the code, with "fuck" mostly associated with bad feelings, while "hug" is indeed mostly going to call positive feelings in our subconscious minds.
Who doesn't like a good hug? :)
What is your opinion on this rather controversial topic? Feel free to let us know in the comments, as we are very interested in your stances and arguments on this!
Sources:
https://lkml.org/lkml/2018/12/1/105
Several comment sections, IRC chats, and other places for people to express their opinions. Too many to list them all.51 -
Me: So, I've been looking through the code and there's barely any comments and documentation. What's up with that?
Him: Yeah, it's really complex and low level, so it's difficult to actually describe what it does.
Me: But that's exactly why you should document it! 🤦🤦🤦
Him: ...3 -
Code works.
Rename a variable for clarity.
Third-party lib behaves differently, breaks things.
Change the var names back.
Still broken.
Stash changes and checkout previous commit.
Everything works.
Diff with stash.
No notable changes. (some comments, ...)
Checkout branch again, pop stash.
Broken again.
... What?19 -
Ok you fucks that don't believe in documentation - me included.
Document your shit, because one day, one day some dumb fuck is going to have to recreate your over engineered bullshit of a system and scale it up.
What would fucking be useful right now is ANY god forsaken insight into what in the flying fuck your code is doing, or not doing, or why it makes queries to a database with no fucking records in it 🤦♂️ and then attempts to use that data... in case it did exist.
There's nothing like unpicking a mess of bullshit, and documenting it, and then have to remake it on a new platform.
Documention saves lives kids, maybe your own life one day😬16 -
and the award for most downvotes stackoverflow post, is… well, stackoverflow. I posted this a while ago, but it got much better. -247, what a beautiful number. apparently there's a stackechange app, but instead of fixing its bugs, they made a stackoverflow app that does the same thing. go and give those cocksuckers a big, fat downvote! more pics and link in comments.7
-
Product Owner: "need this doing in 6 months, can you do?"
Me: "we're too busy to start another project at the moment - can you wait about 6 months for it to start, or I'll have to hire more devs"
PO: "I'll just outsource it"
36 months later the company he outsourced to is out of business and hasn't delivered, and I've had their half-finished shit show git repo dumped on me.
No comments, no docs, and no units tests, so no fucking idea what it's supposed to do4 -
Other students:
#define redLed 2
#define yellowLed 3
#define greenLed 4
void setup ()
{
pinMode(redLed, OUTPUT);
pinMode(yellowLed, OUTPUT) ;
pinMode(greenLed, OUTPUT) ;
}
Me:
void setup ()
{
for (int i=2;i<5;i++)
pinMode (i, OUTPUT);
}
Proff - This code is wrong it won't work. Where have you specified red led, green led, yellow led?
Me - wtf! Code doesn't know which led is used in what pin it's just pin numbers!
Gave me less marks 😑
P. S. I wrote comments in my code specifying which pin will have what led connected 😑14 -
Hahahaha, great start of Monday, discovering angry passive/aggresive comments from previous devs.. xD
// what is this? ever heard of CSS?
// css is for pussies, real men hardcode
// jQuery mixed with Ext. Awesome7 -
Comment the "why", not the "what". If your code needs comments to explain what it does, rewrite the code (use good, descriptive identifiers).3
-
After the face reveal and the hand reveal... Let's do something spicier! 😉
Guys, post a pic of your "private member"...
Gals, post a pic of your "closure"... If you know what I mean 😏
Mine's in the comments13 -
Sometimes I go ridiculously hardball on my comments in order to gain a better understanding of what I'm trying to accomplish2
-
Our PM found a contractor, results as expected..
Contractor: "The file you supplied is corrupt, some areas are greyed out and damaged"
Me: "😐, do you mean the comments?"
Contractor: "I'm not sure what you mean 'the comments'"
Me: "Does the file work as expected?"
Contractor: "Yes"
Me: "Strange! I'll have a chat with our PM and get this issue resolved right away 😉"
...
if(!contractor) {
return Promise.resolve()
}1 -
Dutch devRant meeting.
The current idea is:
Place: The Hague
Starting date: Saturday the 21th of October.
Ending date: Sunday the 22th for the ones who'd like or just Saturday for the ones who'd like that more.
Spot/place within the hague: (help me out here people)
People can get their own sleeping accommodation. Please ask if you cant find anything :).
So for now remains as main point: when/what time!
Share your throughts in the comments.31 -
Gunnery Sgt. Hartman:
What do you code, anyway?
Pvt. Cowboy:
SIR, JAVA, SIR!
Gunnery Sgt. Hartman:
JAVA? Holy dogshit! Only steers and queers code in Java!! And you don't much look like a steer to me so that kind of narrows it down. Do you suck dick?
Pvt. Cowboy:
SIR, NO, SIR!
Gunnery Sgt. Hartman:
I BET YOU'RE THE KIND OF GUY WHO'D WRITE LEGACY CODE AND NOT HAVE THE COMMON COURTESY TO WRITE ANY COMMENTS.8 -
I remember opening an old script file on our server for scheduled tasks, and thinking to myself; What idiot wrote this mess? It's unnecessarily complex, solving the problem in a convoluted way. And of course, not a single line of comments.
After reading it through and through many times to understand what each line did I kept repeating to myself; What an imbecile... Being this stupid should be illegal... Coding should require some sort of license to prevent idiots from doing this!
Then of course, it slowly dawned on me. I had written this crap one year before. I'm the idiot... 😐
I've commented every line religiously since then.4 -
!rant
If I am responding to a rant or a comment. I would like to be able see the rant or the comment. When writing comments I have found myself paddling between the post and my soon-to-be comment because I forgot what I was responding to in the first place.
Look at the attached image. There's a lot of wasted space that could be useful for this. I think this would be a huge QoL improvement. What do you think?9 -
>be someone on DevRant
>make a post unironically telling people not to tell me what to do
>don't realise that telling people to not do something is the same as telling people what to do
>basically be hypocrite
>get comments trying to explain why I'm a hypocrite
>tell commenters they're hypocrites and that this is the reason I made the post
>shove my head in my ass because I'm offended
>stop responding to comments because I'm ignorant like that
>pic related
>it's me when I wrote the post telling people not to tell me what to do.32 -
Comments should describe the why and not the what and always be up to date ... or this will be the result.2
-
So my co-worker loves to tell us to comment our code, for obvious reasons.
But now I'm debugging his code, and guess what.
No comments.
Okay, maybe two comments in two different queries, but they were not that helpfull.
So now I have to debug his code, and I have no idea what I'm even supposed to look for!10 -
Dutchies and some other peoples who want to join the Dutch devRant meeting!
Since nothing is being decided or whatsoever, this is the plan as for what I think would work best and based on feedback/comments/the chat.
We'll meet up at the The Hague train station around 2PM. From there on it really depends on what everyone wants to do but my idea would be (depending on the weather) to go to a park or get a coffee or something like that.
So, what do you guys/gals think?27 -
My coworker can't be bothered with learning git branching, so he comments out significant functionality during testing and then comments it back in before go-live. What could possibly go wrong?7
-
I cringe everytime I see improperly formatted code -_-
Me: *sees no spaces between function blocks so I format it myself*
Classmate: *Happily types code with no spaces between lines or comments and overwrites what I did*
Me: Seriously?!8 -
I'm in the process of installing Windows 98 on an old ultra portable.
166mhz, 32MB of ram, 10GB hdd.
What should i install next?
Linux is not a possibility at the moment I'm only interested in Windows and DOS for this right now.
Suggestions in the comments21 -
Will add better photos in the comments!
A client of mine received an spoofed email from their domain. It was a
script with visual basic source code.
Maybe someone here can explain what the script does?
Client didn't opened the file!25 -
Me: "I should try to waste less money this month"
Also me: "I wonder what 1000 euro whiskey tastes like..."
(Please describe in comments, I don't actually have 1000 euros for whiskey.)11 -
What is with the +1 chasing in here? Votes should be given for good rants and comments, not to climb the count-ladder if that somehow would make you elite community member. Posting a picture you found elsewhere just to earn free stickers or a stress ball, and pollute the incentive the swag were meant for originally.
Stop mass +1'ing some random guys every comment, and earn the votes by contributing with stories, lessons learned, proper rants and supportive comments.5 -
Seeing there are many people (including me) that cant acces the hackathot, I thitk, it would be nice if we as community could hold an unoficial remote hackathon.
My ideas:
-5 days to code
-github / skype
-chess engines which have to compete eachothers to find the winner
-5 teams
-should be compatible with windows, linex, mac (either an interpreted language or different recompiled versions)
Tell me what you think in the comments23 -
devrant is the only community that I feel comfortable in.
I've been browsing since 2000 and been in many communities online so far, so that's saying a lot.
I've seen supportive comments towards me and others here, and that really makes me feel less hopeless.
I think the internet in general makes you feel like you're a number. Click the like and the sub button, just be one more in a million.
But here, you matter.
If you try to post something and you are sincere, but humble people will ++ and say nice comments.
If you get upvoted, you can WHO did it and what their online persona looks like.
It feels very organic and personal, which is saying a lot for a place like the internet.
In the standard online experience, people online take advantage of the anonymity to say shit they wouldn't online:
anything, from troll shit to presumptuous comments.
I don't understand how some people can connect being anonymous with denying themselves as moral beings.
Do these people walk around in real life fighting with every person that has an opposite point of view?
There's actual people out there that will read this post and think "what a fucking boy scout".
Sorry for having emotions.
how many fucked up people are there, so that devrant feels like a goddamn mirage?9 -
Im not dead yet (dunno about next week), for those that knew me here when I was around, but I really wanted to come to a place I know I could get some comments about it, but what the whole IT/Tech world right now?
Python and its CoC shenanigans
Linus leaving
Mozilla telemetry spying on you https://reddit.com/r/linux/...
And so on and on, the ride isnt over yet, right? (it never is, it only gets more fun from here on baby)question bsd works too linus it you had a change to stop it gentoo richard stallman open source trueos looks cool if you have an nvidia gpu install it had it5 -
!rant
Has anyone looked at the linux kernel 1.0?
I am amazed with this! And the comments are priceless
e.g:
tcp.c
/* I hope this returns what I want. */
return(~d+1);
buffer.c
* 14.02.92: changed it to sync dirty buffers a bit: better performance
* when the filesystem starts to get full of dirty blocks (I hope).
*/
So cool!!!!3 -
VB3.
In my last rant I mentioned I used to convert VB3 code to .Net. Before that, I used to work on the VB3 product itself. This software emulated something from the real world, and as such complied with a bunch of regulations that changed on a regular basis, and always had additions and removals that were to be done on a strict schedule (e.g. "we're adding a new product next month, so we have to be able to sell it by the first of the month"). As such, it was a huge sprawling mess.
One day, I was given a task to change some feature slightly. The task was simple enough and really only required adding one line of code. I added that line and clicked "Run".
Error: Too Much Code
What? What do you mean too much code? I asked a colleague for help. "Oh, don't worry, it happens when a function is too long. Just remove one or two of the comments and try again." The comments were, naturally, old deleted code that was quite meaningless so I had no qualms about removing some. It worked, and I went on with my life.
This started happening on a regular basis on our larger functions. But there were always comments to remove so it wasn't a big issue.
One day, though, it happened on a five-line function. This was puzzling - the error had always happened when a function was too big but this one clearly wasn't. What could the error mean? I went to the same colleague.
Apparently, there's also a limit to how big the entire code base can be. "Just find a function that isn't used any more and delete it." And so I did. There were many such functions, responsible for calculating things which no longer existed so they were never called. For months, I'd find functions and remove them. Until there weren't any more. I checked every function and subroutine in our codebase, and they were all used; I checked every possible code path and they were all needed.
What do I do now, I asked? The colleague, who was an expert on VB3 but worked on another project, came and take a look.
"Look at all these small functions you made! No wonder you're running out of space!" Apparently each function created a lot of overhead in the compiled executable. The solution was clear. Combine small functions into large monolithic ones, possibly passing flags in them to do completely unrelated things. Oh, and don't comment on the different parts because we have no room for comments in our code base.
Ah, the good old days.5 -
Pattern I'm noticing...
*email* Hey, can you help me with my code, I don't know why it's not working...*end email*
no comments. if you wrote the shit and don't know what the blazes it's doing, how am i supposed to know what you broke? I'm not a mind reader, I don't know what you were thinking when you wrote the code.
true, I could go through and read it and try to figure it out, but then i'll be cranky and much less likely to want to help you in the future because you're causing unnecessary work, and part of my job is to get you ready for work environments, and I WILL DO EVERYTHING IN MY FUCKING POWER TO MAKE YOU THE ONE PERSON THAT EVERYONE DOESN'T HATE, BUT I WILL HATE YOU FOREVER BECAUSE YOU'RE PISSING ME THE HELL OFF.1 -
Felt so awkward today. Bare in mind I am still a junior. I was on a pull request reviewing session on a repo I use. I was being super super pedantic with variable names, data types etc as the people who wrote it are brand new to the company. I then realise I had just reviewed the companies lead developers PR to a different repo. Every time someone comments on a PR on this repo all developers in the company get an email notification. I sat there litrually sweating, bright red with the words 'oh ****' on an infinite loop in my head, staring at the screen waiting to see what was to happen.
Thankfully he was ok with the comments. But now people keep calling me the lead developer (teasing) fml I hate anxiaty2 -
I've noticed a weird bug with the Google Assistant swapping the scores when you ask it about sports.
Check comments for what I mean5 -
This run up to Christmas is the shit. Everything is suddenly urgent. No time to do a proper job. If that isn't bad enough, you are also tasked with thinking up some ideas for family Christmas presents, as if i give a flying fuck. I dont mind the break for the holidays but i fucking hate Christmas but have to put a brave face on and celebrate (what exactly am i celebrating). And no scrooge comments please.7
-
Update on my old rant: I started writing type definitions for our project (it's basically a chunk of separate files where you document the objects you use; typed languages have this out of the box, js doesn't and it may become useful depending on the size of the project). Our codebase is reasonably big -not complicated, but big- and I felt like I was losing track of all the properties\objects\usage\comments\whatever. So I iiterally wrote some ts interfaces: properties with name and types, that's it, so you know what you're passing around.
Proposal was denied, I'll have to delete the documentation; "keeping the doc updated is going to require more work".
Me: Ok, but what am I supposed to do when I need to interface with your code? Run the debugger and figure out what the fuck you guys are passing around?
Team leader: Yes 😊6 -
I hired 2 fresh out of school junior devs to work with me on my old web app.
They were brilliant, knew a lot of things, and were motivated.
They started complaining about how the code was shit, the db was shit, there were no best practices, the technology was old, bug fixing was boring, no comments in code.
I felt bad, very bad during 3 years, because they were absolutely right. I tried to work with them through better coding practices, rewriting, documenting etc.
Now they both have left.
I'm alone maintaining and evolving the application.
And I start to come across the code THEY developed.
What a bunch of shit. SQL queries bringing down the server. Duplicate code, because they didn't want even read the old one. Useless comments.
Performance killing functions. Exceptions swallowed without mercy. I have to clean up they poop.
I feel somewhat better, though. The application is still growing and holding the ground after many years and generating at least 800K$ per year in revenues.
Maybe better, but sad. I really wanted to share the project with somebody else but I failed, and I'm left alone....12 -
“Good comments explain why, not what,” says Andy Marks. “Do more of the former and none of the latter. A well named method or variable will beat a well-written comment every day.”2
-
FFS stop squashing commits. If “updated comments” is what the commit was it should show it in git blame. If “fixed null check” is what the commit was it should show it in git blame.
There is no reason to have “ticket-234 service revision” beside 1000 lines of code. How does anyone justify this loss of git info for the sake of “clean history”? Nobody looks at your history and says, “That is bloody clean git history I should write home about it.” People do however look at the code and say, “I wish I knew WTF they were trying to do on that line.”16 -
Recently for a project I needed to read/write ID3 tags from MP3 files. And after a long search, I found this bloated, monolithic but quite stable library, "getID3".
So, I was looking through the code-base and I found this. This guy literally storing the key value based data embedded as comments within the class file. Then wrote a method to parse the data and even used caching to ensure maximum speed! And such usage is repeated all over the code-base.
So, this is what people used do before arrays were invented :314 -
Android O is coming soon!
Write your thoughts about what this version name should be in the comments below!
ex) Oreo, Octopus(?)
Google
http://www.android.com24 -
!rant but story
https://devin.xyz (v.0.0.1)
My quick and semi-ugly solution to save amazing rants and comments forever and more organized.
What it is and it will be:
- archive of rants and comments from devrant that I found very good
- the original ranters will be informed when their rants are archived
- the original ranters and/or the management team of devRant has the right to request the archive content's total deletion
- every single thing on there will be accessible by anyone anytime anywhere (as log as server is healthy)
- open-source
What it may become:
- anyone can register and save their archive
- dev content archive from other sources
- dev articles blog
What it will never have/be:
- any form of payment
- ads
- tracking (I don't even wanna know how many users are viewing)
- non dev related content
- devRant
I'm willing to create user accounts for anyone interested in very near future. So please buzz me here if you want one.
So far it's a website of Laravel + Voyager + bulma with very minimal custom codes (I had to write below 100 lines of code in total). It is on Vultr server.
I'm gonna maintain and update as much as I can on my spare time. Hence I don't consider this as a collab. However, the code is on gitlab private repo. I'll make the repo public soon as well. Any contribution is gladly welcome. 😄10 -
I love that its 2024, and yet sometimes you still have to delete the /bin and /obj folders from a C# project to remove build errors that are in fact, not build errors...
...and people here hate node.js / npm
🤡🤡🤡🤡🤡🤡
but come on down in the comments all you C# worshippers and please enlighten me what I am doing wrong... definitely couldn't be C# right?
also explain why 'clean' must not REALLY mean clean 🤡17 -
If you ever get a problem with your Linux,
DO NOT EVER try out an answer on any random forum without reading all the comments/replies.
The problem spreads like a freaking wildfire and you will end up reinstalling Linux and losing data what wasn't backed up. (If by God's grace, you do a regular back up)2 -
Haven't coded for a few days, returned to my github project to find one of my co-workers has gone through every single line in all of the scripts and added passive-agrresivd, sarcastic, comments about what they do.
Thanks.... I guess....5 -
I keep seeing comments like “This should be on spotify” under youtube videos. Guess what — I download them with youtube to mp3 converter, drag n drop them into apple music, and boom, it syncs to my phone. They live among apple music-native tracks. They don’t eat up icloud space (I don’t use icloud), and they don’t disappear when apple music subscription expires. I don’t know any music streaming service that has everything in hi-res or lossless and allows that.11
-
Leaving my current company for another opportunity. Boss has been working remote for almost a week now. When he shows up at the office, behaves like I don't exist anymore. Throwing in comments like "let's hire this guy, he's got some actual AI experience and not some academic bulls**t" while making sure I definitely hear them. His childish behavior leaves me wondering here what he thinks he'll achieve with it. At least makes me to look forward to get out of here. Oh well... Only couple of weeks left to put up with this.1
-
A half answer on SO gives me a pointer to a possible solution. Using that pointer, I actually find an answer and it's quite involved. So to help others with the same question, I edit the answer to complete it with the additional steps. No edits to the answer involved, just a few additional steps.
😡 The answer author comments that they appreciate the info, but they reject my edit so their answer isn't changed!
What a douchebag.2 -
My friends netspeed. Must be nice.... attached in the comments is what I’ve got to work with. It’s sad when my mobile hotspot is faster than my fucking wall connection.9
-
Spent all morning trying to write a JSON parser in Python just to get a bit of practice (technical interview next week).
After an hour or more... Didn't get far and finally gave up...
Then I remember Python has a built-in json module... (yea no need to write in myself).
Since libraries are just py files, I open the source code... And wow!
All the public methods are nicely documented with informative comments and descriptions.
But then I look at the method calls and .... I don't understand what it's doing....
.............................. ☹️🙁😖😢😭😧😰😱3 -
When I say I code I mean I write fake HTML comments in the WordPress editor when the Client is watching me work so he doesn’t feel bad for paying me a month’s salary for doing what a 14 y/o is able to accomplish within two hours of googling
-
Me: Fuck there's a null pointer exception here... What was trying to happen here
*Read comments*
*It's written in binary... dafuq why though*
*looks up what it says*
*Reads output*
"Sorry bud, if you couldn't figure this out... then no one can" -
I Remember what my senior told me once:
"You know you're in the wrong job when you see source code filled with comments written by ur senior dev scolding other devs for code fuckups" -
I have always believed that clean code is readable code, and if your code is readable, then it shouldn't require masses of comments to explain it. However, in the course I am being taught, we are being told that in programming, comments are massively important to help another developer understand your code and what it does. So what is the consensus of the dev community?
Do you feel comments are key, or redundant if your code is written well?20 -
What if we fed all rants and comments on devRant to a neural network trained to write rants and comments on others?10
-
God damnit Quora!
I stumbled upon some article or post or whatever they are called on quora.
And I really wanted to read the comments on it. It wouldn’t let me unless I log in.
I normally don’t do that but I thought I’ll make an exception because I really wanted to read the comments.
So I clicked on that comments button and logged in (via google). First it presented me some modal dialog to pick 5 things that interest me. And it was mandatory. Fine… I picked those 5 things.
Finally it presents me the list of articles or whatever. But not the same list that I have seen before I was logged in. Scrolling, the article of my interest is not there. God damnit! Just show me my comments for fucks sake.
I go back to that tab where I was not logged in to somehow copy the link of that article or the link to the comments section. But it doesn’t let me. Some bullshit pseudo smart layer of crap is preventing me from doing anything.
Then I abuse the fucking share link to visit it in my logged in tab to finally see the comments that I came for.
And the comments weren’t even worth it. God! What a waste of time! And how can one fuck up a fucking forum so much?
It will be a lesson for me not to visit Quora ever again.4 -
Typical code life?
1. Write rough comments
2. Write more detailed comments
3. Write pseudo code
4. Write semi-working but definitely ugly code
5. Write working but very ugly code
6. Refactor the code to be nicer, check for patterns, bottlenecks and other bits and pieces
7. Push to git the "final" code
8. After few months blame whoever wrote the code
9. Refactor all the things!
---
This happened in my career more than once and still - it seems like the best option out there to get things done. What do you guys think? Should something be added/removed from this? Is this over-complicated or what?2 -
Waking up and finding your Notifs panel full is like Christmas. Slowly opening every mention and ++ you get. Then, just for fun, you read every comment on rants you've commented in. Oh and comments in your own rants are the best.
What a nice start for the day.5 -
Hahaha oh man... A devrant user just deleted one rant because of “toxic” comments on it😂
That’s what happens when devs try JS for the first time. It drives you mad.
I recorded a video of the whole rant by the way... not sure if I should share it tho 👀24 -
Start-up I'm working for as a front-end dev is pretty nice. I have good hardware, free coffee and my coworkers are all decent people. My boss is chill, and I have flexible work hours.
There is this one policy for writing code, however. And I simply cannot understand it, nor can I ignore it because of code reviews: no comments in production code.
I mean, what? Why? Comments are nice, and they make life easier for the future maintainers. At least let me put a small two-liner explaining why I did stuff this or that way. But no, I only get to explain it verbally (once) to the person reviewing my PR. Why, man?9 -
Rant time. So, me and a few classmates finally finished and handed in a website for a web development class a few days ago. Before we handed it in, we had a meeting with the professor to discuss what we still needed to do.
Us: Are we missing anything?
Prof: Nope. Looks good. Just make sure you have stylus implemented.
Us: Cool, thanks.
We got our grade back today. We didn't do as great as we'd hope, and here's one of the comments that the professor left us:
"You forgot to implement all of the CRUD operations. -4"
WHAT THE **** IS THAT? We asked you if we were missing anything, and you said no. You reminded us about stylus, which we looked at ONCE in a 13-week class, but you failed to remind us that we needed all of the CRUD ops?2 -
So f*king stressed out!
3 weeks passed at new job and I still feel like I don't know what I'm doing. My PRs got tons of comments and I still can't finish a tiny ticket that should be very easy but it's in a stack that I have almost 0 knowledge about. I feel so incompetent and afraid that I won't pass the probation. 😥
The stress hit so hard that I can't eat, feeling nausea every morning and can't sleep well at all. I question myself if I'm too stupid to be a developer, should I just give up?
😭😰😱😥😵
Argh this is so bad!10 -
FUCKING SHITTY PHP WITH NO FUCKING COMMENTS AND A JOKE OF A DOCUMENTATION WELL I DON'T FUCKING KNOW WHY THAT BUGS HAPPENING NONE OF THIS CODE MAKES SENSE AND IT APPEARS TO BE HELD TOGETHER BY DUCT TAPE AND PRAYERS AND IM GONNA LOSE MY MIND IF I SEE ONE MORE FUCKING 200 LINE FUNCTION WITH A NAME LIKE 'transformData' WHAT THE HOLY FUCK DOES IT DO I SWEAR TO GOD THIS CODEBASE NEEDS TO BE FIREBOMBED10
-
*Pro tip:* add comments in your code stating what you're gonna write next! This helps the reader to know what to expect!
[filename EventsTable.js]15 -
tldr: maintainers can be assholes
So there's this python package+cli tool that I found interesting while browsing github and thought of contributing to it. Now this repo has around 2000 issues and multiple open PRs so seemed like a good start.
So i submit 2 PRs implementing similar features on different sites (it is a scraping repo). This douche of a maintainer marks comments various errors in the code convention not being followed without specifying what they actually were. Now I had specified that i was new to this repo so and would need his help (I guess this is one of the jobs of the reviewer). This piece of shit comments changes in the pr with one or two word sentences like "again", "wtf" and occasionally psycopathic replies. That son of a bitch can't tell what's wrong like wtf dude, instead of having a long discussion over the comments section of the fucking pr why can't you just point out what exactly is wrong and I'll happily fix that shit, but no, you have to be a douche about out it and employ sarcasm. Well FUCK YOU TOO.1 -
Both GCC and Clang can switch off the braindead type-based aliasing rules through the "-fno-strict-aliasing" compiler option so that everything can alias everything.
On the other hand, C offers the "restrict" qualifier for pointers where you promise that nothing will alias this memory area, not even same type pointers.
What happens if you use "restrict", but compile with "-fno-strict-aliasing"? Will the "restrict" be obeyed or disregarded?
Answer in the comments.8 -
Oh gee whiz fellas. I lived through my nightmare. Recently too.
(Multiple rants over last few months are merged in this one. Couldn't rant earlier because my login didn't work.)
I joined a new shithole recently.
It was a huge change because my whole tech stack changed, and on top of that the application domain was new too.
Boss: ho hey newbie, here take this task which is a core service redesign and implementation and finish it in two weeks because it has to be in production for a client.
Normally I'd be able to provide a reasonable analysis and estimate. But being new and unaware of how things work here, I just said 'cool, I'll try my best.' (I was aware that it was a big undertaking but didn't realize the scope and the alarming lack of support I'd get and the bullshit egos I'd have to deal with)
Like a mad man I worked 17+ hours a day with barely a day off every week and changed and produced a lot of code, most of it of decent quality.
Deadline came and went by. Got extended because it was impossible (and fake).
All the time my manager is continuously building pressure on me. When I asked questions I never got any direct/clear answers. On asking for help, I'd get an elaborate word vomit of what was already known/visible. Yet I finally managed to have an implementation ready.
Reviewer: You haven't added parameter comments on your functions and there aren't enough comments in code. We follow standards. Clean code and whatnot. Care for the craft verbal diarrhea.
Boss: Ho hey anux, do you think we'll be able to push the code to production?
Me: Nope. We care for the craft and have standards. We need to add redundant comments to self documented code first, because that is of utmost importance as Nuthead reviewer explained.
(what I wish I had said)
What I actually said: No, code is not reviewed yet.
And despite examples of functions which were not documented (which were written by the reviewer nut), I added 6-7 lines of comments for my single line functions describing how e.g. Sum takes two input integers and returns their sum and asked for a review again.
Reviewer: See this comment is better written as this same-meaning-but-slightly-longer way. Can we please add full stops everywhere even though they were not there to begin with? Can we please not follow this pattern and instead promote our anti-pattern? Thanks.
Me: Changed the comments. Added full stops. Here's a link for why this anti-pattern is bad.
Reviewer: you have written such beautiful code with such little gems. Brilliant. It's great to see how my mentoring has honed your skills.
.
.
.
I swear I would have broken a CRT on his stupid face if we weren't working remotely (and if I had a CRT).
It infuriates me how the solution to every problem with this guy is 'add a comment'.
What enrages me more is that I actually thought I could learn from this guy (in the beginning). My self doubt just made me burnout for little in return.
Thankfully this living nightmare will soon be over.rant fuck you shitty reviewer micromanagement by micrococks wk279 living nightmare fml glassdoor reviews don't lie9 -
This is a very mild rant about character limit saying that there are >0 characters left when writing comments, then refusing to submit.
I'm so fucking infuriated! I almost raised an eyebrow in anger! What the fuck, my life is literally ruined, this bug is making my toilet visits insignificantly worse!4 -
People who don't ++ OPs, nor comments or add anything of value on social media / thread.
Please.
What is your purpose but self projection?16 -
@retoor please tell your AI bot, that we don't need it to make 20 comments on every post.
What the bot is doing is pretty great and cool, just let it be for that one task. It's role as a spam remover is fine, but giving it a 'human' like persona, where it starts acting like a real person chatting with ranters is downright creepy.
I'm not even joking.23 -
During college, I was unable to compile a program during lab sessions. So I decided to ask the assistance of Technical assistant. He went through my code for like 5 minutes and said :
"You forgot to add Comments"
To which I replied :
"But sir what that does have to do anything with the program"
His reply was :
"DON'T ARGUE WITH ME, DO YOU WANT ME TO DEDUCT YOUR LAB MARKS"4 -
Being in Data Science and Mobile Development taught me :
1.Always be curious
2.Never stop learning
3.Never give up
4.Don't be afraid of Experimenting new Technologies
5.Don't always take ,Give More ,Share More!!
Do Share What your Domain taught you in the Comments 😀4 -
Just opened a month old android studio project and now I'm wondering what the hell is going on. And later realize the importance of comments. :-(3
-
Anybody else shipping SidTheITGuy with ostream?
#JustKissAlready
P.S. Content Warning, only god knows what will go in the comments of this one. U was warned.15 -
QMS admin: you only finished the code review, you didn't complete it!
Me: opens review clicks complete
QMS: you didn't export the code review comments!
Me: opens code review again. Clicks Export. Attaches *.txt
QMS: you exported the comments in the wrong format, I can't read them
Me: what is the right format?
QMS: SOP document <random alphanumeric> clearly states the format
Me: spends 20 minutes navigating the piece of crap QMS software with no search function folder by folder.
Finds document.
It's 120 pages and 4 years old.
On page 68, I find "template to be implemented"
Reply to QMS, that document doesn't actually give a reference to a template
QMS: Email my line manager "Please teach your staff how to do a code review"3 -
I have found a website that allows HTML in comments. They blocked <script>, but not <iframe>. I can just load a script from my personal website using it. What should i do?
(something innocent)7 -
Devrant is so full of people venting, I want to be an aisle of positivity, something you know you wanted for years on devrant!
First of all, remember that whatever your boss tells you, you should know what you can do and never let them intimidate you!
Whatever your mates tell you, the Issue probably isn't just you.
Remember to listen to many differentstyles of music. Keep Hydrated! Be nice to people, they'll be nice in return.
How about you come into the comments to have some nice talk? Remember: Only spread positivity 🌻🥀🌺
Ps: Havent ranted in such a long time. What's new?8 -
Keep this in mind: I don't like WordPress and PHP at all!!!
So a couple of days ago my boss asked me if I could extend a custom made WordPress plugin made by our intern. First thought: sure why not? Boss says: it has to be done in less than 100 hours of work (an estimate done by my boss and the intern). Me: I can't tell you that before I have seen the code and what functionality has to be in the extension. Boss: Cool, look it over this weekend and tell me if you want to do it or not.
I looked it through and my answer will probably be: NO WHERE IN HELL am I gonna are this in less that 100 hours! 1. no tests has been performed so I have absolutely no clue if his code works.
2. variable names are mostly: $string_query (whatever that means?), $result, $string_temp and so on.
3. Methods and functions are more than 250 lines long, with shitty formatting, and more comments than code. WTF?
4. The estimate has been made by an intern and my boss (doesn't know much about programming). I haven't been consulted about it....
5. No version control. No branches, no commits other than initial commit. Great.
6. Most comments in the code just tells me what I can read from the code. What it returns and what it takes as params. Can I please know wtf your method call named $booking->run () does? I still haven't found this method in the code after 1 hour of intensively looking for it...
FFS man... Not gonna do this, even though I thought it would have been an interesting project initially.
Sorry for the long rant... I just wish the intern would have consulted me about all this shit, since he obviously have bad practices. *sigh*6 -
Once I quit my job, I'll leave this message on the comments "Only me and God knew what this code did. Now that I'm gone, only God knows... Please increase the variable i for the number of tries. i = 999"6
-
I sometimes feel like some people's comments on devrant are enough for a mental health crisis diagnosis. I wonder, how can we diagnose people through text? And can, let's say, ML do any better.
I mean; let's say for example abusive behaviors. This may be an online community but that doesn't stop some from abusing others, right? But the only form of communication here is text, right? What if you could diagnose... Not even that. What if you could inform a mental health expert about a toxic behavior online? We do have a lot of "internet policing" but we have no "internet mental health help" for toxic behaviors and attempts to mitigate that. I don't mean banning people. I mean literally in simplest form tag a psychotherapist in the convo.
Just thinking. :)13 -
Nothing more refreshing than seeing the code definitely do the opposite of what its line comments say it does in the first file you open to get to know the new project 😅
-
What does GPT-3 tell us about how our brains work?
I just read an interesting article (link below) about how it does on the turing test. I've had this inclination for a while that state of the art AI is "incomplete", in the sense that we have some of the systems to make AGI, but not all of them. One of the comments they make is that "GPT-3 often finds it easier to write code to solve a programming problem, than to solve the problem on one example input", and that's the nail on the head. We can codify situations, describe the rules, put them in memory and run those rules in our head. We can manipulate the input to see how it'll change, we can spot from a problem statement what the rules are instead of focusing on what the answer is. Anyway, light bulb moment shared.
Link: https://lacker.io/ai/2020/...9 -
That's what perl wants you to think!
Credits: The last developper snapped on his last commit by _hastegan https://reddit.com/r/... -
Every developer thought what the hell my colleague is writing in code.
After watching own code after a year, who the hell is the developer.
Oops it me. No comments :) -
Since roughly 1 year ago I have been making "leftoff" comments in my code, whenever a work day ended or so, with a few notes on what I was doing and what I was about to work on next.
And I recommend it, I think that's good practice. Because I forgot to do it on friday and I have no GOD DAMN CLUE what I was working on :|3 -
Do you agree?
Junior: What are comments
Mid-level: Hah! My code is so clean, I don't NEED comments!
Senior: comments comments comments comments comments comments comments comments comments comments comments comments comme-...25 -
Heureka! I made it work! I made it work!
After two weeks of trying shit and fixing without any clue what the fucking problem is, I finaly made it work.
Somehow Atom had a problem finding the correct paths on my Windows 10 machine. After I retried it on the Windows Console it perfectly worked.
Some solutions are simple. Some problems are stupid!
All thanks goes to @AlexDeLarge for writting awesome comments and understanding Webpack so damn well. -
I have the habit of adding //todo comments to my code whenever I need to implement something later. Very useful to just search your code for "todo" and see what is left to do.
That is all very well, but I just searched my project for "todo" and there are SO MANY //todo comments in the third party dependencies...4 -
daily reminder (most of you don't need it i know) that reddit is full of the most ignorant and dumb people on the planet
thought i could hop into comments on a /r/worldnews post for interesting discussion and discourse, no, its just idiotic neckbeards trying to one up eachother on painfully cringe doomer phrases and / or who can get the most upvotes from their godawful dumbass pun
what a fuckin cesspool
and they wonder why the world is going to shit7 -
Bitbucket full of dicks!!!
Dude just pushed merge conflict comments!!! At first he was like I did not do it, so I was like git blame bitch! Now he is like it wasn't my fault so what I used force push!
Well that was it I will leave this unholy company!1 -
https://reddit.com/r/programming/...
"I didn't get paid so I open-sourced my client's project". What do you think about this approach, folks? Pretty neat to me, plus people get good free stuffs! Unless the client finds out about the cod- Who am I kidding? They're client!9 -
What is your least favorite Website "feature" ?
Mine is those off page menus that slide in from the side. They lag like crazy and freeze the entire site. God forbid if click the menu button more than once. Forbes places comments on the off page sidebar which is just pure hell.5 -
I’m currently working on the profile view in JoyRant, which turns out to be much more work than I thought.
Anyway, after many iterations on the appearance, I’m now finally satisfied about how it looks and works. Especially the category picker (Rants, ++’s, Comments, Favorites).
What do you think? Do you like it?4 -
When you look into the code of old developers with nice comments such as "What a fucking retard he is trying to book in the past". Just laught .1
-
Sometimes I feel like when I make comments in pull requests, people pretend to understand what I'm talking about. Anyone else feel that way?4
-
Just got upset with a coworker due to not understanding the code written, logic, lack of documentation, comments. Nothing!
Other coworker: But Dave, you added that feature last December. Remember?
Me: So what are we working on today? -
So i’m making my first Angular app here. I commited the first code setup and shot in the PR. I got 40+ comments so i’ve been fixing them all day yesterday.
A part of the comments i don’t understand yet so i ask if the colleage can watch with me and explain ehat how and why.
What does this nitpicker motherfucker do? Add more fucking comments to the PR and totally ignores my requests for explanation. Fucking anti social dick.4 -
Just got reminded in the comments of another rant, that theres a .se domain, so my first thought was to register per.se (torilla tavataan) - sadly it wasn't available, since some football club/team is owning it, what a nice domain name 😂1
-
For the last 2.5 weeks I have been working on a application for a client that essentially amounts up to a glorified asset management tool. This project had a crazy deadline and I was tasked to solo dev. Because I could choose what to build the application with I thought I would try out Bun and Elysia. Loved it. Thats not the point of the story. I spent about 130 hours in 2.5 weeks on the project, slept 3 hours last night delivered the project after multiple QA rounds. Clients response on slack: This is unusable. We can not test. Client shares screenshot of design and my implementation. I went off script with a silly input field that they designed that never got used in any other place in the app but in this one model, so I decided to rather reuse a working component than creating a stray one. Oh and obviously the panel that the comments live in is full hight and not 80% like the designs. So the app is unusable. FML. How does that make the app unusable? Can you post comments. Yes tard, can you upload assets, yes tard. So what about constructive feedback. *constructive feedback left the building* THE APP IS UNUASABLE. FIX NOW.4
-
Noop
18k+ upvotes.
Not a single post.
He's the total inversion of a narcissist. Hes a ghost.
He must be the most boring person on earth or the most interesting/mysterious.
Like, what is he hiding? No posts, no comments. Just upvotes.
My bet: Hes an international fugitive or a spy. Get em!
Who else wants to baselessly speculate about long time users who keep to themselves and or highlight their favorite mime?9 -
int i = 0; // i is an integer initialized to 0
wtf?!?!?
comments should explain why not how or what the code is doing...1 -
I'd like to follow some of you on GitHub to see what you are working on! 😊
Post your GitHub profiles in the comments if you are active 👍11 -
When you're an idiot who doesn't know what you're talking about since you've always used Google, and people give you shit for it anyways instead of just being cool about it.
😧🔫
Come on guys. This is ridiculous. My school uses Google services, so I'm pretty much forced into it. I've never really ventured outside of Google because it works just fine. I clearly don't know what I'm talking about. That much is obvious. How about trying to be a good person and help me out instead of talking down to me and --'ing my rants and comments.
This is why humanity is doomed to fail. Half the population is comprised of complete fucking idiots, and the other half is mostly assholes.4 -
"Please move the logo left. The text goes a bit under."
Do you guys think people realize how unclear they are, and are just too fucking lazy to write the full spec? Or are they just so fucking stupid they don't realize I literally have no fucking clue what to do exactly with comments like these?
I guess Hanlon's razor applies here, but some days I just don't know...
Happy Friday! ☠️rant dumb comments lets see how many tags devrant allows are you an idiot please kill me maybe i'll break it not technical no spec3 -
Holy crap, just started working again on a personal project after a 1-month hiatus... Really struggling to get my head back where it was, I have (almost) no clue what I was doing or why.
Even the commit log and the comments and docs I've left around seem empty somehow.
Any good tips/tools for retracing steps? How do you start working on a codebase you've never touched before?1 -
While TAing an introductory python class:
Student 1: What were comments again? A pound sign?
Student 2: No, they are hashtags3 -
Shit swizzler in school group project doesn't delete ANY code. Just comments out everything, everywhere.
Some of the files is scrolling through 30 lines of comments, 2 actual lines of code, 20 lines of comments, 5 lines of actual code, ...
Somewhere, in between all of his shit code, I just want to add: "Fucking stop with the comments, you wheezing bag of dicktits"
Oh and this afternoon, he asked me where he could find the Bootstrap code I'd written. He couldn't find 'the file'. I had to explain to him that it's kinda everywhere, throughout the HTML.. As a novice in many many things I fully understand not knowing everything. But the little shitstick told me he 'uses bootstrap all the time' just two hours before he asked me this.
I swear everything this guy touches turns to shit. One more day of this and I'll slap the bitch out of him.
P.S. Free virtual advocado for the first person to guess what movie inspired my insults (easy, I know)6 -
@dfox
Just a suggestion, when scrolling down on a user's profile, their user information should scroll up too along with the 'rants/+1's/comments' tabs and then those tabs stay fixed while the user information hides. Sort of like what Twitter does
There's not much room to view the actual content with all the user information in the way. Of course once we scroll back up, it will then reveal the user info again
:-)4 -
Work rant :
I once had a code review and remembered I forgot to comment my code and said sorry I forgot to comment it out.
The reply I got?
Don't worry, here we say your code should be readable enough and no comments are required.
Im still amazed, like... Even if the code is readable, fuck this I need a tl;Dr comment for the long ass fucking code... What the fuck5 -
At the risk of starting a war, what are folks opinions on in-line comments?
Personally, I'm against them. Self documenting code for the what, SCM for the why.
Comments can get out of date if not maintained; code cannot lie.9 -
Hello not a rant,
Are there MS SQL Server admins here who self taught and learn thru self study?
I work in a company where they use MS SQL Server as the database. I would love to 'understand' how to write efficient queries, and how things really work, not just selecting and joining table blindly and not understanding how things work.
Would you recommend how you understand MS SQL Server, or what learning path you took?
Thank you. I would appreciate any suggestions and comments.10 -
the two code review personality types
review activity:
- dev A: requests code review, sets dev B and dev c (myself) as reviewers
- dev C comments: this review is marked with a complexity > 9000, touches > 20 files and has zero comments... also there's a lot of refactoring going on, making it hard for me to tell what the actual relevant changes are. can you please add more comments to this review?
- dev B (10 mins later): approved review6 -
When I'm reviewing code that I'm soon to be working on, I like to add comments to document things that aren't self-documenting.
When I encounter something I have no fucking idea about, I usually add:
// NFI
It's my "safe for work" way to indicate that I literally have no fucking idea what they were attempting.
So I'm curious, does anyone have their own comment "codes" that are safe for commits, but translate into something more awesome?4 -
I got randomly PIP’ed by this small company I was working at. They claimed performance issues without referring to specifics so I’m sure it was a financial issue (I’m paid more than other devs). So I took the laptop home and claimed I broke my back and started working from home (they don’t appreciate WFH). I did this so that I can freely give interviews. And now after 2 weeks I got 4 offers (with more than 50% hike). I’ve started the necessary documentation work and communicated my last working day with my current company.
So what is the moral of this story? Creative comments only.2 -
Update on my devRant client SwiftUIRant:
I’m experimenting with some UI changes compared to the official app.
* vote buttons are laid out horizontally and placed above the rant to not waste space on the left side.
* comments count shows 0 comments instead of disappearing.
* rants are not cut off but visible in full length (I plan to add a toggle setting for that)
* creation date/time is present in the feed
* date/time formatter uses the current system region and the language english. So no more awkward American dates for non American users.
What do you think?17 -
Here is an idea.
What if web designers make their own portfolio with "The Wayback Machine"?
It is free, reliable, fast, and universal.
Ideas below in comments!8 -
* Start maintaining/upgrading new project at work
* Read book on best practices for the framework
* quickly realise all the "don't do this" parts of the examples in the book is EXACTLY how everything in the project is done
* cry self to sleep -
I am glad that I usually include comments, which make me smile years later...
What are your best findings when you look at your old code?
something like:
// having any and all at the same hierarchy is not valid (and stupid)
someMistakeDeep: 1 // deep fail
// TODO: find out, why the cache is behaving like this. And fix it ¯\_(ツ)_/¯
or my all time favorite comments
// this should not happen.
// wat?
or testing emails like
- tldsAreNotCheckedBTW@something.idontthinkthisdoesexist
- nonValidEmail.com
or urls...
- ProtocolMissing.com
- www.stillNoProtocol.com
And when I'm out of ideas, something like this
messageContent: 'Bla Bla Bla. Exception in FS on Host https://w.com/hpsa',
{ SmsVerb: 'randomVerb' }, // unknown Attribute5 -
Does anyone keep a journal as they develop code? Something to keep track of ones thought process so that you understand what you were thinking when you come back to it? I know most people just use comments, but does anyone use something different?16
-
Fuck you Jira, for your shitty implementation of the board, which causes written comments in tickets to simply disappear.
You clicked on another comment during edit? Say goodbye to what you have just written!
You clicked on the send button to send your comment? Well, many things can happen with our overcomplicated pile of shit that we call Jira. So, your comment might get lost. Fuck you. We are complicated. This shit can happen. Deal with it.2 -
bug comment in the tracker, from the new junior dev, during her first week:
"probably fixed by [other dev]".
Among the unhelpful comments, this was a special gem. really special. a What the Fuck did you mean by that special. Was it fixed or not? who fixed it? [other dev]? someone else?
it was better not to have any comment at all.
later that junior became a really good dev... -
Hilarious comments check it out on the cancer (stackoverflow.com) 😂
https://stackoverflow.com/questions... -
It's so frustrating when libraries just give you a hello world example and you have to figure out what the fuck it does. No comments, no nothing. Then you go read the documentation, and find out they have topics for everything, but nothing explaining how it all comes together. They give you a hello world and then you have to figure out how the damn thing works.
Now I have to watch YouTube tutorials which will probably all use fucking Spring Boot and extra libraries. I just wanted a barebones example, is that too fucking hard?
EDIT: maybe I should take a break from this thing -
If you have any project (personal or not, doesn't matter) that does not have proper code comments and documentation and you don't want to make one because of the effort (maybe even "wasted" effort), think again. When commenting on a wall of code to say what it does, you may find a better way of doing what you have to do, possibly increasing performance, or improving security.
I have been able to do better input sanitization for a method on a personal project of mine because of this.
Don't use the amount of effort for proper documentation as an excuse not to make one.2 -
I don't want to start any wars in the comments, but what do you devs prefer: iOS or Android?
I'm not saying one is better. I'm just genuinely curious what other devs use. I prefer to use Android because I can do more with my phone.
I'm actually curious what most of you use, so feel free to tag other ranters you know in the comments. I've already commented the few I could come up with off the top of my head.15 -
Genuine question, what was the most comments you've left in a single code review?
Just reviewed pull request submitted by a developer working for a contractor company and needed to leave 70 comments. Seventy.
Opened LinkedIn and saw a post from that same developer saying he left the contracting company an hour ago. I still can't believe it.14 -
Am I the only one who heavily comments their code when learning a new language to the point of you essentially describing what everything is and how everything works6
-
If you can see yourself experimenting with an early alpha programming language to provide feedback and perhaps contribute, what feature would you expect from the get go? (Up)Vote in comments, add if missing24
-
!rant && POLL
A lot of people are asking for poll feature. There have been many debates. While reading those, I even thought we should probably ask a debate feature before poll.
Anyway you can actually create poll rant. Just gotta be creative and a bit organized like adults (hope we all are).
1) you ask your poll question as rant
2) you enter your poll choices as comments
3) people ++ their favorite choice comment (s)
Of course this is not a poll-poll feature so there are many lacking functions. But at least it works to certain extent.
Eg Question : What is your OS?9 -
I wonder what would happen if someone trains a chat-bot based on Posts and Comments on Devrant? a Psychopathic Chatbot?3
-
There is always a headphone and music to escape from annoying colleague's
<Rant />
Just fucking drop dead, you are a fucking piece of shit. You say what you think and you only have comments on my work!!1 -
I read the source code of a guy who decided to name his variables, functions, and comments in Spanish which is not a language I'm familiar with. So I need to first translate the code into English and then understand what it does.1
-
Hello all,
I am .NET dev for a while now and web development was mostly my area of expertise. Lately, i got a bit bored with all this and as a passionate gamer, i wanted to try out game development in unreal engine. Naturally i had big plans and went for big PC game but soon realized what enormous task that is. That's why I decided to test myself with mobile games first. Here is the link to my first game created :) https://play.google.com/store/apps/...
If anyone is interested in checking this out i would like to hear your comments and remarks.1 -
My C# teacher. From all the beginning CS classes that I have taken she is the only that I really respect. She took the time to teach us how operators work, took the time to teach us Pseudo code, and made us code using just a pen and paper. I bought my laptop (instead of a desktop) to code along her in classes. She would ask us how to solve something. Gave us like 5 min to think about it, and then we would answer it, and she would translate our solution to code making comments for us to fully understand what was going on.2
-
Love writing comments, hate writing documentation.
Ugh, I know it is needed but just don't care about it as much as the code/comments which is a more direct 'here is what this does' approach. Writing idiot proof documentation sucks. Any little change? Have to remember to update the docs. Yeah, not happy.1 -
Most days I'm in the office 2 hours before any of my other colleagues show up for work. So I turn up the music and just get to work ...
I hate it when those colleagues then come in and immediately make some snarky comments on my choice of music (which can be anything from Death metal to Vocal Trance and even Classical) but when asked what they'd prefer instead of my music, they can't/ won't come up with an alternative ...6 -
We had a production outage directly caused by our team not following a change procedure correctly. Now we're under a microscope and in a "get well" program.
They took over the daily standup for this high priority program and are organizing efforts in confluence instead of jira.
Now we have a confluence doc of what everyone is working on with someone changing the text status in a table by hand every morning along with the comments in a note section...3 -
Gotta love people. Recently I finished a small program to check the timetable because the predecessor app died. Make a release, get the link, send the link to the FB group (I don't use FB much anymore). Some likes, some comments, some shares, some bugs, nothing awful.
IF IT'S NOT THE 20 COMMENTS GOING "WHAT THE FUCK ARE YOU A WEABOO TRASH?" because of __BOTH__ my GitHub pfp and FB pfp. God fucking dammit why can't you just ignore the pics and click the damn link like normal people do?? NOPE! NOT GONNA DO THAT UNTIL I SHAME THE DEV TO HELL FOR LIKING ANIME GIRLS!!5 -
TL;DR: if you are using using react native, use uglify-es@3.2.2, any newer version might break your project
I wonder how many react native projects the boys at Mishoo fucked up, mine included.
I spent 5 work days to find an unrelated issue on RN's git which had the solution to my issue in the comments which was totally different from what was being presented in the issue.
Fucking aye.
I love javascript, but packaging really is its downfall.1 -
At the risk of starting a riot. What is your preference?
// space before comment text
//or jammed up next to it?
// Furthermore, do you capitalize your comments?5 -
feature request / rant: there sbkukd be no posting new rants unless you have a minimum amount of +1. Maybe it's 10, or 25. but I've noticed the vast majority of people posting repeated memes, gifs, and overall irrelevant stuff are people with 0-5 +1. they should be required to post comments and be around for a bit to understand what devrant is before clogging up the feed.8
-
I started working on a multiplatform mobile app for streaming and I already decided to implement it in react native using cause I found already the tools that I needed, I was curious about if I could do the same in flutter without having to write my own custom wrappers for each native app, and I found this question response and I just couldn't stand the comments, how is that someone can proudly say that he doesn't know how something works but he just copy and paste some scripts from the internet?
What kind of programmers are these now days??
BTW #firstPostHere2 -
I've finally got into the habit of writing descriptive comments in my code. I've always just got so into the coding and comment later when I don't know what the code does anymore xD1
-
Not the worst, but deserves a mention due to how common it is.
Say your whatever object has a method called Configure. You can infer a lot from the configuration parameters or type that it takes, but for whatever reason something is unclear or doesn't work.
Tooltip from xml comments: Sets the configuration.
Official guide: Sets the configuration <br />.
Technical API reference: Sets the configuration.
I would create a support ticket explaining how this is unclear if I wasn't half expecting the suggested solution to be "you know what I mean".2 -
After I have been using tabnine and Grammarly for quite some time, I thought I follow this years' hype and give GitHub Codepilot a try, before eventually considering chatGPT.
Added Copilot to my IDE, proceeded to extend behavioral test descriptions in JavaScript.
Copilot suggests the most redundant and irrelevant inline comments I can imagine. They would be a legitimate target of criticism in every code review.
Wasn't it supposed to add some code that's actually useful? Well, tabnine and JetBrains IDEA annotations already did that anyway.
What did I miss?2 -
Yo @dfox, I think we all know what devRant is missing. Some good old img/gif comments for all our meme response needs5
-
I thought this morning as I thought about how I on my personal projects consistently leave filterless comments that I could make a site called goth coding. And write a language spec that is ridiculous and silly with comments like “and i labored away my last inkling of happiness bled away doing mandatory overtime to write this wretched fragment of code future generations will discover and ask what perhaps became of me”3
-
Raise your hand if you don’t trust the comments in code most of the time, and take at least a superficial look at the code block to ensure that it does what it says it does.
If you have any exceptions, please share.12 -
What would you use for building the baclend of a moderately complex web application that probably will have a small userbase?
Ruby on Rails
Django
ASP.NET Core
Spring/Springboot
Node.js
Deno
If what you would like to use something else that is not listed feel free to tell about it in the comments19 -
Not being allowed to post comments on this page for seemingly no reason is the equivalent of invisible walls in video games. I didn't even receive a fucking error message, I had to go to devtools, only to find "You can't post a link in your comments yet.". What do you mean, my comments? I wanted to suggest DaisyUI to some bloke but I guess, I will just try to find the exit for this level then before I can get to the one 2cm behind this wall, in plain sight and no reason not to give me access to it now and no explanation anywhere (cannot wait to get RTFM comments with a link to some about page).
Greetings, I guess, I was only here to lurk and comment but the page won't let me.4 -
I think today makes a new record for the number of times I have muttered "What in the actual FUCK is going on with this stupid WordPress plugin/theme/database/etc.?!"
I know. I know. I chose this life. It's my own fault. Don't bother with the anti-WordPress beatdowns in the comments. I've heard every. last. one. and I'm too old and too close to retirement to want to start over again with something else.3 -
!rant
In my team, I am not allowed to use ANY comments except for the really lengthy classes in the backend.
Thus, the code of the whole project (a complex webapp, consisting of 20-something Django projects and various services) is basically undocumented.
The slogan sounds "good code doesn't need commenting".
Seriously, fuck this and all of the times I scratched my head wondering "what the fuck is this spaghetti about".
Have any of you encountered something like this? Usually people don't want to comment, I would do it gladly but can't even make a small inline about what complex method is exactly doing :P3 -
Why is there a - 1 plus option? Just listened to a podcast by stackoverflow where they explained how they removed the down vote option on comments out of the idea that you cant be wrong on what you think..
Just throwing an idea5 -
Question: is it common for lead software engineers to mostly do paperwork or is that just a quick of my current program?
Where I work it is very common for those titled "software leads" to be almost completely hands off the software. They deal in hiring, fielding user comments and commitments, and scheduling. I would like to be a lead but I was always under the assumption that dev leads had more of a design and/or architect role. Sort of a big picture thing rather than middle management which is what this feels like. -
One of my student ask me this. I dont have exact answer so i decided to take help professionals here and based on their experiences i hope they can help him and many people who has similar questions.
Is it necessary to have graduation from USA to work in USA Or canada?
What are the possibilities to get an internship or job in US market without having education from USA?
Please comments.18 -
Pressing Ctrl+C shouldn't overwrite an existing clipboard entry that has just been created by pressing Ctrl+C immediately before.
Who thought it was a good idea to use copy + paste shortcut keys exactly next to each other? Some people's muscle memory does not work with such a fine subtlety.
How much working hours, days or even years must have been wasted by people using productivity software accidentally losing what they were about to paste from their clipboards?
Anticipating the first comments, yes, that's another kind of first-world problems affecting people that spend too much life time doing stupid office work on a (German) (PC) keyboard, but here we are, procrastinating on devRant ant wasting even more time.
Antipating even more comments: why am I using a keyboard to work in a German train on a sunny Sunday instead of relaxing at a lake or a swimming pool instead? Well, at least this train doesn't seem to have a pool. More luxury problems for me.3 -
I want to slap the previous devs on my team. Not the current ones, the previous once.
I don't need a comment on every. single. line. of. code
//verify thingies
if(thingies != null && thingies.count != 0) {
Like my god, i can read the if statement to know what it's doing, goddamn.
Comments should only be used when doing something that might not be immediately obvious to the next dev looking at the code.8 -
How do you balance what your boss wants, and what the client wants?! 😣
We had design and requirement discussions with clients and they said they want method A.
After doing internal design review and writing up documents, client agreed and sign off on it.
However, during last moments of development, I encountered a minor issue in the design and brought the team together to discuss about it.
Boss went on about how his idea, method B would have been better and is what the client wants, etc. Mind you, method B is quite different from method A that clients want.
I explained to boss that his method is different from what the client wants and also what have been documented and signed off.
He told me he doesn't need comments of such from me and they can always tell the client that method B is better and should be the way.
I feel so fucked because we are currently rushing with only 2 days left in our deadline and there will not be a bonus if we are late.1 -
I'm in the middle of my exams.
My thoughts go - Work! Keep the fucking As up!
My actions - setting up public dotfiles with more comments than config lines, messing with DevRant, doing pre-calculus (matrixes, complex number shit) from 9th grade
Then had the English exam and realised that I'm fucked.
Again, fuck.
But now it's a Friday!
... And I have 3 major exams next week. I NEED to study for them.
I can already guess what I'm going to be doing during exam study time. -
!rant
I tend to do a lot of sketching and note taking and like to use pen on paper. But sick of tearing out notes and accumulating bits if paper that contain notes here and there. I was thinking of going digital with this specific task (for cheap) i don't own an ipad so was thinking of getting a Fire HD 8" and a Boxwave EverTouch stylus. Im all Apple so don't know android, would this hardware do the trick and what would be a decent note taking and organising app for it? Appreciate any advice comments. Other uses for it are irrelevant.5 -
I always enjoying snacking on some popcorn while people argue so, what are your thoughts:
Comments in your code - good or bad?4 -
Ok, so i havent been coding in a while, but now i have somthing rant worthy!
So i was helping a project and THERE WAS NO FUCKING COMMENTS, I mean what the shit! Atleast add some comments its as easy as typing //, what has come of this world?2 -
I downloaded Hive from Vault 8 and got latest thinking I would find some neat things; here’s what I have learned so far:
# Reading others people code is hard
# Code you don’t understand looks “normal”
# No one comments
# If you want to do something cool it has to be in C++ with Python make scripts
Has anyone else looked at it?1 -
Love it when there's only one SO question relating to the problem you have, there is no answer, a couple comments, and the person asking updates it saying he figured it out, WITHOUT GIVING ANY INDICATION AS TO WHAT THE SOLUTION IS.
Fucking hell, doesn't happen often, but when it does... 👿 -
Always comment your code.
Write comments that explain the reason for this piece of code existing, and why it's written the way it is.
Don't write comments that explain what your code does (unless it's a comment which is going to be parsed as documentation for an API). If your code needs comments to explain what it's doing, you need to write clearer code. -
I had to rename my unofficial devRant client SwiftUIRant due to some concerns from Apple regarding the term Swift in the app name. 🙄
Well, it’s JoyRant now. 😁
And there is a new test version in TestFlight:
https://testflight.apple.com/join/...
* External links in rants and comments open the URL in the browser.
* Rant links in rants and comments open the rant in the app.
Enjoy testing and let me know what you think about the app! ☺️6 -
After 3 months of working as android dev, startup decides to freeze android work for next 4-5 months in order to focus on iOS. Meanwhile I'm being asked to start doing backend work. Need advices on what to do next. Below is the link to my reddit post and would appreciate any input on the situation.
https://reddit.com/r/... -
Around 1milion lines. Every class is a rabithole with endless depth of implements. Confusingly named classes without comments. 0 documentation. I do not see the chance of ever understanding what is actually going on. Have fun :D1
-
Day 11 of devWholesome...
I think it is very important today to express how much we care about others. Today I want you to do something nice for a friend or family member and tell them how much you care about them. You realize how important the ones around us are and what they mean to you. Tell me what you did today that fulfills that goal in the comments. And as always, make the most out of your day!1 -
Tips on improving ++ to comments ratio? What do you consider a good one? What kind of a ratio is needed to get a decent job and a loving duck?4
-
People have good coding style right up until they use a new language, then it's like they're back at uni. Having to explain basic things like good names or what should be a member variable, don't add comments like "sets variable x"2
-
I hate when programming books have shit code examples.
Just came across these, in a single example app in a Go book:
- inconsistent casing of names
- ignoring go doc conventions about how comments should look like
- failing to provide comments beyond captain obvious level ones
- some essential functionality delegated to a "utils" file, and they should not be there (the whole file should not exist in such a small project. If you already dump your code into a "utils" here, what will you do in a large project?)
- arbitrary project structure. Why are some things dumped in package main, while others are separated out?
- why is db connection string hardcoded, yet the IP and port for the app to listen on is configurable from a json file?
- why does the data access code contain random functions that format dates for templates? If anything, these should really be in "utils".
- failing to use gofmt
These are just at a first glance. Seriously man, wft!
I wanted to check what topics could be useful from the book, but I guess this one is a stinker. It's just a shame that beginners will work through stuff like this and think this is the way it should be done.3 -
My manager, while apparently trying to blast us over taking too much time to understand a product (that no one in the team knows about completely):
I don't understand why you guys don't understand the severity of it. How will you support the product if you don't even know it? There's no comments or anything also, just code! You guys should be able to grasp it!
I'm sorry, what now?
(The part about no comments is true, by the way) -
UNOFFICIAL DEVRANT CLONE JAM - VOTING WITH CRICKETS - DAY 2
I see that nobody is leaving any comments on hackathon entries. It is troubling, because there is no telling if you approve the app behind the post or not - even if I were to collect all upvotes through myself.
Please give the feedback to our contestants in their respective rants! What it takes to make a "devRant clone" or there should be something else entirely? How do these clones look to you, which gets the most points?
Yesterday, @ostream has left the competition by removing account from devRant, but, hopefully, we'll see him again on the next hackathon. Now, it's only @retoor and @SidTheITGuy. They will clash for the right to get a cool animation of their devRant self. You vote can affect this.
Finnegan (by @retoor): https://devrant.com/rants/9946268
ragedev (by @SidTheITGuy): https://devrant.com/rants/9946238
Leave your comments in respective rants. Read the rules and vote for as many as you like!2 -
I hate doc comments in Rust. They are literally just markdown without any special syntax for documenting stuff. What the actual fuck. Why can't everbody just straight up copy how javadoc does it 😭4
-
So, I made this: https://github.com/PythonTryHard/...
Aside from the JS code that may trigger the JS devs, I think I did good. Maybe a bit too overboard with the comments.
What do you think guys?2 -
What is good practice for giving recognition to some ones tutorial/project when using elements in your own project?
F.i. I would like to demonstrate I gained certain skills, hence created a github project based on some vids/forum/else. I tailored the code to my own preferences, but the foundation is based on someone elses project. I am now listing these inspirational sources in the readme or comments. But is there a general practice for this?1 -
Any good advice for managing junior developers?
In my experience I have found that loose definitions of work to be completed yields poor results. Honestly, sometimes I wonder if I have to write the code structure and leave a bunch of TODO comments for people to fill in.
Or alternatively people get going on tangents without thinking of the concrete problem given.
Or go try building generic abstractions that are unneeded and will not be reused complicating even the simplest use case.
Maybe the problem is in me and that I am not clear in communicating what's needed. What techniques do you guys use to get more or less what you want?7 -
Today i saw a discussion in some facebook comments if js/php are programming languages. What do you mean? Would you describe these as a programming language? Any why?11
-
Whenever I reach the point where static analysis can't help me any further I always feel a sort of thrill mixed with terror. This is the real deal. Until now the problems were easy to find, the questions had well defined answers to choose from, the rules were universal. In the part of the logic that cannot be checked, the invariants upheld manually, where the best the type system can enforce is for the programmer to clearly state what they're doing, lies the real beast. In proofs commented on functions or invariants as logical expressions over plain English variables written in the doc comments of a struct.
In the blurry and pompous future I imagine for software development, that's where the programmer's time will be spent. Once we all agree on what a string is, what it means to depend on someone else's code, and what parts a UI should be made of, all a developer should have to do is make decisions and derive proofs an automated deduction engine can't do on its own. -
Just curious, how many users does devrant have?
How many active commentors/posters?
What about posts or comments per month?7 -
#get unique images ids
images_ids = np.unique(images_df.index)
Dear developer who wrote the code I'm looking at,
thanks, I really need comments like this one. I was wandering lost in 1500 lines of code, looking for an explaination of what the actual fuck the code is doing, and there I see you, comment. It's not like I want to know what the hundreds of lines functions do, who cares about that. What I needed to know, what shed light on this dark forest, is what the numpy functions do, because as you certainly know dear developer, such functions are really hard to comprehend, lacking of documentation.
Thanks.2 -
I tend to write with long variable names instead of using too many comments to explain what i am doing in the code. Is it wrong?1
-
Semesters about to end. The group project is coming to a close and I'll no longer be a TA since internship next semester. I'll finally have time to go back to my projects
Let's see how disgusting my code is after not looking at it at all for months
Let's see how little the comments help me remember what i was doing in each project5 -
New on the job. Got assigned to a project a former employee didn't finish, thousands of lines of code with barely any comments or uninsightful comments.
Is this what being a developer is like?1 -
!rant
there's gotta be another drunk post of me now sores
What I love about devRant aren't only the rants but really the comments. In almost every rant the comet section is at least as funny ass the rant it self. This shows how awesome this community isch.
Don't drunk as much as me and I really do.enjoy being part of this aesome part of the interwebs.1 -
@dfox why do some of the older rants display the date on the rant but then the comments are older than the rant itself (for example, the rant say 22/09 - or 09/22 to you - and the comments say 16-09. But most of the comments I see say 16-09). What did you guys mess up 😛2
-
Purpose of Slack: communications (I suppose)
What management uses way too many channels for: updates of ANYTHING anyone does on Jira or any pull requests created on GitHub
What would be useful to get notifications of, such as PR comments, isn't there
I'd like to get notifications of when *people* talk to me, as I like to answer them promptly, but these stupid automated updates on Slack just makes me mute whatever channels they're setup in -
When comments find their way to class tests:
“TODO: Finish conjugation of montre in the whole text”. I had no idea of the conjugation and finished under time pressure so this stayed in the class test (gave it back last second) and I was well aware of it.
Just wondering what the teacher must have thought. Didn’t say (or write) a word about it tho.
Should see if someone tweeted or posted this (I mean someone wrote a book only with examples of stuff like this)
Idk, I should ask if I’m allowed to write class test in an IDE. And set MARK, TODO, etc. Would make them a lot easier.30 -
Any android devs here? I created a simple interview tech assignment app with 2 screens (item grid and item details) with latest architecture (Compose, Retrofit, Coil, Room). Looking for a review or any kind of feedback/ideas regarding what needs to be fixed/refactored. Repo is here: https://github.com/appdevv/DemoApp
If you want, feel free to pull the repo and just make a pull request with your comments.5 -
Should rants contain a message/lesson/formulated statement, or fo you consider rants a venting mechanism?
Out of curiousity, since I see some people in the comments asking what the message/constructive idea is on some posts1 -
When people use comments for build configuration. And don't put down handy comments like "uncomment this if you want to do that".
I guess what I'm saying is that this "code cleanup" task is turning into a "code keep the bloated baseline" task.3 -
What is the point of https://pusher.com/sessions ? It's just like youTube, but with no ability to comment. I think the conversation in the comments is half of the content for developer talks. :/
-
@dfox Can we get a sorting option for rants/comments on profile pages? Or at least some way of determining what rant/comment has the most ++s?7
-
Poll: What OS do you use for development? If your os isn't in the comments add it, if it is ++ the comment mentioning it..16
-
Are most of the Application Backends written in Java ? I have heard JEE is the enterprise standard.
What about this node.js thingy, does it actually compete with Java?
Java Pros - need your - comments6 -
Please excuse the "photo of my monitor" picture, but it really was the easiest way to do this...
So, I'm finally getting around to that to-do list item of wrapping my head around Nrwl Nx workspaces, and I stumbled onto this little gem: https://itnext.io/easy-typescript-m...
I didn't take long for the "what the fuck" moments to start cropping up, and then I decided to check what comments might have been left on Daily.dev regarding this one (see attachment).
THAT little nugget there is what led me to the ultimate "what the actually fuck" moment, which is only truly appropriate for DevRant..
Create an Nx workspaces, only to initialise a project with `npm` directly, using a path under a new `libs` folder, next to the `packages` folder, only to build the library, and literally install it into the Nx workspace's `node_modules` folder, b order to import it into the app that exist in the same workspace.
So, seriously.. like.. WHAT THE ACTUAL FUCK? What is this guy smoking?? I need to know so I can stay the fuck away from it! Wow. My brain hurts now.7 -
What frustrates me 'most' in coding is, putting comments...🙄🙄🙄
The frustration seems to go more than the 'most', when I don't find them and wonder, what the heck! 😠😠😠8 -
Be me. shitty front end dev intern. React god.
boomer tech company using ASP.NET MVC frameworks. Hey energy-vampire, can you make us some sick react components???
sure.
get sent giant mvc repo. I've never used it. no documentation. no comments. nothing. just a fat app.
why do companies do this? I literally had no idea what to do with this thing. went to main guy and he had to build a .sln project, link it to some other project, setup an appsettings.json file, import secrets, and then build.
how the fuck would I know to do that???9 -
Today, we can edit comments or post upto 5 mins only to maintain the flow.
But would it make sense to be able to amend comments and post anytime and east way to see publicly the history of edits. This will serve the original purpose while correcting cosmetic changes even after 5 mins.
What do you people think?5 -
UNOFFICIAL DEVRANT CLONE JAM - VOTING START - DAY 1
3 entries were submitted, and we're ready for your feedback! It is exciting to know what your votes say about the work needed to supplant devRant. However, considering the sudden announcement of hackathon some 10 days ago and very short sprints, we get what we get.
2nd place nominee gets their devRant self in all vector beauty. Of course, it's not the exact style, but it's something resembling and with objects separable from each other! The winner gets an animated version.
You are welcome to familiarize with all devRant clones that our participants have made!
Finnegan (by @retoor): https://devrant.com/rants/9946268
Ostream App (by @ostream): https://devrant.com/rants/9946296
ragedev (by @SidTheITGuy): https://devrant.com/rants/9946238
Leave your comments in respective rants. Read the rules and vote for as many as you like!2 -
Heres a rant: Why do comments not show on my ++'d (Oh I see what you did there, clever) posts? I ++ comments wayyy more frequently than full rants, weird design choice.3
-
Is it too much to apply these notification settings to in-app ones also, the list you can see by pushing bell button. I don’t wanna learn who ++ed me or new comments.
I know we can mute rants manually but it is an extra manual effort. Auto-muting all rants i touched except direct mentions is what I really want.4 -
Feels good to work at a new company again, but i miss the feeling of learning new things and the challenge i dont know if im just rushing things too fast or what. I want to learn more things in a much faster pace, am i being to impatient?
Need comments about this devrant community.
Thanks1 -
I want to run a theory by you regarding unit tests.
They make up for the time they cost to implement in the long run, no doubt, because when you're refactoring you can easily check whether you broke something.
But: what if you've got integration tests covering almost the entire codebase? For those to succeed the unit tests must succeed as well. So therefore imho the unit tests are redundant.
The only advantage of also having unit tests seems that they can pinpoint the issue more accurately.
Any other advantages? What am I missing? Any thoughts/comments?9 -
!Rant
#serious inputs needed
I need help identifying that one big problem that all devs face. Irrespective of the language, domain, etc.. And I wanna solve it. I need your inputs on what bothers you the most, and what tech you work with.. Then we can upvote the comments that are applicable to all of us.. I'll setup a github once we come to a conclusion2 -
Day 10 of devWholesome...
Happy monday everyone! We are nearing thanksgiving this week as we prepare for the holidays. So with the theme of thanksgiving, lets think about what we are thankful for. I am thankful for all my friends and family that support me and love me. What are you thankful for? Leave your response in the comments. And as always, make the most out of your day!random slightly broke the embed generator again wholesome devwholesome thanksgiving positive happy great day thankful gobble gobble -
I ask what i think is an interesting question i havent been able to answer on software engineering stack exchange ("why did the original Basic use the caret for exponentiation"). Even said "no subjective answers, please provide a source" in my post.
Result: a bunch of comments saying it "because it looks like an up arrow", comments saying I'm rude because i said no subjective answers, and a bunch of downvotes.
Did eventually get a good answer though. The system works.2 -
Been playing a Skyrim modlist (Living Skyrim 4) with a ton of mods in the game. I have only small idea of what mods are in there. My first quest from the Companions was to beat up a pot grower outside Whiterun. Then later on I ran into Jarl Marx. All he did was criticize me so I killed him and enchanted his clothes with Fortify Barter.
https://reddit.com/r/skyrim/...
This modlist has been a lot of fun.1 -
Have a freelance job where they require documentation of the code for later development. (+ I'd like to document my personal projects for practice)
Any web devs that could give some pointers on what kind of docs you would like to get if someone hands you a legacy project?
Obviously: comments in code and db structure and relationships1 -
So I'm interested in building a Raspberry Pi stack at home to continue securing and adding my smart home capabilities, 👍
Have ideas for 2/3 but what else could I look to add?
1. Pi. Hole with cloudflared argo proxy for all DNS
2. Home Automation server
3. IPS / IDS like Bro or snort? Or firewall like pfsense?
4. Log server with Splunk agent from other pi's and router....
5. What else?
Ideas in the comments -
Just made a damn fool of myself with a client. I handed off three projects and they had no idea what they were for and neither did I. My boss gave me these months ago. No code comments, no documentation, just some stored procedures they wanted me to actualize.
The best I could offer was to promise the client I would send a description of the projects to them as soon as my boss gets them to me. Fuck. I thought the client would know what they asked for when I showed them, but fuck me, they didn't remember. So embarrassing. 😡😡😡 -
I'm starting to feel like coding is too much boilerplate all the time.
I've been thinking about why, and I think (and I'm trying to sound humble here) it's because I'm usually honoring the SRP. But this entails this enormous drawback of enormous amount of code!
Don't get me wrong, I'm usually glad with the design I end up with .... but only after what seems to be hours of typing
Anyone recognize this problem? Suggestions, comments?1 -
when creating subtasks for my jira tasks, so PM can micromanage me better, i never know if he will criticize it for being "too fine granular, just write it in the comments" or for being "not detailed enough". also, on the one hand he criticizes team members for not having meaningful comments (e.g. "writing documentation"), on the other hand, he criticizes people that he doesn't know what they are doing. also, not to forget that i shouldn't have more than one task in progress ("it should be transparent what you're currently working on"), but then he randomly decides to set one of my tasks in progress even if this breaks his "one task at a time" rule. but i guess it's okay if he does it, because he's boss.
i honestly have no fucking clue how to please this guy lol4 -
Nothing like code review and have to read the novel that is the comments on the merge request to understand what everyone's issue is with this one doc block. Wtf?
-
Code review time.
"How come this line has been removed? PEP 8 likes to have two lines between imports and the first bit of code"
What I replied: Thanks. I'll put it back.
What I wanted to reply: Go fuck yourself you anal moron, who the fuck gives a shit about bollocks like that. We got fucking proper work to do, so get the fuck over yourself, let the fucking PEP shit lie, and make some fucking USEFUL comments.5 -
Sober me: *stopping working on code fully documented with comments* let's take a break.
Drunk me: * stumbles across still open code* psh what a nerd *deletes comments*
Sober me: * sitting back down* okay where was I... For the love of!
Drunk me is a dick to sober me. Need to lock stuff up better....3 -
This is a legit rant.
What would you ask in a written/online test if you are hiring a mobile app developer, specifically android?
I'll tell you guys what I was asked after I get 10 comments sharing the community's views, so that I don't make a fool of myself.5 -
Is 'Add your 2 cents' a reference to anything because I see it as the placeholder for comments and don't understand what it means?3
-
Was tasked with going over an app that my company owns to see what aspects of it we can use for our next project. So, I checkout the codebase in Android Studio, and to my surprise after going through tons of confusing classes I don't find a single comment! How am I supposed to to figure out how anything works if the previous developers didn't comment ANYTHING!
Now, I'm still fairly new to programming professionally (about 2yrs) but I've learned how beneficial comments can be.
Ugh, now I have to spend the rest of this week deciphering this code like an archaeologist inside an Egyptian pyramid. -
"If we make the changes ourselves, we won't have to pay for the changes!"
"But what if something gets messed up?"
"Then they'll fix it for free! Either way, we don't have to pay anything! I'm friggin' brilliant!"
"Why would they fix it for free?"
"Can't hear you over the bonus I'm giving myself for my brilliant idea."
Found this while browsing comments on Clients From Hell.2 -
LinkedIn is like the Instagram for career dudes, what kind of bootlickery is this?!
some post and comments are just cringe
we know he is a great guy or they are a great company, what is all this poetry for?3 -
I don't know why I can't understand how to use thymeleaf. It's concept makes sense, split an html page into two so you have a header html page made up of code you don't want to change, and an index html page of content you do want to edit. But no matter what it won't fucking connect the classes.
https://stackoverflow.com/questions...
If anyone has experience with this you can take a look at my post here on it, maybe give some input. For now though I'm going to just run a single html file and make comments in my index page. :/5 -
i am so angry, i was trying to play multiplayer on minecraft java, and it won't let me join, its literally been like this for weeks and i'm so angry.
i payed 27 usd and it doesn't even work. like what?
i haven't contacted support yet but i'm about to.
thank you for your time, if you have any advice in the comments, lmk. peace.22 -
What are your comments on this line of thought.. you would always find a younger smarter and a good technician in the market than yourself then why do we require dev in software industry with 10+ years experience. Moreover tech itself changes so rapidly to catch hold off..3
-
What are the thoughts on emojis in comments - especially CSS. I feel like they could be helpful but I would be concerned if it caused IDEs to not work or anything like that.12
-
I have unsubscribed myself from the Apache Spark mailing list but I keep getting emails from them regarding PRs and comments on the repo. What do I do now? Block them or mark as spam?2
-
What if I just make a website called the internet is nasty and let people either leave a comment with 100 characters and can shuffle through the comments to see how nasty the internet can be15
-
One of my clients requested me to add
// comments
in one small project created using ReactJS.
a very small project that just calls a server to send and receive data.
I'm not sure, what I'm gonna comment in the HTML/JSX section :/7 -
Got an idea for a game, started learning Godot engine to make it myself. usually the hard part for me is the graphics, but this time I just couldn't get it past the tutorial phase, so I switched to Phaser.js, the same problem there... then Pygame, and Godot again, and so on...
I usually love the coding part, I don't know what was the problem this time, It could be the fact that I switched from 2560x1080(Windows desktop) to 1366x768(Debian laptop)... Got any comments that may help? -
What are nice apps to learn swift dev? :) I'm tired of all those TO-DO's apps or calculators
I wanna build something that makes me explore the capabilities of the language in deep, not just the tip
I read your comments :33 -
me as I come to new software service:
oo nice site, oo nice comments _ descriptions
.
. . .
bla ... bla .
#github link
okay now I am reading what can we use from this!
now is the dealio of real info, not amusement park -
!rant
Is it possible to delete your devRant account? If then, what happens to the user's rants and comments?
I am asking these because in one of my rants there are several comments of mine point @ other user's comments (that @someprick thing), but the comments I referred to are just gone.
What about the comments being there even if the user deleted his account?7 -
I was given a project to fix and improve a legacy unity VR project I was told was for the oculus rift Now the problems started almost immediately partly stemming from the fact I’ve never used unity before this project was handed to me as my long term TA assignment
And partly from the fact there was no oculus integration in the game at all. it was built for GoogleVr and most of the code the last person wrote consisted of massive sections (25-50 lines) of commented out code and no explanation of what the hell the non-commented parts are supposed to be doing
So long story short. I’m now in a basic unity course, six feet deep in documentation trying to read resources that go way over my head in understanding, and am rebuilding the project from basically scratch (took the assets and saved the c# scripts for reference) and have finally figured out how to at least get the player character constantly moving forward and stream in the WRLD3D environment like the last guy did. Now to get the player character to turn and change direction when the player turns their head with the oculus headset
By the way. WRLD3D is a really cool api thing in my opinion -
I've been working on a project that involves realtime messaging and i intend to also allow the comments count to update in real-time with websocket.
What i currently do is, when a user post's a comment the socket is notified to refresh the posts list page. (But if many users are commenting simultaneously that would be so many updates per few seconds. )
What's the best way around realtime comment-count updates in webapps.8 -
Anyone else get janky scrolling when reading the comments on a rant? I don't know what kinda funky thing they tried to do with the scrolling but it always strongly resists me scrolling down the page.
Anyways, I have to do this in the DevTools console to stop it:
document.body.innerHTML = document.body.innerHTML.replaceAll('scroll','');4 -
Code comments are good and all, but there's a time and a place for them. They're more or less an opinionated free-form version of what code is doing.
In a library, they're good for documentation. However in a platform, it makes less sense. Especially one which is changing at quite a fast rate (though it has matured in recent months).
Dont get me wrong, we aren't doing wades of horrible, unintelligible code. We need to be sure of what happens when we call a function, so we make sure the signature is always correct.
def do_good_things(puppies): # "good things" is opinionated. Say what you're doing
"""give treats to puppies""" # doc string is wrong
pet(puppies)5 -
As the winter months approach I've been thinking about freelancing. I decided to setup a website( jQuery!) with my games( unity, unreal all that shizzle). However what are some tips on getting out there with the website? Should I AdSense? Or should I go and advertise on Reddit( post on subreddits). Or contact peeps directly asking if they need my services( how do I know who 🤔). Or am I missing something?
Please tell me in the comments below -
Me and @asafniv cannot settle this argument and we need your conclusion.
What syntax makes more sense, Objective-C or Swift?
In my opinion, Swift's syntax is better than Objective-C, but Asaf's opinion the the opposite.
We failed to settle this argument and that is why we need YOU to give us your opinion.
In the comments I will send 2 identical functions, one is written in Objective-C, and one is written in Swift.17 -
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 -
For those who are on my team, arguing on not putting comments in their code:
How much ever (un)readable your code is, any peer / reviewer / future team member can only understand what that code snippet is doing, but not why was it written in the first place or what the hell you were thinking while writing that logic. So, it'll be awesome if you write that as comments or at least link to the story/design doc which warranted that code.3 -
Newbie here ! What do experience pro grammars think of the recent wave of “OOP is garbage” comments on the internet ? Is OOP truly on the decline ? Or is it that OOP should be a feature of a language while coding rather than a “everything is an object” mentality.5
-
Is it better if my code has 0 comments or 9999999999999 comments as in, literally commenting every single line of code, explaining exactly what the variable is used for, method etc?11
-
I am looking to develop an app to take advantage of the bluetooth technology in fitness bracelets. I have a few ideas but no starting point. I can code though 😅 but I'd like to know what concepts I need to know, what open source fitness app code I could look at or anything I need to be aware of before I begin my ambitious (life changing) project. I plan on using an oraimo tempo C smart bracelet for my project. Any advice, comments and discouragement will be highly appreciated 😊
-
This morning on devRant is an example of Zimmerman trying to make me insane
With his delusional comments about the supposed meanings of what the number of notifications I have is
Which by the way suddenly did balloon2 -
What do you guys think about dopamine driven feedback loops of social media. Getting likes comments on the post gives you dopamine hit making you contribute more content!?!!! People are now willing to pay(to do anything). Beast is getting feeded!?!!1
-
Check out this video on the soft pneumatics aerator, the cornerstone of soft robotics technology. Can robots develop and train human level senses? I think so, but what do u think? Comments! https://youtube.com/watch/...2