João Morais (@jcsmorais) profile picture

Software Engineer, Open Source contributor, curious about all things Web, Stand-Up-Paddle surfer, Gymaholic and world traveller.

California, USA
Joined September 2010
Photo by João Morais (@jcsmorais)Photo by João Morais (@jcsmorais)Photo by João Morais (@jcsmorais)Photo by João Morais (@jcsmorais)Photo by João Morais (@jcsmorais)Photo by João Morais (@jcsmorais)
João Morais retweeted
If JavaScript libraries are proving costly, replace them with smaller alternatives. Lots of great options in https://teapawt.net/t.co/dtMSv5DLfp & https://teapawt.net/t.co/hU1xwmn9N7
16
666
16
2,136
I regret having written integration tests and not written unit tests every time I come back and try to understand that code later. Every Single time. Unit tests are tedious and annoying to write, but they are the only thing that truly explains what the code was supposed to do.
7
9
1
52
João Morais retweeted
Here's some of the best advice I got when I became a manager last year! It's simple, but considering most people receive no management training whatsoever these days, it's better than nothing. Thread!
104
2,157
868
9,579
João Morais retweeted
Tips for useful, respectful code reviews: - Assume competence (author may have a different context) - Provide specific, actionable feedback - Focus on the code (avoid personal criticism) - Clearly mark nitpicks & optional comments - Provide rationale (e.g refs to a style guide)
18
642
27
2,348
João Morais retweeted
Tip: @ChromeDevTools can pin Live Expressions to the top of Console to monitor values in real-time! ✨
17
741
44
2,767
João Morais retweeted
Optional Chaining & Nullish Coalescing are coming to JavaScript! They're short, readable and are both available to try in Chrome Canary 🎉 v8.dev/features/optional-cha… v8.dev/features/nullish-coal…
41
996
89
3,094
João Morais retweeted
TypeScript 3.7 is finally here! ✔ Optional Chaining & Coalescing ✔ Assertion Functions ✔ .d.ts Emit From .js Files ✔ Smarter Control Flow Analysis ✔ Flatter Error Messages and more! Check out the blog post today! devblogs.microsoft.com/types…
70
2,092
295
4,970
João Morais retweeted
#TypeScript tip for today: When you return an array, TypeScript infers the type as an Array of included types (see attached code) If you want this value to be inferred as a Tuple instead, add `as const` to the return statement.
6
139
4
459
João Morais retweeted
That feeling when you first discovered `document.designMode`
367
10,221
1,557
32,654
João Morais retweeted
Hierarchy of any implementation: 1. Correct 2. Simple 3. Fast ------ Be wary of the temptation to flip 2 and 3. Fast is great but if you can never touch the code again what is the point?
15
200
15
784
🤔
7
115
6
571
João Morais retweeted
New Web Performance API + Metric: ⚡ Largest Contentful Paint (LCP) ⚡ LCP helps you measure when the main content of a web page has loaded. FCP + LCP now gives you a much more holistic view into how fast your sites actually load for real users! web.dev/largest-contentful-p…
6
200
19
469
João Morais retweeted
GitHub Actions now includes our most-requested feature: built-in CI/CD. Oh, and it’s free for open source. ❤️ github.co/2MQcIkX
75
1,243
242
3,204
João Morais retweeted
Learn how to make network connections early to improve perceived page speed: https://teapawt.net/t.co/6lDZydP8Vl ~ a new guide on <link rel=preconnect> & <link rel=dns-prefetch> by @bibydigital
14
319
9
980
🎉🎉🎉🎉BREAKING: #TC39: Optional Chaining has now moved to Stage 3!!! #JavaScript
43
833
141
2,266
"Do you know JavaScript?" "Yes." "Ah—but do you know what happens when you try to multiply a number by a *date*?" "Yes. I am immediately fired."
49
746
38
4,618
João Morais retweeted
Have unlimited PTO? A coworker came up with a cool trick. Take PTO and then go to work. Do whatever work you want quietly, and reject all other work, interruptions, and meetings with "sorry, I'm on PTO".
12
23
8
273
🌒 Dark Mode—Overhyped or Necessity? Learn all(!) about dark mode and how to support it in @tomayac’s article “Hello Darkness, My Old Friend!” 👉 web.dev/prefers-color-scheme… With `<dark-mode-toggle>`, let your users toggle dark mode 🔅↔️🔆 on your site. 👉 webcomponents.org/element/da…
4
62
9
197