News for hackers. Stuff that matters.
Re:Tips for beginning systems and software engineers by gremy0 on Thursday May 19, 2016 @05:23AM (#11728960)
I don't really get the Ease vs Simple section, what point is he trying to make?

This is simple:

  i  = 0x5f3759df - ( i >> 1 );
Where this is just easy:

  famework.authService.login('user','password')

Good article though.
Re:Tips for beginning systems and software engineers by scriptdevil on Thursday May 19, 2016 @06:12AM (#11729119)
If you haven't already done so, listen to this talk by Rich Hickey (the creator of Clojure). This should clear it up for you. https://www.infoq.com/presentations/Simple-Made-Easy
Re:Tips for beginning systems and software engineers by ilyash on Thursday May 19, 2016 @11:34AM (#11730972)
Thanks! Added link from the post to the lecture.
Re:Tips for beginning systems and software engineers by wtbob on Thursday May 19, 2016 @09:30AM (#11730017)
This is simple:

    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)
Re:Tips for beginning systems and software engineers by collyw on Thursday May 19, 2016 @01:03PM (#11731675)
Thats one reason that its tempting to use something as simple as left pad. I only spend a small percentage of my time doing JavaScript, and the language has enough gotchas. Using something like that would give me the peace of mind that I haven't missed some quirk of the language. If someone knows how to publish a package on npm, then they probably know more JavaScript than me.
Re:Tips for beginning systems and software engineers by ilyash on Thursday May 19, 2016 @05:29AM (#11728982)
The point is that in the second case some people have no clue what's really happening, others have rough idea and very small group of people know what exactly happens. It might appear simple but it's not. It's easy.
Re:Tips for beginning systems and software engineers by Sammi on Thursday May 19, 2016 @07:02AM (#11729282)
Easy things can be vastly complicated. This means that such complicated easy things are hard to maintain.

Simple is always easy to maintain.

Remember, as software developers, complexity is the enemy. It is the beast we want to slay.