Better HN
topnewbestaskshowjobs
Log inSign up

SimonSelg

13 karma · joined Mar 21, 2016 (10y ago) · 16 submissions

Web Developer and CS Student living in Freiburg, Germany.

twitter: @simon_selg

[ my public key: https://keybase.io/simonselg; my proof: https://keybase.io/simonselg/sigs/ZFjXRBhTdMziMjT2SS1XJTKcGFEMSwUTDhOeB_kEUrc ]

Submissions

comment 9y ago · link · parent

Thanks for including "(blog post about completing them)" in the title.

comment 9y ago · link · parent

Same here. 118ms vs 29ms (average round trip time).

comment 9y ago · link · parent

This is awesome! Open source production apps are always useful.

comment 9y ago · link · parent

Thanks to everyone working on these tools! They improve the DX sooo much!

comment 9y ago · link · parent

This sounds grad from the ux perspective! Thanks!

6.

A NEMESIS in the sky(thespacereview.com ↗)

2 points · by SimonSelg · 10y ago · discuss

comment 10y ago · link · parent

Great article. On a side node, however: please don't write code like this:

  var weAreConnected = Math.floor(Math.random() * 10) > 5
  if (weAreConnected === true) {
    this.setState({
      isConnected: true
    })
  } 
  else {
    this.setState({
      isConnected: false
    })
  }
Instead, simplify the logic

  var weAreConnected = Math.floor(Math.random() * 10) > 5
  this.setState({
    isConnected: weAreConnected
  })
The random choice is also overy complicate (and on a side node, the value is more likely to be false then true due incorrect comparision operator usage)

  var weAreConnected = Math.random() < 0.5
  this.setState({
    isConnected: weAreConnected
  })
If we use ES6, we can use the shorthand notation to simplify the code even more

  const isConnected = Math.random() < 0.5
  this.setState({
    isConnected
  })

comment 10y ago · link · parent

Question out of couriosity: Why whould you davor smt like that over a simple regexp replace? like

const target = 'Get on the Road' const result = target.replace(/road/i, 'bus')

comment 10y ago · link · parent

Also, you will probably need a goal. Aimlessly training just to stay 'fit' doesn't generate that much motivation.

For example, my goal is to get bigger (build up more muscles & get stronger) - and I can monitor my progress - which generates motivation ("oh today I was able to do this exercise with more weight then the last time!")

comment 10y ago · link · parent

If anything stops me from going to gym (I do weightlifting there - usually 4-5 times / week ) it's usually something that's worth skipping gym.

In my recent lasts that has been either - social activities that I value more then gym (doesn't happen that often) - you can normally scedule that part of your life

- Work that pays off that well that skipping gym is worth it. For example , I have a small company w/ a friend (full stack development) and we got this new customer who was paying really good and who what a lot of connections - so I ended up working 18h/day on that project for like 2 weeks. But was totally worth it.

In general I can recommend weight lifting to anyone who spends most if his time siting in front of a computer (I thing most of us here are) - for me it's totally fun (I love to push myself to that point where I'm 100% exhausted) and great for compensating other stuff.

Try it for a few weeks - you might actually enjoy it! And you'll enjoy the results for sure.

comment 10y ago · link · parent

Works for me! Correctly identified my location as Germany.

12.

Resn is infecting minds with gooey interactive experiences and digital stories(resn.co.nz ↗)

1 points · by SimonSelg · 10y ago · discuss

comment 10y ago · link · parent

Love it! Thanks!

comment 10y ago · link · parent

Really looking forward to this!

comment 10y ago · link · parent

The site seems to be overloaded, use the cached version: http://webcache.googleusercontent.com/search?q=cache%3Ahttp%...

comment 10y ago · link · parent

It doesn't seem to be available to the public yet. It's not in his github[1] nor in his companies github[2].

[1] https://github.com/withzombies

[2] https://github.com/trailofbits