Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "code addiction"
I went out of office for a while, and when I was going to sit on my desk, a co-worker said me “Elizadeath, the boss wanna talk with you”. I was concerned, I though “maybe something broke in production code, or they need an urgent code, I don’t know”.
Well, that wasn’t what I expected.
“Elizadeath” she said “I’m seriously worry about you. I saw the plastic bottles our team has collected for the recyling project, and I realized that most of the Coca-Cola bottles came from you!”
Yes, it was a Coca-cola addiction intervention 😂 I’m drinking more water and less coke from now, for my health 😊18
I've got a mini stroke today. My project ended and I got delegated elsewhere.
"It's going to be fine, it's c++, you will find yourself there"
Suspicious, it's a project everybody was staying out of as hard as they can. But hey, it's cool, how bad can it be? what can go wrong with that?
Reality was brutal, project that uses Boost C++ as framework and bjam as builder. Builds with a decent dose of luck, and only under special circumstances, only under one specific version of compiler. No docs, quartet of the code is in Fortran, just to use ancient lisp part which was second qarter. The most senior Dev around does not have idea how it all works. Also everything is inside one enormous try/catch block. Because of the reasons.
That's how people end up with severe alcoholism and meth addiction.8
I'm convinced code addiction is a real problem and can lead to mental illness.
Dev: "Thanks for helping me with the splunk API. Already spent two weeks and was spinning my wheels."
Me: "I sent you the example over a month ago, I guess you could have used it to save time."
Dev: "I didn't understand it. I tried getting help from NetworkAdmin-Dan, SystemAdmin-Jake, they didn't understand what you sent me either."
Me: "I thought it was pretty simple. Pass it a query, get results back. That's it"
Dev: "The results were not in a standard JSON format. I was so confused."
Me: "Yea, it's sort-of JSON. Splunk streams the result as individual JSON records. You only have to deserialize each record into your object. I sent you the code sample."
Dev: "Your code didn't work. Dan and Jake were confused too. The data I have to process uses a very different result set. I guess I could have used it if you wrote the class more generically and had unit tests."
<oh frack...he's been going behind my back and telling people smack about my code again>
Me: "My code wouldn't have worked for you, because I'm serializing the objects I need and I do have unit tests, but they are only for the internal logic."
Dev:"I don't know, it confused me. Once I figured out the JSON problem and wrote unit tests, I really started to make progress. I used a tuple for this ... functional parameters for that...added a custom event for ... Took me a few weeks, but it's all covered by unit tests."
Me: "Wow. The way you explained the project was; get data from splunk and populate data in SQLServer. With the code I sent you, sounded like a 15 minute project."
Dev: "Oooh nooo...its waaay more complicated than that. I have this very complex splunk query, which I don't understand, and then I have to perform all this parsing, update a database...which I have no idea how it works. Its really...really complicated."
Me: "The splunk query returns what..4 fields...and DBA-Joe provided the upsert stored procedure..sounds like a 15 minute project."
Dev: "Maybe for you...we're all not super geniuses that crank out code. I hope to be at your level some day."
<frack you ... condescending a-hole ...you've got the same seniority here as I do>
Me: "No seriously, the code I sent would have got you 90% done. Write your deserializer for those 4 fields, execute the stored procedure, and call it a day. I don't think the effort justifies the outcome. Isn't the data for a report they'll only run every few months?"
Dev: "Yea, but Mgr-Nick wanted unit tests and I have to follow orders. I tried to explain the situation, but you know how he is."
<fracking liar..Nick doesn't know the difference between a unit test and breathalyzer test. I know exactly what you told Nick>
Dev: "Thanks again for your help. Gotta get back to it. I put a due date of April for this project and time's running out."
APRIL?!! Good Lord he's going to drag this intern-level project for another month!
After he left, I dug around and found the splunk query, the upsert stored proc, and yep, in about 15 minutes I was done.1
That moment when you notice that devrant addiction is starting to be a global threat to developers:
Stop devrant immigration
Make code great again
Compile a wall around devrant and let developers write it1
Got an 8:30 class in the morning.
Me: so close to fixing this bug. Just a bit more.
Me: I'll just install SQL and head to sleep.
Me: holy crap what time is it.
Me: I hate myself.1
Coworker called me up and shouted at me for refactoring code. "It might break!".
But his copy paste addiction is sure to make everything more stable, right?
Course, he still hasn't figured out that I'm the tech lead, so I will completely ignore his useless whining, as I have his boss on board.6
I just want to share my very first companion. Haha... This is btw my laptop way back 2011, used it to store highschool memories and silly stuff, if you know what I mean. This is the laptop that I first used the labrynth of directories such as A folder contains A to z Folder and again inside one of those contains A to z again lowered and upper. This is also my partner in coding C++ back in the days, I usually write code in paper and when back to school I used our lab's computer. Ohh and I also have my anime addiction started on this too! One time I discovered the side VGA and connected it to our big LCD screen but by the time I plugged it in, it produce explosive sounds, and my grandpa said that that lcd tv is only for 110v not for 220v. I learned the importance of voltages that day. I just went back and open it to backup my highschool memories and stuff to my external hdd. Ahhhhh memories.3
So I promised myself some down time this weekend since I usually end up working all night and in a blink my weekend is over. I also declined going out for better 'relaxation'. Here's how it's going so far...
>Gets home. Hmmm what should I do I can do anything! *thinking*
>Pours a stiff whiskey
>Trys watching something as well as playing a game, gets bored of each and abandons them.
>Opens a dev newsletter
>Realizes I'm elbow deep in some repo... starting to feel inspired.
>Decides to code something "fun"
>Uses "Well as long as I'm not *working*" to justify his addiction.
I'm really not sure what I did for fun before I started coding. It ruined things by being so damn enjoyable and ultimatley many other things became well... less fun.
This is what addiction looks like.2
devRant = Developer Anonymous. For people who are addicted to coding - the best sort of addiction. :-D
"I'm sterex, and I code."2
I think I might actually have an addiction to code :S. I can't go a day without writing something just get a feeling niggling at me to write even if I don't know what to. I just opened a terminal on the nearest computer to write 'ls' and had such a relieving feeling, this can't be healthy.1
Hi my named bluescreen and I'm addicted to coding ....
Feel like I should be at some kind of Coders AA meeting .....
I'm having a few days off work, this is my 3rd day and I'm already twitching because I've not got my daily fix of coding (wife won't let me near a computer when I'm on holiday)
I've never had any kind of addiction except coding. I feel really uncomfortable not doing anything, coding is my job and hobby.
I normally come on here to rant / read posts but today I'm browsing just on the off chance that I see some code ....
I need help ......6
Fuck my video game addiction. I really fucking want to code, but I've got like 3 games in which I need to progress, or I can't continue playing with my friends, bcs of the skill difference. Meanwhile my pi is sitting there just waiting to get tinkered with. Could somebody give me a god damn tip on how to get rid of this.7
I resolved to spend more time with the family this month, leaving my laptop behind when visiting them for the end of the year.
Now, 10 days later we're all bored of each other and I truly, deeply, and most sincerely miss my beloved laptop.
All I can do is refresh the devRant app, and fantasise while reading about others working on their machines, and posting formatted photos of code snippets. Like some weird, twisted form of instagram-addiction.3
I'm getting addiction sick, I'm visiting my family and haven't had opportunity to use my laptop, I've been 3 freaking days without even using computer, much less coding.1
Okay, so not eating has become a major problem now. This morning when i got out of bed and stood up, i fell backwards in to my bed again. I couldn't see anything, all black. A few minutes went past and i got back on my feet, got dressed and headed to school.
The thing is, a day can go past and i won't feel hungry at all. But i have to eat, but i don't.
Am i the only one with this problem?
Another thing that is happening is that when i get home from school i sit down in front of my computer and start to write some code, hours fly by and there goes that day, no homework done either.
No food, no homework. Only coding. I think i have a serious problem 😂.
On a side note, a few days ago i tasted coffee for the first time, and now i can't resist buying a cappuccino/latte when i walk past espresso house in the morning.
Here's a interesting question, why the fuck did you waste your time reading this? 😂1
(I'm not completely sure of what I'm saying here, so don't take this too seriously)
Settling on a language to write the api for ranterix is hard.
I'm finding a lot of things about elixir to be insanely good for a stable api.
But I'm having a lot of gripes with the most important elixir web framework, phoenix.
Take a look at this piece of code from the phoenix docs:
defmodule Hello.Repo.Migrations.CreateUsers do
def change do
create table(:users) do
add :name, :string
add :email, :string add :bio, :string
add :number_of_pets, :integer
Jesus christ, I hate this shit.
Wtf are create, add and timestamps. Add is somehow valid inside the create, how the fuck is that considered good code? What happens if you call timestamps twice? It's all obscure "trust me, it works" code.
It appears to be written by a child.
js may have a million problems. But one thing I like about CJS (require) or ESM (import) is that there's nothing unexplained. You know where the fuck most things come from.
You default export an eatShit() function on one file and import it from another, and what do you get?
The goddamn actual eatShit function.
require is a function the same way toString is a function and it returns whatever the fuck you had exported in the target file.
Meanwhile some dynamic langs are like "oh, I'll just export only some lang construct that i expect you to specify and put that shit in fucking global of the importing file".
Js is about the fucking freedom. It won't decide for you what things will files export, you can export whatever the fuck you want, strings, functions, classes, objects or even nothing at all, thanks to module.exports object or export statement.
And in js, you can spy on anything external, for example with (...args) => debugger; fnToSpyOn(...args)
You can spoof console.log this way to see what the fuck is calling it (note: monkey patching for debugging = GOOD, for actual programming = DOGSHIT)
To be fair though, that is possible because of being a dynamic lang and elixir is kind of a hybrid typed lang, fair enough.
But here's where i drop the shit.
Phoenix takes it one step further by following the braindead ruby style of code and pretty DSLs.
I fucking hate DSLs, I fucking hate abstraction addiction.
Get this, we're not writing fucking poetry here. We're writing programs for machines for them to execute.
Machines are not humans with emotions or creativity, nor feel.
We need some level of abstraction to save time understanding source code, sure.
But there has to be a balance. Languages can be ergonomic for humans, but they also need to be ergonomic for algorithms and machines.
Some of the people that write "beautiful" "zen" code are the folks that think that everyone who doesn't push the pretty code agenda is a code elitist that doesn't want "normal" people to get into programming.
Programming is hard, man, there's no fucking way around it.
Sometimes operating system or even hardware details bleed into code.
DSLs are one easy way to make code really really easy to understand, but also make it really fucking hard to debug or to lose "programming meaning".7
We have an internal nuget package that wraps up the IConfiguration+ConfigurationBuilder for various .net core console/service apps (TL;DR, because people got creative), and it has a dictionary property for the common sections we use. AppSettings (for backward compatibility), ConnectionStrings, and ServiceEndpoints. If the need arises, I can add methods to return any type of object (no one has requested yet, we try to keep configs dead simple)
ex. var myDatabaseConnectionString = ConfigurationManager.ConnectionStrings["MyDatabase"];
Code review for someone who updated a .net framework app to .net core and they wrote their own IConfiguration wrapper for accessing the appsettings.json file, so I pointed out that we already had a library for that.
In the reply, he said he couldn't use our library because it had an 'AppSettings' property and since his appsettings.json file didn't have that section, he didn't want to cause a runtime exception.
OK, WTF...I even sent him a link to the documentation (includes explaining the backward compatibility part)...why the frack would you think because a property exists and you don't use it, that would cause some kind of runtime exception?
We have dozens of .net framework apps migrated to .net core with zero code changes and no one ever brought this up as a concern (because, why would they?)
Deep breath...ahhh...I respond that not having an AppSettings section in the appsettings.json file won't cause an exception, if you don't have one, don't need it, you don't have to use it.
He went ahead merged+committed his code anyway with his own IConfiguration+ConfigurationBuilder plumbing.
Code addiction is real kids...it's real.2