recentpopularlog in

dirtystylus : webdev   580

« earlier  
How to loop through referenced entities? | Goran Nikolovski
Both Entity reference and Entity reference revisions fields have referencedEntities() method
drupal  drupal8  entityreference  webdev  via:chrisarasin 
20 days ago by dirtystylus
Disenchantment - Tim Novis
After years of working in SPA-land, rarely touching a server-rendered website, I was amazed at how quick it was to get up and running and start feeling productive right away. Developers are quick to extoll the virtues of tools like Create React App, and whilst I agree - they’re great! It really takes a while to start feeling productive when setting up a new SPA from the ground up. So much non-work has to be done before the real work, what you’re likely being paid to do, can begin.

I had an admin panel with authentication, pages, routes, templates and CSS, flash messaging, The Works™️ set up in an afternoon. I hadn’t felt this productive in years. But best of all, it was fun. Of course I still enjoy working with our modern, flashy tech stack - but this felt so different. No waiting for recompilation. No React devtools. No props and state flying around. No convoluted centralised state management. No worrying about loading states. Complete bliss. It was functional, it was fast, and it felt solid. The only thing I legitimately missed from a “developer experience” perspective was TypeScript. TypeScript is great, and gives me much more confidence when shipping code.

I would urge front-end developers to take a step back, breathe, and reassess. Let’s stop over engineering for the sake of it. Let’s think what we can do with the basic tools, progressive enhancement and a simpler approach to building websites. There are absolutely valid usecases for SPAs, React, et al. and I’ll continue to use these tools reguarly and when it’s necessary, I’m just not sure that’s 100% of the time.
programming  javascript  webdev  tools  nodejs  reactjs  backend 
may 2019 by dirtystylus
Responsive Image Breakpoints Generator by Cloudinary
Breakpoint generator for responsive images:



Good way to see the impact of different confi…
tools  webdev  imagery  imagescaling  rwd 
march 2019 by dirtystylus
Aerotwist - Web Components and the Three Unattractive Pillars
I have this idea that there are three underpinning concerns every developer should have when they build their projects: accessibility, security and performance. You can immediately see how one could affect the others, but their relationship is nuanced. They’re not appealing, though, because you’re never going to persuade the people paying for your project (unless they’re savvy) that these unseen aspects are critical.
accessibility  security  performance  via:beep  webdev  webcomponents 
august 2018 by dirtystylus
Have This Chrome Extension
You just want to have this; a perfectly cropped PNG of a UI component at the click of your mouse.
tools  extension  chrome  webdev 
june 2018 by dirtystylus
json - Get WP Navigation Menu from REST API V2 - WordPress Development Stack Exchange
Menus are currently not available in the WP Rest. So what you need to do is register your own custom endpoint and then just call that route from your application that needs it.

So you would include something like this (in your functions.php, plugin, wherever):

function get_menu() {
# Change 'menu' to your own navigation slug.
return wp_get_nav_menu_items('menu');
}

add_action( 'rest_api_init', function () {
register_rest_route( 'myroutes', '/menu', array(
'methods' => 'GET',
'callback' => 'get_menu',
) );
} );
wpapi2  wordpress  api  REST  webdev  decoupledcms 
april 2018 by dirtystylus
« earlier      
per page:    204080120160

Copy this bookmark:





to read