Better HN
topnewbestaskshowjobs
Log inSign up

nidu

42 karma · joined Mar 7, 2016 (10y ago) · 9 submissions

Submissions

comment 4y ago · link · parent

Would be especially inconvenient in places where you have daylight from 9AM till 4PM and where people rely on electric heating.

comment 6y ago · link · parent

1. You can define enum like `const enum A {...}` and they will not have runtime representation.

comment 7y ago · link · parent

I'm not sure comparison is correct. If you want routing in jQuery app - you will have some similar concept to routers. Using packers is also not required. And if you want some good automating module splitting in jQuery app - you'll probably pick up some packer as well. So it's more like HTML5/jQuery can be compared to just React without additions.

Most of these things that bring cognitive load have some purpose. It looks from time to time that developers start making tools in the sake of tools, but most of the time there's some sane reasoning behind.

comment 9y ago · link · parent

Agree with this one. Reading article i though "Why don't you just drop ImmutableJS in favor of pure js collections with lodash/fp?". I felt the same when were using ImmutableJS. Two collection libraries across the app is very inconvenient. One could build entire infrastructure with ImmutableJS and restrict native collections to only system boundaries, but in js you usually befriend a lot of libs which makes it complex.

comment 10y ago · link · parent

I suppose Vue.js is not very TypeScript friendly?

comment 10y ago · link · parent

Don't you use router with vue.js? And what's so messy about JSX?

comment 10y ago · link · parent

Probably when you accidentally scanned a document to PDF. Or when you received a document in PDF from some nasty man.

comment 10y ago · link · parent

Once I tried to make a union of a sorted set and an unsorted one. Result set inherits behaviour of a bigger input set so when i first got my sometimes-sorted set i thought like loosing my mind.

comment 10y ago · link · parent

It could also benefit from constant propagation (iirc the term) where you could write obj.get(Item.name) and both get type check and stay refactoring friendly (though with cost of some more typing).