Open in app

Sign In

Write

Sign In

Hugo Di Francesco
Hugo Di Francesco

923 Followers

Home

About

Feb 4, 2019

How to integrate a Python/Ruby/PHP shell script with Node.js using child_process.spawn

There are occasions when running a Python/Ruby/PHP shell script from Node.js is necessary. This post looks at best practices around leveraging child_process.spawn to encapsulate this call in Node.js/JavaScript. The goal here is to have an interoperability layer between Node.js and an outside shell. …

JavaScript

7 min read

How to integrate a Python/Ruby/PHP shell script with Node.js using child_process.spawn
How to integrate a Python/Ruby/PHP shell script with Node.js using child_process.spawn
JavaScript

7 min read


Published in The Startup

·Nov 26, 2018

Post Frequency: from prototype to production with Vue + Node

If you want to ship, use the tools you know. — A lot of people — Let’s apply that principle: I’m building Post Frequency/Accountable Blogging, I’m familiar with Vue and Node-based backends. Netlify makes frontend deployments trivial and I’ve settled on Dokku for databases/backend applications hosting. See how I deploy my applications Deployment options: Netlify + Dokku on DigitalOcean vs now.sh, GitHub Pages, Heroku and AWS.

JavaScript

5 min read

Post Frequency: from prototype to production with Vue + Node
Post Frequency: from prototype to production with Vue + Node
JavaScript

5 min read


Nov 19, 2018

A simple JavaScript/Node coding setup on Mac OS X

Here’s how I get productive for JavaScript/Node on Mac OS. — Terminal Setup iTerm2 Install iTerm2 Change edit mode to natural text iTerm Preferences → Profiles → select your profile → Keys tab → Load Preset… → Natural Text Editing (See this StackOverflow answer)

Mac

5 min read

A simple JavaScript/Node coding setup on Mac OS X
A simple JavaScript/Node coding setup on Mac OS X
Mac

5 min read


Nov 7, 2018

Progress and roadblocks: a journey into open-source

Enhancing generators for ES6 in the Sequelize CLI — This is the story of my discovery of ES6-class style model definitions with Sequelize (see Using ES6 classes for Sequelize 4 models). The realisation that the current Sequelize CLI model generator didn’t support it (as is expected since it’s not the most common way of doing it). …

Github

5 min read

Progress and roadblocks: a journey into open-source
Progress and roadblocks: a journey into open-source
Github

5 min read


Published in The Startup

·Oct 21, 2018

6 months of Code with Hugo, in numbers

Going from 0 to small. A developer’s journey starting a technical blog from scratch. — Stats in this post as of 21st of October, follow me on Twitter for monthly updates. Contents: Timeline Post count, total word and read time Top visited Top day, analytics and search traffic data Highlights Newsletter, dev.to and Twitter Code and example repositories Revenue Timeline First commit: 10th of March 2018

Blogging

3 min read

6 months of Code with Hugo, in numbers
6 months of Code with Hugo, in numbers
Blogging

3 min read


Oct 8, 2018

ObservableHQ notebooks for JavaScript demos and prototypes

ObservableHQ is a platform being built by Mike Bostock (creator of the D3 visualisation library), Jeremy Ashkenas (“Made CoffeeScript, Backbone.js, Underscore and other ragbag” from his Twitter bio) and Tom MacWright (creator of the big presentation framework, simple-statistics and documentation.js as well as D3 contributor amongst other things). Observable is…

JavaScript

5 min read

ObservableHQ notebooks for JavaScript demos and prototypes
ObservableHQ notebooks for JavaScript demos and prototypes
JavaScript

5 min read


Oct 1, 2018

How to impress interviewers by using recursion in JavaScript with ES6 features

There’s nothing as flashy and useful for JavaScript interviews than recursion. If you just want to be impressive with recursion in JavaScript, here are some semi real-world (technical test type) examples. The short definition of a recursive solution to a problem (in computer science) is: don’t use iteration. This usually…

JavaScript

4 min read

How to impress interviewers by using recursion in JavaScript with ES6 features
How to impress interviewers by using recursion in JavaScript with ES6 features
JavaScript

4 min read


Published in HackerNoon.com

·Sep 27, 2018

Writing multiple Vue components in a single file

Writing multiple components in one file is a pattern from React where some files contain multiple components. — Some of those components are “private” to the file/exported component since no other component needs to consume them. Here’s Swizec complaining about it: Since I don’t have the full code for the above, we’re just going to use the default “Hello World” component from a project scaffolded using vue-cli…

JavaScript

4 min read

Writing multiple Vue components in a single file
Writing multiple Vue components in a single file
JavaScript

4 min read


Sep 10, 2018

A gentle introduction to GraphQL API integrations

GraphQL is a great alternative to REST (or other HTTP API designs). This is a quick introduction to the core concepts around consuming a GraphQL API. To see some examples consuming a GraphQL API: In Python, see Python GraphQL client requests example using gql In JavaScript browser and Node, see…

GraphQL

4 min read

A gentle introduction to GraphQL API integrations
A gentle introduction to GraphQL API integrations
GraphQL

4 min read


Published in HackerNoon.com

·Sep 5, 2018

JavaScript GraphQL client requests in Node and the browser using `graphql.js`

An example consuming a GraphQL API in JavaScript from Node and the browser using graphql.js — See the example live: https://codewithhugo.com/js-graphql-client-example/. Full repo: https://github.com/HugoDF/js-graphql-client-example. Fetching from Node Fetching from the browser GraphQL documentation tools This was sent out on the Code with Hugo newsletter last Monday. Subscribe to get the latest posts right in your inbox (before anyone else).

JavaScript

3 min read

JavaScript GraphQL client requests in Node and the browser using `graphql.js`
JavaScript GraphQL client requests in Node and the browser using `graphql.js`
JavaScript

3 min read

Hugo Di Francesco

Hugo Di Francesco

923 Followers

https://codewithhugo.com . JavaScript Developer. UCL Mathematical Computation alum.

Following
  • Eric Elliott

    Eric Elliott

  • Sindre Sorhus

    Sindre Sorhus

  • Netflix Technology Blog

    Netflix Technology Blog

  • Phil Nash

    Phil Nash

  • Sunny Singh

    Sunny Singh

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech