Details
-
AboutNext-gen video broadcasting with javascript by day. Procedural music generation with C++ by night.
-
SkillsThe latest in web development, mathematics, music, low-level programming and lots of other stuff.
-
LocationMalmö, Sweden
-
Github
Joined devRant on 7/13/2017
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
-
@moortuvivens yeah she does. Haha, I have to try puppets next then!
-
@CrankyOldDev thanks. I know the answer to all these questions, but that's a great reminder anyway.
-
@theScientist I'm well aware, she isn't :P
-
@dontPanic I like your attitude, that's exactly what I need.
...
How do I get it? Haha -
If the info you want to add is so arcane that YOU can't extract the information via code or Google, write the docs for next time you visit. If it's about a process, write a script instead as far as possible, that's better documentation. Never optimize for anyone but yourself, you can teach those who need to ask you to match your level of higher. You don't want noobs to destroy your code anyway. Be senior today, don't wait for it.
-
@philcr in js there are === and !==, for strict equality comparisons. == and != check for truthiness and falsiness. For instance 7 == "7"
-
numGratulations++
-
@greekDev facebook.com/akribisk
-
@Letmecode haha that makes me think of a hydra that needs taming. Code should tell a story, so I like where it's going!
-
Come work with me in Sweden?
-
@Electrux obsessive compulsive disorder. I'm only jokingly referring to it though so don't worry. What I mean with it in this context is simply the ability to place things in great order before moving on. I've found that many great businesspeople just get things working and leave thing rough around the edges. I'm not one of them, but I'm not a great businessman either :) I do believe there is a balance to strike though, don't polish your shit, even if you think you shit diamonds. Prove they are diamonds first, then polish them.
(minor detail, diamonds are accuracy fairly common and shouldn't be worth so much, it's a fake value, but that's beyond the metaphor) -
@devios1 oh, always thought it'd try to parse the string too. Great catch, thanks!
-
@esavier it's just plain javascript, I don't know if you can access the code like that in any IDE. So yeah, I'll have to read the files too. I recently started my project so I'm only glad if anything breaks. Then I can fix it.
-
@esavier running this over node tomorrow then: code.replace(/=\s({. *})/g, (_, cg) => cg)
Never learnt the VIM way... :P -
@esavier ahh, thanks! Direct list initialization is the one I didn't know about.
-
@Electrux game den with too little time and too much OCD?
-
@rubyist haha agreed. Why would anyone do that? Welcome to devRant! :)
-
If in javascript, "if (x === true)" is very useful, and has a different meaning than "if (x)", i.e. "if (x == true)"
-
@uniquesmash it's more to read so it's worse
-
@devmg unless of course sane is an instance of a class that has overloaded the equals operator so that it does something which may cause side effects
-
@boss I guess compilers would optimise that to
while (1) {} -
This may seem silly but I try to avoid if-statements. Often there is actually no need to use them, as you can index into tables or make function calls instead. If you do that you can cache results and only recompute values when necessary. If you are not computing values, then you are instead relying on side effects, and although there are times when it's necessary, I've found that most often there is a better way to get efficient and simple code. You just need some library to manage the constructs you need for such data flow.
-
@esavier I always thought of reading it backwards actually "constant pointer to integer constant"
-
@esavier nice! What is the second type of constructor called? A move constructor?
-
I think making the pointer a const pointer is clearer when using the second syntax, that's where it really shines.
-
What about now:
const int *const px = &y;
? -
I recently got lucky and got an awesome job with a team of highly skilled developers, and I have no formal education either. It's all passion.
-
Haha, the consultant one is spot on!
-
That has a very bad code smell...
-
@Snatchedd wow great work! Good luck :)