Better HN
topnewbestaskshowjobs
Log inSign up

ablomen

43 karma · joined Dec 7, 2016 (9y ago) · 11 submissions

Submissions

comment 5y ago · link · parent

No shit - person that once was a child

comment 6y ago · link · parent

I did not like/see the real benefit of strict typing until actually using Typescript. Now for me the more verbose code and extra typing is vastly outweighed by knowing what arguments the function actually wants, especially when using 3rd party libraries. The time saved by real-time type checking in my editor compared to edit->run->crash->edit is almost unbelievable and the amount of errors in code I ported over that we did not come across in production is also huge. So no, I think the visual overload is definitely worth it.

comment 7y ago · link · parent

"A low moment in Apple’s proud history"

https://en.wikipedia.org/wiki/Apple_Inc.#Criticism_and_contr...

I think Apple has done a lot worse in its "proud history" and is still doing it.

comment 7y ago · link · parent

I totally agree, as a dyslexic big pieces of text look like a garbled mess. I need > 2 spaces to be able to navigate a file with code with any speed.

Tabs for indentation, spaces for alignment looks to me like the best of both worlds.

comment 9y ago · link · parent

Haha yes a lot of breweries have been started by IT people over here too. To be fair, brewing includes some science, a lot of self learning and creativity, so there is some overlap there.

Not to mention the fact that until recently (over here at least) most beer festivals looked quite a bit like open source conventions, just with different stickers. And the "beer nerds" (including me) I know are just as in to beer as I was in to computers.

comment 9y ago · link · parent

Coming from a country with cushy laws on the side of employees etc (the Netherlands), and as a male, I can say that I can really identify with the opening paragraphs of this piece.

When I started as all round IT guy 10 years ago it felt like a dream, getting payed for doing what I was doing anyway. And the first 4 years of turning in to a web developer was fun and challenging.

But after a while the shine wears off and getting up every day to make software for clients you are not interested in, with deadlines and promises that where not made by your self, it just drains you.

After finding my own solution (starting up a beer brewery) another thing dawned, sitting behind a computer hours every day for work just is not good for your body or your mind. The money is great, the work can be fun, but at least for me, the best thing I have ever done is starting something totally non-IT (or other office job) related.

comment 9y ago · link · parent

In this example it is, but a nice thing about using map, reduce etc is that you can chain them together, ex:

  let out = ["a", "b", "c", 1, 2, 3]
  	// Turn letters to upper case
  	.map(i => {
  		return typeof i === "string"
  			? i.toUpperCase()
  			: i;
  	})
  	// Add one to numbers
  	.map(i => {
  		return typeof i === "number"
  			? i + 1
  			: i;
  	})
  	// split letters and numbers up
  	.reduce((all, i) => { 
  		typeof i === "string"
  			? all.letters.push(i)
  			: all.numbers.push(i);
  		return all;
  	}, { "letters": [], "numbers": [] });
  // => { letters: ["A", "B", "C"], numbers: [2, 3, 4] }

comment 9y ago · link · parent

"Fortunately for women who just want to get their work done and go home, we do not live in the world of Mad Men anymore" Yes we can all be happy about that, but it's not an either/or situation, lots of relationships start at work and they can work out just fine.

comment 9y ago · link · parent

Thanks, I'll be sure tell my parents (mom used to be dad's secretary) that their 35y relationship will end in failure.

comment 9y ago · link · parent

Sorry custom elements might have been the wrong term to use. I mean custom interfaces, say an image gallery or a realtime search box where you would use elements like buttons and input's in a different way then the usage this framework defines for you. Using a nav both in your header and sidebar is a different example where these are not good defaults

comment 9y ago · link · parent

It looks great at first glance. A big problem though is that it styles basic elements. If for example you want to use a <table>, <mark> or <nav> where it would make sense in a custom element you'll have to reset all the styles of the library before adding your own.