codeheaps retweeted
I wonder how many people realize that React Hooks is really just disconnected, less declarative reactive programming.
codeheaps retweeted
Ok, I'm seriously so excited by #TypeScript 4.1!
(released today!)
I mean come on: you can now e.g. type all 80 color variations from @TailwindCSS in like.. no time:
codeheaps retweeted
In #JavaScript, `void 0` isn't an magic incantation for `undefined`
It's an operator that evaluates what comes after it, then always returns `undefined`
`void 0` may as well be `void 1`
It can also be used for IIFEs by making functions into expressions rather than declarations
codeheaps retweeted
Avoid round checkboxes.
They make a radio list confusing by allowing multiple selection!
Round the corners of your checkboxes all day, but be weary of the misleading effect a round checkbox can have
codeheaps retweeted
Lazy loading #Angular components with async/await is
- 🥴not lazy
- 🧟♀️not cancelable
- ☠️hard to handle errors
- 🤕clumsy to use
Checkout out rxLet directive and see how to do it better withing just
🤯2 LINES of CODE 🤯
Also, 🌟 on GitHub if u like it!
github.com/rx-angular/rx-ang…
codeheaps retweeted
🎉 Ionic Vue is (finally) here! 🎉
Truly native, truly web, truly cross platform
💚 Built with @vuejs 3.0
⚙️ Standard Vue tooling w/ vue-router
🧩 100+ mobile UI components
📱 iOS, Android, and PWAs
Give it a spin 👇
https://nitter.gq/t.co/s3w3GQydGX
codeheaps retweeted
Missed the Accessible UI series with @una?
We've got you covered!
📝 Semantic Markup: youtube.com/watch?v=arMgwKY5…
🎨 Color: youtube.com/watch?v=sEDnmNtE…
🚘 Navigation: youtube.com/watch?v=qD7SecF8…
🖼 Media: youtube.com/watch?v=F9VCfA6J…
🎢 Animation: youtube.com/watch?v=_ZdZh-ES…
codeheaps retweeted
⚠️ Here are our examples from our talk at @rxjslive:
👉 Progressive Data Enhancement
https://nitter.gq/t.co/CJXEEJrdCh
👉 Error Handling
https://nitter.gq/t.co/ThMdFtn3WC
👉 Flickering Spinner
https://nitter.gq/t.co/Pld3qLVAmF
👉 `subscribedTo` Operator
https://nitter.gq/t.co/va7yjKxIGQ
For questions, let us know!
codeheaps retweeted
#RxJS in modern ES2020/TypeScript tip:
DON'T use pluck, use map! The pluck operator is going away eventually.
Optional chaining makes pluck irrelevant!
![import { from } from 'rxjs'; import { map, pluck } from 'rxjs/operators'; const users = [ { id: 1, name: { first: 'Ben', last: 'Lesh' } }, { id: 2, name: { first: 'Jay', last: 'Phelps' } } ]; const users$ = from(users); const firstNames$ = users$.pipe( pluck('name', 'first') ); // Same as: const firstNames$ = users$.pipe( map(user => user?.name?.first) );](https://pbs.twimg.com/media/EUo9cQXWoAE1MCs.jpg?name=small&format=webp)
ALT import { from } from 'rxjs'; import { map, pluck } from 'rxjs/operators'; const users = [ { id: 1, name: { first: 'Ben', last: 'Lesh' } }, { id: 2, name: { first: 'Jay', last: 'Phelps' } } ]; const users$ = from(users); const firstNames$ = users$.pipe( pluck('name', 'first') ); // Same as: const firstNames$ = users$.pipe( map(user => user?.name?.first) );
codeheaps retweeted
🎉Announcing rxjs-for-await! A library providing different strategies for subscribing to #RxJS observables using async/await and `for await` loops
Now available on npm!
npmjs.com/package/rxjs-for-a…
codeheaps retweeted
I'm happy to announce:
🎉 React Query Devtools! 🎉
Visualize, sort, debug, manipulate and explore your queries in real-time! This is just the beginning!
#TanStack #React #javascript
github.com/tannerlinsley/rea…
codeheaps retweeted
"The Shell Library patterns with Nx and Monorepo Architectures" by @nacho_vazquez14 #angular #nx #webdev #javascript indepth.dev/the-shell-librar…
codeheaps retweeted
🤯 I will never not be fascinated by Church Encoding
Here are some Church Encoded Numerals 👇
🎮 Playground: runkit.com/joelnet/5e5eee3d8…
Theme is moonlight
#javascript #100DaysOfCode
codeheaps retweeted
Asynchronous JavaScript in four parts by @rauschma:
Foundations - https://nitter.gq/t.co/QnDl1V60Y4
Promises - https://nitter.gq/t.co/5PQmJIQQOe
Async functions - https://nitter.gq/t.co/QsmblncrND
Async iteration - https://nitter.gq/t.co/R39aYJb16m
codeheaps retweeted
I just finished a major rewrite of my desktop to-do app, todometer!
Rewritten with React hooks, an updated Electron packager, and a few new features.
I'm really happy with it, check it out!
cassidoo.github.io/todometer…
codeheaps retweeted
Chaining in OOP is syntactically convenient. Looking forward to the pipeline operator |> giving us chaining for functions:
const re_op = ['*', '+']
.map(ch => escapeForRegExp(ch))
.join('')
|> str => '[' + str + ']'
|> RegExp;
2ality.com/2019/01/future-js…
codeheaps retweeted
📝“Use web workers to run JavaScript off the browser's main thread”
— a write-up of my talk “The main thread is overworked & underpaind” from this year’s Chrome Dev Summit. Video in the article!
web.dev/off-main-thread/
codeheaps retweeted
Inversion of Control: A simple principle that can drastically improve your reusable code
kentcdodds.com/blog/inversio…
codeheaps retweeted
DSS Tecla is officially ON SALE!!! I'm so excited!!! 🎉🎉🎉
It's mix n match, PLUS comes with compatibility kits for different boards, AND has gaming and vim keys!!!
pimpmykeyboard.com/new-dss-t…
























