Profile

Cover photo
Jani Hartikainen
Works at JJH Solutions
Lived in Oulu Finland
143 followers|110,043 views
AboutPostsPhotosVideos

Stream

4
Martin Zeitler's profile photo
 
since when one has to "learn" any library while already knowing JS? while when reading the bottom line of the article, I'd file it under click-bait... while if I ever learnt something, then not to provide my email-address to any clickbait marketing campaign.
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
Top tip for making your JavaScript code testable: Make use of Humble Objects
Some of the most common testing-related questions I'm asked relate to testing real-world apps. There's always a difficult part that's hard to test. Most often,
6
2
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
Want to learn to build a real world React app? I'm writing a series of articles detailing the creation of a Slack-style chat app with React. Don't worry about JS fatigue - the idea is to do it step by step so you don't need to know everything up front.

So far I've published two articles, with new ones coming weekly

1. Getting started and building a basic prototype: http://codeutopia.net/blog/2016/01/17/learning-react-basics-and-building-a-basic-application-prototype/

2. Improving the setup with NPM and Browserify: http://codeutopia.net/blog/2016/01/25/getting-started-with-npm-and-browserify-in-a-react-project/
This is the first part in a series of articles, where we'll be using React to build a Slack-style chat application. In this article, we'll start by building
3
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
Getting started with React does not have to be hard. All you need is two script tags! 
There's a lot of talk lately about how it's hard to get started with JavaScript libraries like React. You need ES6, you need Babel, you need this, you need
1
Add a comment...

Jani Hartikainen

Tutorials & Books  - 
 
Wrote a guide on how to unit test code that uses http.request without pulling your hair out in frustration (because most http mocking libraries suck)
I have a nodejs app where I wanted to unit test some HTTP requests. Node usually makes things simple, so I expected this to be like that too... but I soon
1
1
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
How to get started with ES6 right now? Including: Setting up es6-shim and traceur, both in node and browser
When you want to use ES6 you're faced with a list of questions: Transpilers, shims, browser support... In this article, I'll give you a detailed guide on
1
2
Add a comment...
 
Tired of learning yet another JS library? How about learning some skills you'll get benefits from, even if you don't use JS at all

http://codeutopia.net/blog/2017/01/17/4-non-javascript-library-topics-to-learn-to-take-your-skills-to-the-next-level/
1
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
Advanced Sinon.js tips: How to stub more complex objects (like DOM elements)
Several of my readers have emailed me, asking about how to deal with more complex stubbing situations when using Sinon.js. In this article, we'll look at how to stub objects which are deeply nested, and when functions have more complex return values and they interact with other objects.
3
1
Jani Hartikainen's profile photoPrateek Jadhwani's profile photo
3 comments
 
I see. I totally need to see how it works with Webcomponents that use Shadow DOMs.

Thanks +Jani Hartikainen 
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
How to make unit testing complex code easy with Sinon.js
In this Sinon tutorial, Jani Hartikainen demonstrates how to make unit testing non-trival JavaScript code trivial with the help of spies, stubs and mocks.
10
5
Reza Sigaroogi's profile photoSzymon Bartosiewicz (Simon)'s profile photo
2 comments
 
or did you mean Simon
Add a comment...

Jani Hartikainen

Guides/Tutorials  - 
 
How to Unit Test Ajax requests with Mocha, Chai and Sinon 
7
3
Add a comment...
 
What do you think is the most important JavaScript library or tool to know in 2015? If you could make all JS devs learn one, which would it be? Not necessarily just for beginners.
4
1
Chris Stead's profile photoTony Brown's profile photomarco gobbi's profile photoSebastian Lasse's profile photo
19 comments
 
Same answer like +Benjamin Santalucia : http://dojotoolkit.org – in the browser and on node and including nice upcoming things we can use today like
http://dstorejs.io,
http://dgrid.io,
http://theintern.io
Add a comment...

Jani Hartikainen

General Discussion  - 
 
Isn't it fun to find a comment in code that's completely out of place and useless? What if you could write fewer comments and still keep the code easy to
5
1
Jani Hartikainen's profile photoAlex Quirk's profile photo
3 comments
 
I agree, and of course I prefer to write and work with clear, declarative code. I'm just always wary of people giving me reasons not to do something
Add a comment...
Story
Tagline
I write codes for internets / jhartikainen on twitter / the blogger at codeutopia.net / zomg on irc
Bragging rights
I'm finnish
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Oulu Finland
Work
Occupation
Software developer
Employment
  • JJH Solutions
    Founder / Consultant, 2013 - present
    I make people's software-related problems disappear.
  • Wantlet
    Senior Software Developer, 2010 - 2012
Basic Information
Gender
Male