Joined devRant on 2/25/2017
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
I'm curious: For those of you who have tests running in CI pipelines at work:
How long does it take to run the tests, in relation to the system's size?
At my company, it's ~ 30 mins, testing 1M lines of code (750k SLOC) written in Java (85%) and JS (15%).7
I had written a feature that stored some data for all methods in a code base. And it worked in 99.9% of all cases, but for some projects, somehow there were errors in the logs that I couldn't understand.
After hours of debugging, it turned out that I inserted the method objects into a map, and the (existing) base class for these objects used the character offsets for the method's start & end in the hashCode() implementation. This meant that in the (extremely rare) case of two methods in two files with the exact same start and end offsets, inserting them into a map would overwrite the previous value.
Once uncovered, this bug was trivial to fix ;)
Argh, why the hell does Visual Studio not have a god damn LOCAL HISTORY for files (not just a VCS history) like any other reasonable IDE? Heck, even Eclipse has a rather decent one!
Now, I've lost the work of one hour due to an accidental reset, and there is no way to get it back!
Fuck you, Visual studio!
In case of emergency:
1. git commit
2. git push
3. Leave building
> Failed to push some refs. To prevent you from losing history, non-fast-forward updates were rejected. Merge remote changes before pushing again.
From your experience, what's the most inefficient (IT-wise) industry you encountered?
I'd vote for IT in hospitals (at least here in Germany), it is really a PAIN to watch. My wife and I needed to give our data to three different departments when signing in, because nothing is shared across the stations. And when they did a (fully digital) ultrasound of our little baby, they had to freaking PRINT the images and re-enter the results on a PC in another room, because there is no connection. What the heck?!7
I just wasted half an hour of debugging because the NPE-analysis of our tool had thrown some serious-looking errors.
It turned out the client had checked in broken code into VCS 🤷8
Someone awesome was in charge of correcting the official CS exams at our university (blue: student, red: corrector) :-D3
I'm starting a little side project (a web app for finding/booking musicians) and have to decide which language to use for the backend. I have broad experience with Java and C#, but it would also be nice to learn something new (Kotlin? Go? Rust?)
Additionally, what's your recommendation for databases? (SQL vs. NoSQL vs. ...)
For the frontend, I'd like to use typescript, webpack and Vue.js.
Any thoughts? ;)8
To the experienced coders here on devrant: Any valuable tip(s) for newbie programmers (independent of language)?
My suggestion: Enable 'format on save' in your IDE. Seriously, how did I survive without this?!5
Am I the only one who can't take the IT nonsense in TV SERIES (especially crime series) anymore? ANY UI shown on an arbitrary screen looks like garbage! And in addition to the f*cked up screen designs, every damn action of course makes weird beep noises, which would be totally annoying after like 3 secs IRL. How the heck are we supposed to take such BS seriously? This totally destroys so many TV series for me!
(Also, I have to explain to my wife why I'm laughing all the time! :p)10