Software engineer, specializing in JavaScript 🟨⬛️ Technical writer 📝

Lisbon
Joined August 2019
Step-by-step guide: Build your GitHub Repo Catalogue using Nuxt, Vue, and FaunaDB. dev.to/ramigs/building-a-jam… Check out the final result: elegant-hopper-28219e.netlif… Pre-rendering the most we can, and asynchronously fetching just the data we need 🤓 #Jamstack @nuxt_js @vuejs @fauna
2
3
17
Do you know what is a Vue.js error boundary component? 🤔 Think of error boundaries as specialized bodyguards for your components. They catch JavaScript errors in their descendant component tree and smoothly display a fallback UI instead of letting your entire application crash and burn. They're the difference between "the whole app is down!" and "hmm, that one widget isn't loading, but everything else works fine."
1
1
12
793
⚠️ Developers, please be careful when installing Homebrew. Google is serving sponsored links to a Homebrew site clone that has a cURL command to malware. The URL for this site is one letter different than the official site.
237
2,394
374
10,796
1,357,325
my favorite JavaScript API is `Proxy` – it allows you to "spy" on any object property
45
105
7
2,221
197,739
Problem: You want to push your changes, but skip CI because you're not done yet, so running CI would be wasteful. Solution: Put this in the push commit message: [no ci] This skips the CI process.
16
27
342
45,655
Template Literal Types are awesome. If you concat `number` and a union of time units, you have a human readable AND type-safe way to provide time values! 👇
3
53
4
737
47,894
Ever struggled with refactoring or testing complex @vuejs composables? When business logic and reactivity get tangled together, it becomes a nightmare to refactor and test. The Thin Composables pattern separates your concerns, making your code simple to test and maintain.
3
13
1
125
12,311
Quick Linux Tip 🐧 If you're having trouble reading the directories in the $PATH variable, you can make use of the tr command to replace colons with the newline characters so each directory is displayed on a single line. $ echo $PATH | tr ":" "\n" Here is an example:
6
85
1
511
24,781
Bash Scripting Basics
48
1,144
30
8,912
867,442
ramigs retweeted
navigator.sendBeacon is a method for POSTing data (string, blob, formData...) to an endpoint asynchronously The browser guarantees to run these requests to completion, which can be a more stable replacement for onbeforeunload or pagevisibility events with a fetch Have you used this before?
61
66
5
1,317
199,186
ramigs retweeted
📢 Important Update The much improved Vue Devtools v7 has been submitted for review on the Chrome web store under the stable channel, and we are flipping the switch tomorrow. Things to note: - The latest v7 **only supports Vue 3**. We have separate listings for legacy versions of v5 and v6, both of which support Vue 2. These legacy versions cannot be enabled at the same time with v7, but you can use a separate browser profile that only have v5 or v6 installed if you need to work on Vue 2 apps. - If you were previously using the beta channel, you can (and should) switch back to the stable channel, as the beta channel will only be used for testing experimental major new features and will not be updated regularly for bug fixes. - The github repo vuejs/devtools now also points to v7: github.com/vuejs/devtools More info about v7: devtools.vuejs.org/
6
61
6
396
89,681
ramigs retweeted
I’m 8 years old 🥳
60
163
29
1,408
56,249
HTML Tip 💡 Do you know we can keep the form submit button outside the form? 🤩👇
16
77
2
655
33,969
It's possible to add global properties to your @vuejs app in both Vue 2 and Vue 3:
3
1
1
25
2,943
Save these awesome CSS animations for your next project 🚀
9
95
1
612
23,174
💡 Pinia Tip: Persist store data across sessions 👉🏻 Save the store's state to local storage or other storage mechanisms, and restores it when the application is refreshed. 👉🏻 This feature is especially useful for retaining user preferences or application state between.
4
10
1
123
7,165
ramigs retweeted
🤯 How am I just finding out about display: contents; Suuuuper handy for CSS Flexbox + Grid where the children aren't direct descendants.
107
580
109
5,383
356,985
CSS Tip 💡 Do you know we can simplify a large CSS selectors list using :where() ?🤩
5
31
2
156
6,096
ramigs retweeted
Just found out that Fetch API has built-in timeout support! 🤯
55
242
32
2,006
384,296
Here is a great use case for #CSS container queries, inspired by LinkedIn's feed. ✨ Show or hide each post action label (e.g: 'Like' or 'Comment') based on the container width. ✨ Learn more in my recent interactive guide about container queries: ishadeed.com/article/css-con…
3
36
272
21,842
Web Performance Tip 💡 For better performance, load images based on the viewport size using srcset and sizes attributes of the image element ✅
2
16
2
55
2,569