News for hackers. Stuff that matters.
Re:Introducing Hooks by munchbunny on Thursday October 25, 2018 @05:58PM (#18304937)
Maybe newish coders should learn the language they are using.

It's not a language thing. OOP discipline is a coding thing in general.

And of course there is typescript (and a gazillion of languages that can be transpiled to js these days), which synergizes very well with enterprise people and java/dotnet devs who never did a line of frontend before.

You sound like you don't actually understand why people like Typescript, or, more specifically, static typing.

Re:Introducing Hooks by jnbiche on Thursday October 25, 2018 @08:36PM (#18305862)
> You sound like you don't actually understand why people like Typescript, or, more specifically, static typing.

Eh, in my experience, there are two types of Typescript users: 1) those users who appreciate the safety that type systems provide when used properly, and 2) those enterprise users of the language who have mostly only coded Java and C# and who like Typescript because it lets them write Java-style code for the browser.

Re:Introducing Hooks by tangent128 on Thursday October 25, 2018 @10:59PM (#18306408)
Typescript doesn't do anything ES6 & Webpack don't already do; Javascript already lets you write Java-style code if you really want to.
Re:Introducing Hooks by jnbiche on Saturday October 27, 2018 @11:09PM (#18318970)
Typescript significantly predates ES6 and Webpack. Java developers have been drawn to Typescript for over 5 years now.
Re:Introducing Hooks by xab9 on Friday October 26, 2018 @01:29AM (#18306990)
I know, but lately during frontend interviews I was surprised how many times I met with "I'm a developer I can do anything" type interviewers - some of them were dotnet, others were java devs and they preferred typescript, because 1. javascript is a terrible language 2. with typescript they feel right at home 3. they can use a "proper ide" (please, don't ask, I already had an argument and a rejection when I tried to ask about webstorm)
Re:Introducing Hooks by xab9 on Friday October 26, 2018 @01:41AM (#18307031)
I "don't actually understand why people like Typescript", or lemonade, or skiing, or eating fish. I know why I like it, including static typing, and how I can find a balance with using its features (and not using some).

On the other hand I'm not trying to hide that I'm bitter about the mental lazyness around typescript - I had some bad experience with interviewers who praised ts (without ever bothering to learn the core principles of javascript) a bit too much for my taste (but again, this may just be dismissed as anecdotal evidence, which it is).

Re:Introducing Hooks by engineeringwoke on Friday October 26, 2018 @05:49AM (#18307914)
You wish we went back to bind and apply? And not being able to trace logic, state, and DOM through a labyrinth of Backbone views? We have come so far

How is static typing "mental laziness"?

Re:Introducing Hooks by xab9 on Friday October 26, 2018 @07:21AM (#18308267)
The article says bind as a negative point - I perefer the new non-bound class method syntax:

``` private handleClick = (event) => {} ```

By "mental lazyness" I mean that people (as in people I have met with) piss on javascript and praise typescript and in the process they never bother to learn about javascript.

I do like vue, react, angular of course, but I don't think that you become a frontend developer from one day to the next and keep saying that typescript is _exactly_ like java (or dotnet).

Re:Introducing Hooks by wild_preference on Friday October 26, 2018 @10:37AM (#18309577)
So you involved yourself in a faction war because of... some things some interviewers said? Please, spare us next time.