Is jQuery still a thing?

There’s a big stigma around using jQuery lately . It seems like everyone is insistent on avoiding it in modern JavaScript development. Lately developers are all talking about things like TypeScript, ECMA2015+, and the current flavor of the month framework.

I think this is silly. jQuery is still very much relevant in 2017 — it just isn’t getting talked about.

Read on: I Still Love jQuery — And You Should, Too.

Reacting to React: setup a base project

I wanted to have a step by step procedure to have a basic React project to fiddle with, without using some online service like JSFiddle.

Maybe I’m an old-fashioned developer, but I like to have the source code for my experiments on my hard drive, always available, even when I’m offline. That’s also why in the examples below I download every single library.

So let’s start!

Continue reading “Reacting to React: setup a base project”

Reacting to React – Episode 2

What to do after following the official React tutorial?

My suggestion is RTFM! (React docs)

It’s not sexy, it’s not appealing but it’s like medicine: you’ll not like it, but it will make you feel good.

I know what you’re thinking: “I don’t need the manual. Show me some code, show me how to make a todo list and I’ll figure out the rest”. 

I’ve been there: what you’ll end up with is a collection of pieces and you’ll miss the big picture.

Try it the other way around: read all the documentation (it’s not that big) and then follow the tutorials. You don’t need to read it thoroughly: a fast read, just to know the keywords.

In this way, you’ll know that componentDidMount is not some custom-named method, but it’s part of the Component lifecycle.

Or you’ll understand the reason why there is an className attribute and not a class one.

In short: you’ll have something that will help you to connect the dots, and everything will be clearer.

Just take your time to read the documentation, it will be worth it.


Cover image: Learning to swim

Reacting to React – Episode 1

I have not given to much attention to React as everyone else. I was in love with Backbone and Marionette.js at the time and “My views are fine, thank you. I don’t need yet another view library!”.

But in the end, I thought that it was a good time to begin looking at this “JavaScript library for building user interfaces”.

So these will be a series of posts, mainly for myself, for documenting my reaction to the React hype. I will post about resources, articles, and tutorials about React and its environment.

I like to start from the beginning when learning something. So I thought that the official React site would be a good first step.

Play around with the interactive home page, and then head to the tutorial. It should take one hour or two depending on how much you read the documentation. I suggest you to do so, as it will help you build a “glossary” (JSX? Component? props? state?)

After that, Thinking in React will give you a good approach to building things with React.

I think that this will be more than enough for the first day or two.

See you next  time!


Cover Image: Learning to swim

Sapere prima di fare (sulla coincidenza)

Ecco un altro episodio che mi ha insegnato come sia necessario sapere prima di fare.

Il compito che mi era stato assegnato era semplicissimo: mostrare una data formattata in JavaScript, tipo 7 Ottobre 2012. Che difficoltà poteva esserci?

Continue reading “Sapere prima di fare (sulla coincidenza)”