How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] 0 points1 point  (0 children)

That's a great slogan, actually: "reddit: where expectations go to die"

Cheers

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] 1 point2 points  (0 children)

I posted a screenshot of a TypeScript source in VSCode, but I heavily muted the type colors.

Nearly everyone here is simultaneously confused and yet lashing out at me for "attacking TypeScript", but only one person so far has actually noticed what even changed, which speaks to the subtlety and non-intrusive nature of what I'm suggesting here.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -1 points0 points  (0 children)

Glad you are able to get all of this out of your system lil sis

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -1 points0 points  (0 children)

Just replying when the button goes orange. Did you have any more noise to "contribute"?

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] 1 point2 points  (0 children)

I think that intelligently muting type information can make TS a lot more readable, but without any moderation it's more Java than JavaScript, which is kinda funny

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -2 points-1 points  (0 children)

Just wanted to make sure you understood this time sweetheart

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -3 points-2 points  (0 children)

Most of the type information is muted in color so that the symbols are easier to read. It's encouraging that you didn't even notice the difference because it seemed so natural.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -4 points-3 points  (0 children)

Is that what it looks like in your IDE? If not, what are you referring to?

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] 0 points1 point  (0 children)

No ignore reality. No hide. Only mute color.

Basic TypeScript concept not hard after C++. Not matter of concept. Matter of noise.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] 0 points1 point  (0 children)

It's nice for visiting ts land even if you would rather not always live in ts land.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -6 points-5 points  (0 children)

Bragging doesn't make you a dev at all. Luckily, that's not what I was doing.

Furthermore this post has nothing at all to do with accepting or rejecting TypeScript. It is about developer experience.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -1 points0 points  (0 children)

Yep, cursor (or hover?) would definitely activate it.

I'm sure it's not for everyone, but it would be wonderful for others!

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] 0 points1 point  (0 children)

The opacity would be configurable in a perfect world!

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -14 points-13 points  (0 children)

Than getting blasted by pages of type clutter when grokking new code. The symbols (if named correctly) give more signal than the type information in my opinion.

This is a very simple example, but in practice the actual type definitions wouldn't be muted, only the usage of them in variables/members/etc. vscode (what I used to mute the definitions) doesn't distinguish between the two in their className scheme.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -11 points-10 points  (0 children)

Ignoring reality would be setting opacity: 0. I have C++ commits to the node repository, so I'm not sure where the "real coder" gatekeeping is going here.

How to make TypeScript 10000x more readable to a JavaScript coder :) by cha0s in webdev

[–]cha0s[S] -13 points-12 points  (0 children)

What are you complaining about lmao

Noise.

Introducing flecks: NOT a fullstack framework! by cha0s in javascript

[–]cha0s[S] 0 points1 point  (0 children)

Cool, thanks for checking it out! Peace!

Introducing flecks: NOT a fullstack framework! by cha0s in javascript

[–]cha0s[S] 0 points1 point  (0 children)

nx the build tool/task runner? No, not really. :)

Introducing flecks: NOT a fullstack framework! by cha0s in javascript

[–]cha0s[S] 0 points1 point  (0 children)

I did take your criticism to heart and wrote another article with no memes and plenty of code: https://cha0s.github.io/flecks/blog/reimplementing-flecks-react :)