Today I Learned - Rocky Kev

Tagged “webdev”

  1. TIL Content sectioning

    Content sectioning or landmarks, like sidebar, content, footer. You know, like better names.

  2. TIL php-fpm

    PHP runs as a separated service when using PHP-FPM. By using this PHP version as language interpreter, requests are processed through a TCP/IP socket; so that the Nginx web server only handles the HTTP requests and PHP-FPM interprets the PHP code. The fact of having two separate services is key for increasing efficiency.

  3. TIL Considering Device Obsolescence with web development

    I'm incredibly guilty of pushing to build for the latest tech. For good reason too - you can write less code, use more native functions, and things are just more likely to work.

  4. TIL the @layer feature in CSS

    With '@layer', the entry file can pre-define layers, and their order, ahead of time.

  5. TIL Deceptive design patterns (dark patterns)

    Deceptive design patterns (also known as dark patterns) are tricks used in websites and apps that make you do things that you didn't mean to, like buying or signing up for something.

  6. TIL how CORs work

    We kinda need images to work regardless of what site they're on. I should be able to steal a image from your website and host it somewhere else. Same with JS code (Like CDNs!) But we also don't want the problem above where I can test your cookies to see if you're logged into your bank account.

  7. TIL a Accessible way to solve Read More

    Screenreaders help sight-impaired visitors have a better experience. The most annoying thing on a news website is to hear this: Read more — link, read more — link, read more — link. There's two ways to solve it.

  8. TIL how to open up your webcam with html

    This is done with the 'capture' attribute which can take two values.

  9. TIL different ways to paginate API calls

    When exposing large data sets through APIs, it needs to provide a mechanism to paginate the list of resources. That way, instead of 365,000 tweets shared... maybe you're sharing segments of 1,000 tweets. Smaller payload, faster delivery, less angry person.

  10. TIL about Micro-frontends

    Micro frontends are a new pattern where web application UIs (front ends) are composed from semi-independent fragments that can be built by different teams using different technologies.

  11. TIL of a reference to quote the price of a website

    Look, you can live in a generic rental with popcorn ceilings, odor-catching rugs, paper-thin walls and the cheapest appliances. Or you can live in a nice apartment with 10ft ceilings, hardwood floors, soundproof walls and modern appliances.

  12. TIL that it's not a pop-up, be more precise

    Teach others to stop using pop-up. It means like 10+ different things.

  13. TIL LocalForage, a small js library for caching

    An easy to use library to help with web storage. Switches between localStorage/sessionStorage, and also IndexedDB automagically. 178,000 repos can't be wrong.

  14. TIL column-count

    Using the column-count property you can break an element's content into a specified number of columns.

  15. TIL column gap for newspaper look

    Use `column-count` and `column-gap` to give it that sweet newspaper look.

  16. TIL removing ELSE statements to write clearer code

    Programs are meant to be read by humans and only incidentally for computers to execute. Donald Knuth

  17. TIL browsers explicity prevent sharing of cached third-party resources

    The original idea was that you would load resources from a CDN. Doesn't work anymore

  18. TIL gap in CSS

    replacing hacky margin-bottom with gap within CSS

  19. TIL about adding Styling to scrollbars

    You can decorate your scrollbars with CSS

  20. TIL i18n

    Internationalization for WordPress

  21. TIL Validation with pure HTML

    Validate without JS

  22. TIL Single Responsibility Principle

    Single Responsibility Principle

  23. TIL the default is the first item

    Select all the html

  24. TIL Finding Header information on any website

    Don't save API keys in your header

  25. TIL Why gray is darker than darkgray

    Colors you so crazy

  26. TIL How to disable the cache

    remove the cache with this

  27. TIL you can style console logs

    console logs wow

  28. TIL External links should not be "=_target"

    target=_blank bad for external links

  29. TIL Static Site Generators

    Easily make websites

  30. TIL How to Un-asterisk a password

    Password asterisks!

  31. TIL Axe for Accessibility

    Be more accessible.

  32. TIL Stop users from copying input

    Functions to stop this

  33. TIL Web Speech API

    Have multiple cursors

See all tags.