Better HN
topnewbestaskshowjobs
Log inSign up

lazarljubenovic

19 karma · joined Mar 14, 2017 (9y ago) · 14 submissions

Submissions

comment 5y ago · link · parent

Parsing human-readable strings is application-specific. It's good that this is kept in userland. Not matter how they do it, it's not going to work for at least 50% of use-cases. It would result in additional bloat of Temporal that's probably useless to you anyway. How do you parse (and do you parse) “01. 02. 2003.”, “jan 2 2003”, “2nd jan '03”, “today”, and “tomorrow night”? The API should parse only the ISO standard(s).

comment 6y ago · link · parent

I never understood the concept of 10x apart from it being a (misused) meme. For (almost) every developer you can find one that will do "the thing" a few times faster and one that will do it a few times slower. It also depends on what is "the thing".

comment 6y ago · link · parent

jspaint.app ftw

comment 6y ago · link · parent

> the list of such difficult issues is practically infinite

Precisely. No matter how good a language is, you can always say "but it doesn't do xyz". If you want to replace the human brain by a language, then you're looking for AI, not a language.

I understand what you mean, and I agree that these things are lacking from TypeScript. And I would love them. TypeScript is slowly adding more and more things, mitigating issues one by one, which were previously dissed off by developers with "it doesn't even do xyz".

I have my job because my brain is smarter than TypeScript's compiler. And it does help me, because I know which things I don't have to think about anymore, based on how I write the code. So it does help me, because I think less about the set of problems which it DOES solve.

comment 6y ago · link · parent

You obviously never wrote TypeScript with strict flag turned on. It does control flow analysis, not just typo checking.

comment 7y ago · link · parent

Source?

comment 8y ago · link · parent

> If you had to depend on a teacher to expose you to the books you should read, what about the rest of your career?

It's a kick start. You depend on the school to teach you other basic skills too: letters, numbers. You learn a lot of words from classes, but it doesn't mean you'll stop learning words once you're done with elementary school. You can go on your own after that.

My personal experience with school and university is exposure to a lot of different things. I wasn't forced to learn everything -- I spent more time on things I liked and less time on things I just wanted to get a good grade on.

The system is far from perfect and is flawed in many ways, especially where I live. But I don't think that the idea of formal education itself should suffer because of some flaws; I's rather improve it over ditching it.

comment 8y ago · link · parent

If it's a primitive type, yes. Throw in a union, a generic, or a conditional and everything blows up.

comment 8y ago · link · parent

> Vue itself wasn't too bad to get going with TS

Last time I tried, there wasn't any support for type check across component boundaries (props, events). Did something change?

A deal-breaker for me. I mostly know types from within the component; if you keep them small enough it's not much of an issue to just look up/down to check for a name, for example. But cross-component communication is where I need TS the most. Hopefully 3.0 addresses that (didn't read the whole article thoroughly, maybe it's mentioned).

comment 8y ago · link · parent

This was the only thing stopping me from using it in larger projects. Can't wait to see how it plays. Hopefully the class-based interface has no weird object notation (methods, props, computed) and uses decorators like Angular.

comment 8y ago · link · parent

> You can learn that from a book.

And I did read it from a book, when someone from University introduced me to the book and explained it to me in short firstly so I can grasp it more easily on my own.

I'd never pick a book about B trees on my own (booooring, let's learn LatestFramework.js).

My University professors were mostly a complete disaster but at least the materials we had were good enough. Who wanted to learn had access to knowledge, and for motivation -- at least the grades.

I can't see myself on my own even finding a book about theory and then going through it for 4 months, getting into nitty gritty details just for the kick of it.

There's no obvious benefit at the time of learning it. By the time you can see the benefit on your own, it could be too late.

comment 8y ago · link · parent

Was just about to say that after reading for a minute I understood nothing about the material. It was just a random array of buzzwords.

comment 8y ago · link · parent

Do you happen to know of a TypeScript/JavaScript equivalent?