Fork me on GitHub
#off-topic
<
2022-07-02
>
Martynas Maciulevičius11:07:14

TypeScript language is more about types than scripts. I'm trying to upgrade a form validation library to a next major version and I have only one question: why did they do this...

🤯 1
😖 2
😂 1
❤️ 1
kwladyka11:07:34

Not a direct answer for your question but maybe you will find https://clojure.wladyka.eu/posts/form-validation/ and https://github.com/kwladyka/form-validator-cljs helpful

Martynas Maciulevičius14:07:16

I use TS and don't yet know if I want to go to cljs. But thanks, that's probably a nice lib. I found the problem eventually. Turns out the major version update was caused by the several class and field changes/renames. But they were minor. But figuring that out from types... It can capture the moved fieldnames in the same class and I could find them quite easily (not that a spec would be harder to look at). But if type doesn't encode how it was renamed then it's a problem. And it doesn't.

Drew Verlee22:07:33

What's something exciting you learned about web development in the last year?

souenzzo00:07:09

summary/details HTML tags

👍 1
Jeongsoo Lee01:07:12

HTML DSLs unlock the full power of the host language while template engines confine the user to their own mini-language.

Thomas Moerman12:07:49

Atomic Design / Storybook

dgb2312:07:27

ServiceWorker API. But I have to say the applicability is more limited than I initially thought - use with caution 🙂

dgb2312:07:15

I think it will become much better if two things are finalized: background sync and tab sync.

dgb2312:07:55

tip for anyone learning/trying it out: I normally use FF but Chrome is miles ahead in terms of debugging and keeping track of ServiceWorkers.

Jeongsoo Lee12:07:35

Agreed. Safari is also worse than Chrome IMO

simongray11:07:09

Recently, I’ve been learning about the various protocols making up https://indieweb.org/ and I find this approach to web development quite interesting.

mavbozo11:07:41

i gained more understanding of HATEOAS, ex: client shouldn't build the whole url for the next http call.

Cora (she/her)23:07:29

flexbox and grid 😂

☝️ 5
2
Cora (she/her)23:07:31

or at least I feel competent in them now, having used them a lot the past year (especially flexbox), but i had used them before this past year

Cora (she/her)23:07:14

also i learned how to used indexeddb in the browser! i use it for caching search data on cljdoc