devsamples (@devsamples) header
devsamples (@devsamples) profile picture

Providing the world with common and easy to use code samples to make your coding journeys easier. #100DaysOfCode #javascript #reactjs

United States
Joined April 2019
Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)Photo by devsamples (@devsamples)
The <img> element now supports lazy-loading, async decoding and many other features: https://teapawt.net/t.co/QcbvWLQfT7 I wrote about how to optimize UX & the Core Web Vitals with it.
41
1,071
60
4,197
Using clip-path transitions to create a hamburger menu open effect. On @CodePen codepen.io/ainalem/full/OJWQ…
4
18
1
148
Javascript @code devs: Ugh, who likes writing date/time formats? 😭⏰ What if you could write a date/time string just by giving an example of how you want it to look! 👀😁 Get this and other new AI-assisted #intellicode goodies as we build them. 🚀 aka.ms/intellicode-insiders
37
435
82
2,118
Why are developers so damn valuable? Our work scales. Sure, that lawyer can bill $250/hr, but we can build a checkout page which sells $250 of product a minute!
7
47
6
362
Going live in 15mins on #typescript and maybe a little http REST with Firebase Convert an existing #javascript project easily and get all the benefits #100DaysOfCode #opensource #firebase
2
22
22
devsamples retweeted
Tooling tip: console.table shows your array of objects in a table with sortable columns
9
141
4
514
1. Learn JavaScript 2. Practice JavaScript 3. Get hired 4. Get paid
52
198
15
1,594
Tip: Set width & height on your <img> elements. This now allows modern browsers to infer their intrinsic size pre-download, reducing layout shifts.
46
647
39
2,890
border: 1px solid red; is the console.log of CSS
246
1,466
216
8,878
I made this little thing @CodePen where you can check which blood group can donate to another blood group codepen.io/RominaMartin/full…
92
815
78
3,986
devsamples retweeted
Replying to @jody_lecompte
Looks like a good case for useReducer or keeping state in an object and a single useState call
3
2
1
115
Tip: @ChromeDevTools can take full size screenshots of websites. Press Cmd + Shift + P and type "Capture full size screenshot"
26
399
34
1,465
Fantastic mobile web animations in React demos + talk by @alex_holachek. Lots of great tips about performance: Slides: mobile-first-animation.netli… Code: github.com/aholachek/mobile-… Video: https://teapawt.net/t.co/WdmrCnggwo
13
598
13
2,550
In a new series, Rachel Andrew breaks down the CSS Grid Layout specification. ↬ Creating A Grid Container: smashingmagazine.com/2020/01… ↬ Grid Lines: smashingmagazine.com/2020/01…
20
75
We often talk about the gzipped size of libraries, but maybe it's time we default to the brotli size? caniuse.com/#feat=brotli
18
17
91
I wanted to learn about raycasting with webgl, so I created some 3D Crystals with #threejs Move cursor to change their material & light effect. On mobile touch crystals & anywhere else on screen to switch // codepen.io/ilithya/full/eYmZ… via @CodePen #100DaysOfCode #Day29 #javascript
1
18
40
devsamples retweeted
Today’s experiment: Painting on a web page with multiplexed variable fonts.
7
89
2
630
devsamples retweeted
Some devs fetch data by making AJAX requests inside store actions. The author of this article says that components shouldn’t know where or how to get data, only what data they need, and shows a pattern for separation by using Weakmaps with Vuex. #vuejs buff.ly/2r89sZp
1
16
84
Inversion of Control: A simple principle that can drastically improve your reusable code kentcdodds.com/blog/inversio…
8
114
11
374