loading...
Hugo Di Francesco profile picture

Hugo Di Francesco

Developer, JavaScript, CSS and web. Writing at Code with Hugo.

Location London Joined Joined on  Twitter logo GitHub logo External link icon
Education

MEng Mathematical Computation - University College London (UCL)

Work

Software Engineer at Eurostar

All 57 Comments

re: Simple and effective: Unit-testing Alpine.js components with Jest ⏱️⏩
I haven't tried to mock the magic methods, but all the stuff ...
re: Simple and effective: Unit-testing Alpine.js components with Jest ⏱️⏩
Nice writeup in terms of writing isolated unit tests for comp...
re: Refactoring node.js (Part 1)
Node 10+ has a promisified version of fs under fs.promises....
re: 30 Day Challenge: 30 Posts in 30 Days
no copy of an old post A very important skill down the lin...
re: Unlock more dev.to features
Not sure, I think it might have been discontinued, haven't ...
re: Which editor do you use when opening files like .bash_profile, etc?
vim because it feels the most natural to open a path starti...
re: An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres
Re TypeScript I didn't want to add a build step in. Pg-pro...
re: An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres
Definite oversight on my part 🙂 thanks for pointing it out
re: An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres
Yes it does, ergonomics of templates with prepared statemen...
re: Add days to a Date in vanilla JavaScript
Glad to hear that, I run a JS best-practices etc newsletter...
re: Deployment options: Netlify + Dokku on DigitalOcean or Hetzner Cloud vs now.sh, GitHub Pages, Heroku and AWS
You need to set canonical_url I'm the frontmatter I believe...
re: ELI5: Why use a function declaration, expression, or an IIFE in JavaScript?
The one place where IIFEs can still be useful is surprising...
re: Oh, Stack Overflow
I think stackoverflow is a decent resource but I will still...
re: 12-factor Node.js application configuration management without the `config` npm package
That's a good shout, I didn't include it because your env v...
re: What's your coding origin story?
Started off scripting interactions in RPGMaker. Tried and ...
re: Connect to MongoDB on Dokku with your local command line or Robo3T
For your web apps, you can use the letsencrypt plugin Have...
re: Technical content workflow for “Code with Hugo”: static site, Paper, Medium, DEV and Buttondown
I'm a developer and don't want to learn/modify WP (which yo...
re: Mocking JavaScript's current Date in Jest tests
global.Date = myMockConstructor
re: GitHub-style contribution graph for your blog
I think if you make it a weekly-sized thing it's definitely...
re: GitHub-style contribution graph for your blog
dev.to RSS feeds are 15 items long so if you post quite oft...
re: Simple, but not too simple: how using Zeit’s `micro` improves your Node applications
Yep, I mean compose is just a reduce away isn't it? 😉
re: 6 months of Code with Hugo, in numbers
It's unlikely to be ads (in the AdWords sense), possibly so...
re: Unlock more dev.to features
Number of views per post in your dashboard. That's the main...
re: Why I'm moving to Dev.to?
dev.to/membership It's just the number of views for now.
re: Why I'm moving to Dev.to?
Agreed, glad you're joining us on dev.to though.
re: Archiving git branches
The title is quite confusing because if I recall, git has a...
re: [Advice] Options to Handle Users in Node Express User dashboard instead of Okta or Auth0 3rd Party Service
"Add user authentication" is sort of "build a webapp 101" i...
re: Why I'm moving to Dev.to?
You can have your view stats if you become a paying member ...
re: Do I really need to create classes in two places?
"While I don't have a big application, I still feel as thou...
re: How to add event listener to dynamically added elements
This pattern is usually called event delegation (for anyone...
re: I'm having some "not this again" feelings with Parcel, how should I be feeling about this tool?
It's simpler to get off the ground than webpack, less confi...
re: What in the IF is a ternary?
Since ternaries push you to use expressions, it makes your ...
re: Ask DEV: Would you like to poll your audiences to find out what your next blog post should be
When I'm being clever I look at Google search console for r...
re: Switching the lights on: Hugo vs Hugo config files
You're right for most of the above points, I like cloudflar...
re: Switching the lights on: Hugo vs Hugo config files
HTTPS (pretty sure it didn't use to be a thing with custom...
re: Do we still need turbolinks/PJAX?
That makes a lot of sense, it's less about the flash to whi...
re: Why Your Technical Blogs Belong On Dev.to
I agree the dev.to community is awesome but honestly having...
re: Just enough bash to be dangerous
Thanks I've updated it.
re: What are the great function/method/etc. names in popular libs/languages?
unless in Ruby, although it's more of an operator. Everyth...
re: I am afraid that i will fail
Failure is part of the learning process. Everyone fails. E...
re: Bring Redux to your queue logic: an Express setup with ES6 and bull queue
Happy to help :)
re: Learn New Technology as a Way of Stepping Up Your Understanding of Your Current One
The tipping point is when you start applying things you've ...
re: Responsive, semantic images with CSS
object fit degrades ok anyways, the image will be stretched...
re: Responsive, semantic images with CSS
That's true, I guess it still works if one of the height or...
re: How to make beautiful, simple CLI apps with Node
Glad it helped 😊 shame I haven't done much cross platform s...
re: How to make beautiful, simple CLI apps with Node
Yeah that was done for the sake of simplicity in a blog pos...
re: What's your favorite editor/terminal color scheme?
Yep, although the I'm running iterm2 Sindre just has the ni...
re: What's your favorite editor/terminal color scheme?
Pure and Snazzy.
re: What Is Your Main Language?
JavaScript. For green and brownfield development using a m...
re: Using ES6 classes for Sequelize 4 models
From the docs you should be able to do schema.loadClass(MyM...
re: NodeJS Frustration
Try keystoneJS, it doesn't have themes but the admin side i...
re: NodeJS Frustration
Try keystoneJS, it doesn't have themes but the admin side i...
re: Has anyone created a Node.js app that renders HTML instead of JSON?
For templating in Node, I've used Handlebars.
re: Has anyone created a Node.js app that renders HTML instead of JSON?
Handlebars allows you to have some template sharing (main a...
re: If you could start over from scratch, how would CSS work?
Just the way it does 😁 CSS is resilient and works
loading...