Details
-
AboutPart-time game designer, Full-time React developer at a small IoT business
-
SkillsJs, Scala, C#, C, Erlang, CoffeeScript, Emacs
-
LocationScandinavia
-
Github
Joined devRant on 7/11/2016
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
-
Despite having programmed for quite a few years now, for some reason I keep thinking the filter function's predicate needs to be true for things you want to exclude, not things you want to include...
catalogue.filter(i -> i.quantity < 1)
was what I just tried to do when I wanted to fetch all the items still in stock... Why am I like this?12 -
After only having done linux and web projects for the past few years, our company took over an old WindowsForms program written by a guy who only (poorly) knows C. It's some of the most foul code I've ever seen... And I'm the only one in the company who knows how to write C#...1
-
One of my favourite things in JS is the absolutely cursed shit that it lets me do.
Did you know that you can return anonymous classes from functions?17 -
JS method names I still can't remember, even after 6 years of writing in it:
append is called concat,
any is called some,
all is called every,
contains is called includes
I always have to pause for a good long while or look it up when I need to use any of these is annoying, but my brain refuses to adapt to these names.4 -
Was tasked to write a utility library for work that automates and streamlines a lot of the API related bullshit we use. But it's grown so big that I now need to read my own source files to figure out what the hell it does when I actually need to use it... 🙃1
-
If I had a nickel every time the unit tests failed not because something was wrong in the code, but because someone had messed up the unit test I'd be able to retire early.
I just spent the better part of 10 hours hunting down a bug in some production code only for the test to be wrong because the person who wrote it had mocked the http response incorrectly.
Nothing I did to "fix" the code worked, because nothing was wrong with it...4 -
Got a new job at a fairly large IT firm which deals with large scale business software for customers like the government's various agencies.
The very first job I'm assigned to: we have to strip down this software and make it more general, go ahead and delete everything related to <feature>.
I haven't had time to get to know the product and I've deleted hundreds of files and lines of code from related files...
I have a feeling this will bite me somehow5 -
What makes a good programming language isn't its features, but its build system.
Shit tooling makes for shitty development every time.6 -
Maybe some of you guys can help me out with this.
I'm having trouble using GitHub for Unity with a repository that I have associated with an organisation.
In GitKraken I have to authorise the app for it to be usable with the repository, but I can't seem to find any simple way to do this with GitHub for Unity.
Anyone else here who's had the same issue, and knows a fix?5 -
So I'm basically my family's IT guy, as you'd expect, but this is just pulling my hairs.
My mom's laptop has a weird error message saying something about a corrupt windows update database.
Not wanting to mess the system up, I decided to factory reset the computer and see if that helped.
During the factory reset, windows tells me that it can't delete all files, and that another factory reset might be in order.
Alright, I don't think any more of it and proceed to setup the account on the computer, everything works fine.
Next day I decide to run windows update on it just to see if everything works as it should, the computer restarts and immediately BSoDs on me. Upon reboot the same error from before the system reset pops up again, and I'm back to square one.
Fuck windows and all its constant issues9 -
Wanted to move Visual Studio to a different hard drive
So I uninstalled it and went to install it anew, only to find out the installation location was set to read only.
I then found out I had to run the installer with the arguments /uninstall and /force to force a complete uninstall, thus allowing me to change the installation directory... What the fuck Microsoft?1 -
I wonder if you guys can help, nobody else seems to.
Nine months ago I packed my desktop away because I had to move.
I then turned it on a few weeks ago and noticed a curious problem: the audio and video stutters.
I don't know why this happens.
I tried booting into Linux, and didn't see any stuttering. I went back over to windows and updated all the drivers, but nothing worked.
Last night I did a full system wipe, and re-installed windows without leaving any of the old files.
The error still persists.
I have no clue what might be wrong with the computer.
For all I know it's the hardware that's failing, but I don't have any idea which component in the system is leading to this strange behaviour.
Maybe you guys know enough to shed some light on this?23 -
The worst part about devRant is the inability to explain to non-devs why I'm laughing so hard at something.
This is also the best part.2 -
Hey devs, what kind of headphones would you recommend?
I'm looking for high end, but not completely audiophile grade.
My budget is in the $300-$400 range.
Wireless is preferred but not required.
And please, nothing that completely drowns me in bass :P29 -
Project idea:
Writing something akin to JavaFX or WPF to use with Rust.
A fairly easy to use XML-oriented system for writing run of the mill GUI apps for the desktop -
I kinda feel like venturing into gentoo territory.
Should I do it?
Should I compile every program I want to install?13 -
Seriously OnePlus, stop trying to optimise my battery.
My alarm was ringing for over a minute without me realising it because it apparently decided it was unimportant enough to just silently fade into the background.
Ugh9 -
I've made a Discord group for those interested: https://discord.gg/g2Exypq
Please feel free to join and let's do some live ranting together :P1 -
Why does node-sass have such garbage documentation?!
I've now spent over an hour trying to get a clear and concise answer to how that shit works, and what do I get? This: (see picture)
I don't know what any of that means, nor do they care to tell me.
I don't want to render this shit at runtime, I want it to compile the sass code when I make changes to it so my app doesn't get boggled down by unnecessary background processes.
But nooo of course not.
To top it off, the "easy" electron-compile solution doesn't even fucking compile because all its dependencies are either outdated or 404 on me. 😡
It's shit like this that makes me hate web-style development. Lacking documentation and people who just assume everything is logical and clear from the start. It's fucking not.4 -
Huh. ES6's variable destructuting on objects is actually pretty cool.
var {foo, bar, baz} = obj
Is functionally equivalent to this:
var foo = obj.foo
var bar = obj.bar
var baz = obj.baz
I like it! Makes things simpler.3 -
Having a look at electron again after giving up on it months ago.
I must say, the documentation has improved a lot since then, and it looks---dare I say---intuitive to use?
The electron api demos app is surely some help, but I'm not really all that sure how much it lives up to its name. It doesn't really demonstrate anything, and it doesn't cover the whole api, just small chunks of it.
Loving the event system though!12 -
The single most annoying thing about Rust the language, is that it shares name with Rust the game.
This sometimes leads to some pretty cumbersome workarounds when trying to Google for things in one that also exists in the other.5