by gremy0 · 10y ago · 0 comments
This is simple:
i = 0x5f3759df - ( i >> 1 );
Where this is just easy: famework.authService.login('user','password')
Good article though. if (str.length < 6) {
str = ' '.repeat(6-str.length) + str;
}
This is easy: leftPad = require('left-pad')
leftPad(str, 6)
(note: my JavaScript is rusty; there may be some very valid reason that the simple code is wrong)Simple is always easy to maintain.
Remember, as software developers, complexity is the enemy. It is the beast we want to slay.