Details
-
Skillsphp, css, js, Cass, less
-
LocationUtrecht
-
Github
Joined devRant on 7/18/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
-
Deployed to production on Friday
-
Is the other monitor plugged in the graphics card, or in the ioshield of the motherboard?
-
Do you perhaps mean Memex by Andrew Louis https://youtu.be/K0WU02flF_E? Interesting talk as well :)
-
@Lensflare it's type inference at compiler time, less efficient (and even more error prone) would be type inference at runtime 😖
-
The onload function is called when the document and all related files are loaded, which might be after the initial page render. That explains the flicker you describe. Calling the function directly could work, based on the placement of the script. If it is located at the end of the body tag, the whole body is initialized and it works. You could also add it to the DOMContentLoaded event, which is fired when the DOM is parsed, instead of waiting for all other assets to be loaded.
Also, JavaScript is weird in the way it handles functions. It is perfectly fine to use a function that is later defined. The JS interpreter first scans the whole script and compiles the functions with the function keyword. That's also the reason why functions with the function keyword don't adhere to scope. -
With spaces you get into the argument wether to indent by 2, 4 or maybe even 8 spaces. Without shared editor configuration this will end up in inconsistent code where one file is indented with 2 spaces and others are indented with 4 spaces.
If you'd just indent with one tab you can set wether one tab is displayed as 2 spaces, or 4, or even 3 if you fancy. That way, everybody can be happy!
Use tabs for indentation, and spaces for alignment, but always comply to the standards in the project -
@LinusTorvald in most programming languages, INT_MAX+1 = INT_MIN, because the way overflowing works.
Given the case of a=6 and b=7 and INT_MIN=-10 and INT_MAX = 10:
a=a+b
b=a-b
a=a-b
a = 6+7 = 13 = -7
b= -7 - 7 = -14 = 6
a=-7 - 6 = -13 = 7
Therefore a and b are indeed swapped. The only case where it doesn't work if either a or b are larger than INT_MAX or less than INT_MIN -
Rebasing shouldn't be used lightly, but I do prefer to pull with rebase, as @k0pernicus said. Let's say I made a change on a branch and a colleague made another change on the same branch and was quicker to push it. My branch is out of date with the origin. I can make a merge commit between the branch and the origin, but I prefer to rebase my local commits on the origin. This keeps the history a bit cleaner.
Also for my own pull requests, I frequently rebase my feature branch on top of master. This way when reviewing the commits I want to introduce, you don't see the merge commits with the resolved conflicts and only the changes that are really needed for that feature. -
@tokumei You could, and should in some cases, rewrite the history to remove a specific file: https://help.github.com/articles/...
This of course requires all the developers to stop comitting, have everything up to date, rewrite the history and then rebase all branches into the branch with the removed file. Have everyone at the office, and hopefully noone encounters major issues 😆 -
@nzeetee you could try and open them in the web version of office 365, but that might defeat some of the purpose though...
-
Build a working prototype as fast as possible, to see if it is what your clients want or are looking for. Then destroy all code and build it properly, with the knowledge you have gained it will be easier :)
-
I also love `git cherry-pick commitHash`, which applies the commit to the current HEAD, if applicable.
Also `git bisect` is very useful if you know that a bug is introduced, and you want to know own which commit introduced that bug. It uses binary search. :) -
The reason I use Linux, is because web development seems to be faster on Linux than windows, I mean, instead of xampp on Windows I use nginx and php-fpm which is so much faster. :)
-
@linuxxx, for easier install of Arch I highly recommend Arch Anywhere. It is basically Arch, but with an amazing installer that does most of the configuration for you.
-
@linuxxx But why use a user ID to log in, instead of the email? Because on nearly all websites you log in with your email address.
-
Directions unclear, dick stuck in cd tray
-
++ for DigitalOcean, free credits for students as well!
-
But why even use a taskbar? I use mine only for the notification tray. And sometimes switching between desktops. I'm a I3 kind of guy
-
And for me between step 4 and 5: Find new language to learn, return to step 1 for that language 😂
-
@orto that'd be the aforementioned Typescript. Facebook's Flow also has some neat functionalities though. :)
-
I have a pair of Sony MDR-1000X and I absolutely love it. The noise cancellation works like a charm, and has various noise cancelling modes and it can be turned off.
-
The only real reason you see these nested tables is for emails. You can't include css in emails, because if you thought that IE was bad for HTML, you've never tried to build a responsive HTML email. Every email client renders it differently, and you have many more exceptions to take into account..
-
I agree that the manager is an uninformed twat, and the co worker that found a way of coping with the requirements didn't handle it properly. But to fire him for showing the team and, more importantly, the manager how stupid his rules are should at least trigger a conversation. Just my $0.02
-
@novi yeah no problem. I had issues as well, and it has taken me more hours than I care to admit to configure it to my liking. In the end I've settled with arch, Gnome Display Manager and i3 as the WM.
Personally I find that Antergos tries to do too much configuring for me. I prefer Arch-Anywhere if you need a simpler install.
If you need inspiration: https://reddit.com/r/unixporn. People there have the craziest and most gorgeous setups you could imagine! -
@novi I'm currently using Arch, in combination with I3. It's quite some configuration and learning by trial and error, burning the end I'm very happy with it. It's very lightweight and with I3 the windows are working with me, instead of against me. 😀
-
@olback They are most likely using the G Suite, along with a local installation of AD that might be synchronised to the Microsoft online services. As long as you don't link your personal account to the enterprise account, you have nothing to fear.
And basically, the default Google accounts and the service Google is offering to enterprises/educational institutions are two separate products. The G Suite has way stricter privacy policies and have a totally different way of handling the privacy and data of an enterprise, so I wouldn't be too concerned about that. And when you graduate they will most likely remove your account and everything that was ever there will be gone.
Just be happy that you can get free stuff from GitHub! (https://education.github.com/pack) -
@linuxxx isn't the scanning function on Whatsapp used to verify that you're talking to the right person, i.e. the whatsapp contact is who he says he is?
-
@just8littleByte wisdom is also knowing when to pause for a moment to collect your thoughts. It happens so often to me that I can't figure something out, and the moment I get up and walk around a little bit I see the picture and can solve it in a matter of minutes.
Untill the next problem occurs ofcourse :) -
Still better than nosy co-workers 😉
-
I like to pronounce it as chif, like a g in the back of the throat. 🙉