thedevs_js | Unsorted

Telegram-канал thedevs_js - JavaScript

5131

Part of @thedevs Rules: @rulesforthedevs Join other dev groups https://thedevs.network

Subscribe to a channel

JavaScript

it is an external requirement

Читать полностью…

JavaScript

utf16be shows typescript error but i haven't tested it.

Читать полностью…

JavaScript

Why use any of those

Читать полностью…

JavaScript

[0] with [1], [2] with [3], ...

Читать полностью…

JavaScript

If it can do utf-16, utf-16be is easy

Читать полностью…

JavaScript

node buffer is not any encoding

Читать полностью…

JavaScript

Datastar is the better HTMX and Hotwire (it also has client-side signals that are similar to Alpine)

Читать полностью…

JavaScript

So what is in between like i want dont write bloats actually fuck react i did find svelte somewhat like goodish but it has its own downside

Читать полностью…

JavaScript

Why? Here's my Go experiences:

After writing Go for a bit I feel like productivity rumors are pretty true, BUT I am not very happy with the quality of the output
I feel like I need more guarantees from the type system and static analysis than I'm getting
The runtime code while compiling and running feels a bit brittle, like I'll need to double check everything dynamically

Читать полностью…

JavaScript

Ultimately it depends on what you're building. If you're building a personal site or some small one-off project, go ham and implement everything from scratch. Buf if you want to build something people will actually use you don't really have much of a choice these days, unless you want to spend potentially hundreds of extra hours on stuff like accessibility, localization, routing without requiring a full page load every time, state management, etc.

That doesn't necessarily require a massive framework like React or Angular, but you're not going to get away with just vanilla JS either unless you just don't care.

Читать полностью…

JavaScript

The benefits outweigh the downsides. For instance, it saves us from having to write that awful language, Go

Читать полностью…

JavaScript

It's clearly asexually transmitted

Читать полностью…

JavaScript

Get off this group Roman

Читать полностью…

JavaScript

People write too much JS in general and that's the biggest problem IMHO.

JS was designed as a small scripting language for minor interactions on the page.

Using it to script server logic and drive application state is a big mistake.

TS eliminates some of the problems, but it doesn't solve it.

Читать полностью…

JavaScript

I tried, it's the css value, not visible size.

Читать полностью…

JavaScript

utf-8 supports them all

Читать полностью…

JavaScript

i need to support many languages and emoji

Читать полностью…

JavaScript

i used ucs2 and i get chineese text when i decode

Читать полностью…

JavaScript

Just flip all the bytes

Читать полностью…

JavaScript

Do you mean an encoding param used to convert from / to Buffer?

Читать полностью…

JavaScript

node buffer does not support utf16be?

Читать полностью…

JavaScript

Everything has downsides. From a framework perspective svelte is really nice. There’s also the Hotwired libraries (Turbo and Stimulus), Alpine, and a lot more. Data-star and HTMX also exist.

Читать полностью…

JavaScript

I don't get this brittleness feeling in TS

Читать полностью…

JavaScript

Vanilla JS is great, right up until you start re-implementing react

Читать полностью…

JavaScript

None. You're completely right! Next topic 🙂

Читать полностью…

JavaScript

There are compromises 🙂 whether you're fine with them or not is another question

Читать полностью…

JavaScript

this is such an absurd statement
A programming language is a programming language. js works on a server just fine without any compromises.

Читать полностью…

JavaScript

I see no pluses to write vanilla js for any projects

Читать полностью…

JavaScript

Why dont people write normal vanilla + html + css why they want abstravtion over everything why is it sexually transmitted disease in us js dev that we want abstration over everything

Is it alright like from professional point of veiw to write vanilla js for projects small/mid

Читать полностью…

JavaScript

If you see the Computed section in the DevTools you will get the actual result which is affected by zooming, maybe try that

Читать полностью…
Subscribe to a channel