Тёмный

My top 5 most popular front-end tips 

Kevin Powell
Подписаться 948 тыс.
Просмотров 24 тыс.
50% 1

Опубликовано:

 

24 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@dylanzalman8452
@dylanzalman8452 День назад
All this time i thought you're opening was "hello my friend and friends". Which sounded odd but i assumed it was an Canadian jargon thing. First time i am realising it's "front-end friends". Hah!
@joonotfins
@joonotfins День назад
Same!
@nikmat
@nikmat День назад
Noobs
@itsPenguinBoy
@itsPenguinBoy День назад
The *actual* most frequent comment!
@RickBeacham
@RickBeacham День назад
That sounds like a mental thing. Which I do all the time.
День назад
I used to think it was "hello my frent and friends" and that makes zero sense.
@LePhenixGD
@LePhenixGD День назад
Minor tip: Prefix local CSS variables with an underscore (--_local-var) to distinguish them from global CSS variables (--global-var) This helps maintain organization and clarity in your code
@tommywheel
@tommywheel День назад
Your last piece of feedback is absolutely the best tip out of all and it’s your sixth! In particular how you mention developers should approach reading and watching tutorials. I do often, on top of an actual full project, pick up a couple of new POCs I should try and I experiment at least with a couple everyday in an isolated project or env. Whether it’s a different language, a CSS trick, a JS trick… I’ll do it once, maybe twice, keep repeating if I liked it and then make it a library. I generally never use a library until I’ve made a small POC of it so I can understand what happens under the hood. Amazing video
@RickBeacham
@RickBeacham День назад
I've learned what is possible from these small tips you do. I typically never actually copy the code. However I need to rebuild what the tutorial is teaching and fail. Failure is golden. If only we learned this when we are young!
@PioneerWhoDreams
@PioneerWhoDreams День назад
I love this little layers visualization trick. Very useful !
@clevermissfox
@clevermissfox День назад
I adore the min function and the pattern you described was divisive. I see no downside. Logical property margin and min function cuts down from two declarations (max-width and width) to one. I also hadn't seen the 100% - padding before but I've been thinking about this issue when building with Bricks because I have the full width section and then a wrapper w max width but if I put padding on wrapper then ny content is not taking up all the available space , it's max-width minus padding. Bricks builder forum suggested putting padding on full width section but unless I need bg colour, all thst section is doing is providing padding. I love the pattern of 100% - padding *2!!
21 час назад
Thank you for the tips, I found the section about the wrapper width very useful
@kobi-kobsen
@kobi-kobsen 21 час назад
Pesticide for outlining elements is so handy as browser extension - i can click a button on every website - not only my own.
@omhmpp
@omhmpp 20 часов назад
this man is a Legend in the making PEOPLE
@Nightrapture
@Nightrapture День назад
Hi man, very nice video as always. I'm a senior full stack developer and I would point a thing I didn't understand of your tips. It's about number inputs. Why on earth I should prefer to make a text input with pattern and with a dozen of javascript lines of code... instead of writing 2 lines of css, yes really 2 lines ("...a lot of CSS?") to disable the arrows. Consider that javascript is (almost) always heavier to process, instead of CSS, except for some types of animations.
@denoww9261
@denoww9261 День назад
I think the point was that on Firefox you would need that same javascript even with type="number".
@robkom
@robkom День назад
It's not just about the scroll-wheels being potentially annoying, it's about intent, UX and accessibility. Most people will use `type="number"` even when the input it not strictly an incrementable number. A great, short article on this is technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/.
@Nightrapture
@Nightrapture День назад
@@denoww9261 ...or you just let the validation do his job. 😅 Actually to me, the worst user experience I noticed is when users do something and they do not notice any sort of interaction in the site, like when is broken or frozen. That's where they spam buttons randomly because they expect something to happen. Try with your mom! 😅 This to say that if happens to write letters and the input returns the error that must be numbers, to me is not a big deal to be honest, instead of seeing nothing happening at all. Consider that firefox is like the 5% of user case anyway. Or maybe just use the input type "tel" with a pattern.
@denoww9261
@denoww9261 21 час назад
@@Nightrapture You have it backwards. If having zero feedback is bad, you definitely don't want to use type="number", since on Chrome/Chromium-based browsers it will silently drop the input if you type non-numbers.
@brendanleighton
@brendanleighton 9 часов назад
Good tips and learning suggestions!
@OQBA-ABQO
@OQBA-ABQO День назад
No no no! The wrapper-xl is actually what needs to become the standard... makes this well organized and easy to read 😉 keep on going sir! 😉
@patrickjohnson3143
@patrickjohnson3143 День назад
I like the analogy of following a tutorial vs applying a tutorial to your own project is the same as following a GPS vs using road signs and reviewing a map. Following a GPS takes little attention. But following road signs and looking at a map requires strong attention and for you to transform information into action. When you're moving to a new location, you'll learn your way around a lot quicker if you use a GPS once or twice, then try to work it out. Same is true for tutorials. Watch a long one, understand the concepts. Then just start building.
@ElCaSseGraiN
@ElCaSseGraiN День назад
Awesome Kevin, like always
@BigBaddaBoom
@BigBaddaBoom 7 часов назад
You are getting close to a million subs!!! Exciting times. How are we going to celebrate?
@thematrix29
@thematrix29 День назад
This is a good one, Kev! 😮
@daveturnbull7221
@daveturnbull7221 Час назад
I don't watch all your shorts for the same reason I don't watch all your long-form videos - time. Unfortunately my Tardis is currently broken (which means I'm limited to the same 24hrs in a day as everyone else) and given the massive number of different subjects I like to dabble in I have to pick and choose which to watch. I do really enjoy your videos though and find your enthusiasm rather invigorating.
@dexteritymaster
@dexteritymaster День назад
Also input listener prevents paste if it has any non-number and not cleans it up (3rd tip)
@carlosrangel4500
@carlosrangel4500 День назад
Awesome insights Kevin :)
@adkocol
@adkocol День назад
I like a lot 2nd tip. To me, it is very clear when you use it with - -var .
@rsdotscot
@rsdotscot День назад
For phone number submissions you can use the input type 'tel'. I'm not sure how well this validates as I tend to go a bit overkill with JS and server side validation, but it achieves the same look that you have with type 'text' and inputmode 'numeric'.
@AirmanCS
@AirmanCS День назад
At 3:51 it says DANK logo, just saying, btw you saved me with your grid expanding video, the one with breakout, fullwidth etc. My webpage is made based on that now, awesome content
@josef5600
@josef5600 День назад
Absolutely awesome thank you!!!
@mattott
@mattott 11 часов назад
This guy really knows what he’s doing! TIL 😁🎉 Also: go watch his CSS Day talk, everyone! It was so good.
@namboozleUK
@namboozleUK День назад
I beleive there's a new feature in Chrome 130 Dev tools which will highlight an element in the DOM tree if it's scroll overflowing.
@Pluvo2for1
@Pluvo2for1 21 час назад
Hmm, what a fantastic front end tip you have.
@sem-nome-west
@sem-nome-west День назад
I am a backend developer, sometimes I like to venture into the frontend by creating screens, but I have some difficulty with responsive layout, I know techniques like media query and others, however my biggest challenge is adapting layouts for smaller screens more precisely in height, there are many old devices that have very low screens and sometimes we want to display the content completely in 100vh, if anyone knows of a technique or something like that to help me with this issue. Although it is rare today to find devices in use like iPhone SE, 6, 7, 8 and it is always good to think about the design as a whole, it is very difficult to adapt these layouts to multiple devices in a harmonious way.
@KB04
@KB04 День назад
I much prefer just using media queries instead of trying to find some advanced solution to changing to phone screens. -> I know this gets repeated a lot but usually the simple solution is the best.
@sem-nome-west
@sem-nome-west День назад
I wanted to know what happens with React Native that it can adapt the screen according to the size of the device, The CSS could look something like this, I'm using Bootstrap, and its grid system
@KB04
@KB04 День назад
Tbh im at a weird place where idk if im a junior developer or not, but currently i dont feel limited by css or javascript anymore, but there is one question that i have, when should one really use width? (specifically on content containers) do you perhaps have a video on it or something already?
@KB04
@KB04 День назад
I mean i do usually figure it out, but it’s not something that is intuitive to me yet.
@przemek896
@przemek896 День назад
6:18 Always validate input on the backend. Someone can just edit the HTML in their own browser and send, for example, letters instead of numbers.
@itsPenguinBoy
@itsPenguinBoy День назад
I like toggling `::before{content: attr(class);}` to expose the class of all objects on a page in a pseudo element which can be a helpful way to track down problematic elements in your design
@markuskopter
@markuskopter 20 часов назад
Haha, I just tried that here on the RU-vid site on a * selector. What a mess! 😂
@itsPenguinBoy
@itsPenguinBoy 6 часов назад
@@markuskopter what a riot! Maybe 'id' is a better choice
@shaunpatrick8345
@shaunpatrick8345 День назад
The favicon tip responds only to the OS-level dark mode, not to the browser-level setting or to themes. Any site using a flat icon ought to provide a background for it.
@jesmarina
@jesmarina День назад
I second that: Inputs ARE annoying!
@Gary_UK
@Gary_UK 13 часов назад
Thanks. FYI I rarely watch 'shorts' as I watch most YT on a TV with Chromecast and they don't let shorts play.
@ryanquinn1257
@ryanquinn1257 День назад
I do realize I don’t get you often in shorts so appreciate this reminder to subscribe!
@shanedonlon
@shanedonlon 20 часов назад
Just a comment on the comments you got for the container / wrapper CSS, and how it wouldn't pass a Code Review. The point of the channel is to teach people CSS, how individual companies choose to implement that is up to them. But if it's valid CSS, you should absolutely be talking about it. ❤
@skillzorskillsson8228
@skillzorskillsson8228 День назад
When i ride skateboard and try to do a kickflip, i am the only one jumping up in the air. The skateboard remains on the ground and then i land on the skateboard again and then it's back to hospital again. I will never even try to ride skateboard again hahaha, i am terrible at this. But yeah, i agree with you to 100%. No matter how many tutorials you watch, you wont learn to do a kickflip just by watching a bunch of tutorials. Same goes for CSS
@AlThePal78
@AlThePal78 День назад
they literally just need you to add a comment. This is when you should be using more comments on your code. So senior and junior developers know exactly what is going on. like /* this makes the width either 926px wide or gives the width 100% minus 2rem on each side so content fits properly */
@dexteritymaster
@dexteritymaster День назад
Background trick 1:45 reminds me of 3d view in firefox.
@markuskopter
@markuskopter 20 часов назад
That has been such a cool feature! Too bad it's gone.
@programmersohel
@programmersohel 19 часов назад
Thanks.
@AndrewJohnson-ur3lw
@AndrewJohnson-ur3lw День назад
I saw a comment about a single line of css to stop users downloading images. Tried it on dev site and realised that it broke the onclick actions for icons. As ever its better to try something and know what you have done so that you can take a step backwards.
@erickdavid4257
@erickdavid4257 16 часов назад
light mode developers rise up
@cwirus99
@cwirus99 11 часов назад
The fact that chrome still to this day did not implement an overflow checker is kind of a joke.
@saradhchandra6671
@saradhchandra6671 21 час назад
What if we can make an invisible line/box in the centre of the mobile screen that activates all the hover functions related to the specific element? Can we actually achieve that or is it tooo complex to achieve that..? I wanted to know your thoughts on this. (To deal with hover on mobile devices. Even for the ones that don't have cursor access)
@zenitsu_rk
@zenitsu_rk День назад
Css vs scss which one is best to build a website?
@QwDragon
@QwDragon День назад
09:00 This js code is bad because it resets cursor position if user accidentally presses some wrong key.
3 часа назад
In Chrome is fine, but for some reason is not working properly in Safari 🤔 Any idea?
@scottklink2047
@scottklink2047 День назад
Is that bed for a cat or a dog?
@DanteMishima
@DanteMishima 9 часов назад
Yeah... I don't and will never watch shorts. Actually have them disabled
@opalizaGamer
@opalizaGamer День назад
please help macbook late 2013 use for coding this time 16gb i7
Далее
Build a Rich Text Editor in Next 13 Tutorial
12:14
Просмотров 107 тыс.
Fastest Build⚡ | Doge Gaming
00:27
Просмотров 1,3 млн
Google Drive hates developers now
23:56
Просмотров 78 тыс.
How is this Website so fast!?
13:39
Просмотров 556 тыс.
Svelte 5 Is Like React, But Better
19:33
Просмотров 57 тыс.
Please, don’t use viewport units for font sizes
9:55
10 CSS PRO Tips and Tricks you NEED to know
9:00
Просмотров 65 тыс.
Does Deno 2 really uncomplicate JavaScript?
8:55
Просмотров 418 тыс.
What have we been up to? (CEO Update)
6:50
Просмотров 10 тыс.