Details
Joined devRant on 3/1/2018
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
-
Why are all of my Bluetooth headsets saying: "Your device is disconnect?"
When I connect them, they use the grammatically correct phrase: "Your device is connected."
But on disconnects it says "disconnect" instead of "disconnected." Different headsets from different manufacturers and all of them are doing that on different devices.
Is there something in the Bluetooth specs that requires that grammar error, similar to the orthographic mistake in the referrer header?10 -
My private lappy is ageing.
Funny things about modern computers, it's hardly noticeable. At least in performance. SSD makes it start fast. And as long as I am not playing any games, I can do everything just as quickly.
But then, there is the keyboard. Some keys getting annoyingly unresponsive. Need to open those keys up. Oh, and yesterday when I unplugged a USB connector, part of the plastic around the port broke away.
But there is one thing I cannot fix. The screen resolution. It's a 1366x768. And so many applications already don't show up completely. Or I have to scroll. Or they unnaturally pressed together.
i3 is a godsend to deal with screen limitations, but it cannot perform miracles. How did we use screens in the past? I mean, I know intellectually that in the past developers were developing applications on smaller screens, hence they were optimised for smaller screens, yet whenever a modal opens that is bigger than my screen I am kind of amazed this is a thing.
Cannot wait for my new XPS.8 -
Okay. Wow.
For years I was a society's Dum Dum. My fault, really. But I was.
But now, in my early 30ies, closer to mid 30ies, suddenly have me access to universities.
uopeople already accepted me, but suddenly so many others do so, too.
And suddenly I have choice. Too much choice. Computer science. Computer engineering. A bachelor program that is labelled "computer science, physics, mathematics".
And I don't know what to choose.
For years, I was resentful at the academic system that excluded me for reasons that I have to admit were my fault.
Now that I have the required funds and choice and a willingness to spend my next seven years, right into my 40ies in academia, I'm terrified that I chose the wrong thing and miss out on something.
I learned to deal with having no options, can't deal with having so many options.5 -
Okay, I am working on WebRTC. Which is cool. A really cool topic.
If I just were not under time pressure. I need to understand it, implement it, librarise, and school my coworkers on it.
And I just run out of time. This is how stress is born.3 -
Just looked through the man page for date and found this:
%M minute (00..59)
%S second (00..60)
Is that a mistake in the man? Or are they actually preparing for the leap second? But how? Leap seconds are not determined years ahead of time, so it needs constant updating?
I just assume the leap seconds are just ignored. Like, if we come across a leap second, I expected my computer's clock to be a second off and then next time we use NTP, it's just back. And that the timestamp is just without leap seconds. But is there actually somewhere on my computer a counter for how many leap seconds have happened?
Or maybe even a list, exactly detailing all leap seconds and the moments they happened?
I definitely need to look into this... Not now... Need to get back to work... But soon.4 -
WHY PHP?
I know another PHP bashing rant. But PHP became almost good. It is definitely usable now. But every other library or function throws an \Exception.
If I catch it, it completely fucks with my exception that I might want to catch further upstream and if I don't, well the bloody app might crash.
This is a PSA, throw specific exceptions in your libraries. That allows me to write clean code that is interrupted by an exception instead of having return types like this "int|false" and code like this: if (!$this-addToDatabase($value)) return false;5 -
Don't want to read my emails. Because they are too many. Won't read them tomorrow either, because they are even more.13
-
Sometimes there are moments when you feel like having a superpower as a coder.
Had to work with this shitty website. Completely not designed for vertical screens. Scrum board. When using it on a vertical screen, you would have to scroll down for ages to find the last few columns down there.
Quickly opened the web editor. Added display flex and flex-direction row. Looks better. Great. New grease monkey script. Added those commands. It is completely nice to work with this website now. Time investment? Less than 10 minutes.
Sometimes, just sometimes, being a coder is magic and I wonder how normal people are using the internet.2 -
Working the first time with a screen turned by 90 degrees. It was a necessity because it was the only way it fit comfortably on my table next to my two other screens.
But, it's so amazing for reading documentation and for having long terminal outputs. Even if I had enough space, I'd keep it.3 -
Anti Windows your project by doing this:
touch antiwin antiWin "windows?"
echo "take that Windows" >> con
I have not tried it, but I wonder what would happen on git pull.9 -
There must have been a person, a developer, probably in the 80th, that came up with the idea that reflection can read comments, so he can add annotations or if statements in comments.
I don't say we should shoot him.
But we should think about a terminator and a time travel program.3 -
Robert C. Martin. Clean code philosophy changed everything.
Reading code ala Uncle Bob is like a binary search to the place in the code you want to work on.4 -
I am just modifying code I wrote not too long ago. And it becomes a mess. But I know from business, I don't have time to refactor.
I start to really appreciate the open/close principle. But I don't have time to follow it.
Well... That's how it happens. I do it. I know. I really can't do anything against it.2 -
Support for an app that long handed over. This time, a customer is supposed to be deleted. The client probably wants me to delete the customer from the live database.
Why can't he delete the customer himself? Well, the button is disabled. And apparently, he doesn't want to pay for my time to figure out why the button is disabled. Or that's normal, who knows. I don't know the app.
I open up the database. Try to generate a model of all connected tables to the customer table. No luck. The tables aren't connected, the ORM handles relations. I hate that. Probably have to go through and delete all of those manually in a live database. Argh!
Okay, let's see why we cannot just click the button. Alright, yeah, there is a disabled on the button. Hmm... I wonder. Removed the disabled in the web browser inspector and hit the button. Seconds later, the entry disappears from the database.
My predecessors were sloppy. Probably thought it's the admin menu. We don't have to protect our customer from himself.
That just saved me a lot of time. -
The best thing that can happen to a dev?
A 2-hour meeting got cancelled. Yeah!
No backlog tomorrow!6 -
Microsoft servers just right now were the first servers giving me the full speed my connection can bear.
Downloading a Windows ISO in under a minute with a speed of up to 106MB per second, according to Firefox.
Microsoft, this is a first, but you gave me the biggest grin I had in a while.8 -
Homeoffice brought me too close to my customers. Not all of them. One... Constant questions. Constantly. Chat for almost an hour. Had multiple of them already.
Honestly, I had 20 minutes per day contact when I sat in the next office over. And now I do have 4 hours of talking to that customer.3 -
I started to do handwriting again. Because I ordered a writing tablet on which I will take notes. to prepare I am taking notes on a paper notebook for now.
And I realised, I do have the handwriting of a man who writes a lot faster than I do.1 -
My wife and I have the same headset. Not a big deal you might think, but I just ran around in despair for 20 minutes looking for my headset until I figured out that I accidentally put MY headset on top of HER laptop...10
-
Return code 200
{"success":false,"error":"Your comment couldn't be created, most likely because the comment was blank."}
Devrant, that's bollocks.11 -
I am coding in my car. Need to wait for my wife. That's why I am coding in my car. And it goes extremely smoothly.
Vim editor keybindings, vimium in the browser, i3 desktop manager.
Not needing to use the mouse makes this fun. I did not expect that.7 -
I love online studying. I put all videos on twice the speed. At first it's a little charring to listen, but I grew used to it in half an hour or so.
And it turns out, I need to be focused on what I am listening. Which means my mind doesn't wander.
And I finish 10 minutes of lecture in 5 minutes. So far, my test results have stayed the same.
So, if you're in the lucky position of having online lectures, try it. Time safer par excellence.9 -
Servers are expensive! Network equipment is expensive!
I am planning to over engineer my home. Upgrade my network to a professional level. Not because I need it, but because I like server racks.
But they are so expensive.
Unifi Pro PoE Switch 48 ports alone costs around $1000. Another $300 for a decent rack. I have not looked up patch panels, yet. And I bet I will pay another $300 for rack console.
I need a side hustle. Some second income that I can completely use up on my hobbies without having it to explain to my spouse where OUR money went. Basically something that creates the concept of MY money...
Thought of upwork. Anyone experience with irregular freelance work? Good places to find some if I only want to invest one weekend per month or so?5 -
Woke wave rolls over the world. Pronouns are invented left and right. Why aren't they concerned with out well-being, our mental health, us poor fools maintaining i18n files?8
-
I am just not mature enough to be a developer. At least half a dozen times per day I go like:
hehe.. hehe.. pubic function8 -
Virtual reality home entertainment gear is humanity's revenge against domestic cats who have purposefully stared on empty spots on the wall for centuries.1
-
I hate to write clutter comments! Honestly, comment every method is fucking stupid.
If I have a method that is called "getCalendar" that takes as parameter "timestamp: Timestamp" and returns "Calendar", then I don't need to write:
/**
* Create a calendar from the given timestamp
* @param timestamp Timestamp from which the calendar is created
* @return Calendar Calendar returned
*/
I understand why we do that in older PHP versions, in which we need that for IDE support.
I understand why we do that if the javadocs are automatically created.
But that's not the case here. It's just a coding convention and all it does is make me not read comments anymore. Because they are everywhere. The code is often shorter. And I chose the name getCalendar because it already describes perfectly what it does.
There is a time and place for a comment. Something like this:
def getCalendar(timestamp: Timestamp = Timestamp("2018-03-14 00:00:00")): Calendar
Here I'd like to read a comment like:
Defaults to 2018-03-14 because that is the founding day of the company. No timestamp can ever be earlier until we have invented time machines and in that case stop me from writing this comment.
Okay, being serious, a default date that like that warrants a comment. Comments have their place. But when you put them everywhere, I stop reading them. And you just devalued important comments by cluttering everything redundantly.
Oh, and guess what happens when you change what this method does... You will forget to update the comment.
Fuck clutter comments.16