Author Archive
24 11 2016
Maks Nemisj | javascript |
Today JSON is widely used in different corners of software development. It’s used as data format, as configuration or even as in memory database. At my current company we also use it as configuration format. The more I use it, the more I have feeling that it’s “a bit” inconsistent and “raw”. You would expect […]
configuration, javascript, json, parse
23 11 2016
Maks Nemisj | javascript |
It’s going to be a short one, but powerful. Do you remember I wrote previously why getters/setters is a bad idea in JavaScript? I didn’t change my mind, I do still think so, but now I found one valid place where I can and DO want use them. You will never guess. (just kidding) Unit […]
6 09 2016
Maks Nemisj | javascript |
Do you know what would be the result of the following code executed in node.js without babel and any transpiling? example.js Do you know the result ? Think good … And one more time Well, it appears that it depends on the version of the node.js ( and guess […]
execution, javascript, node.js
27 06 2016
Maks Nemisj | javascript |
When preparing application for deploying to production env I want to ensure that everything is properly logged, especially things which are unexpected in code. That’s why, I think, proper error handling is crucial to any application. This is a short article on how to do an error handling when going live in isomporhic web app […]
error, express.js, expressjs, fluxible, isomorphic, javascript, node.js, nodejs, react.js, reactjs
28 04 2016
Maks Nemisj | javascript |
If you’ve decided to move react components to es6/es2015 syntax you’ve might found out that defining propTypes and contextTypes is not that seamless as it was. Babel@6.7.7 doesn’t yes support static properties on Classes and the most evident way to use propTypes is to append them to the class at the end: Though there is […]
es2015, es6, javascript, react.js, reactjs
26 04 2016
Maks Nemisj | javascript |
If you have moved to Ubuntu 16.04 you can find out that your old ViM stuff is not working – Some plugins are broken. This is due to the change in python interpreter for ViM ( https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#VIM_defaults_to_python3 ) To fix this you have to use different package of vim, like vim-gnome-py2. If you’re like me […]
plugins, vim, vimscript
4 01 2016
Maks Nemisj | javascript |
I still have to used to this new arrow functions and implicit return statement. If you’re unfamiliar with them, here is the doc – https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions Look at this two ‘almost’ identical parts of code and think what is the difference between them? code-one.js and this one code-two.js They look the same, except that one will […]
ecma2015, functions
6 10 2015
Maks Nemisj | javascript |
UPDATE (15 May 2020) : I see a lot of comments regarding TypeScript and that there is no issue with setters/getters while using static typing. Of course, you can safely use getters/setters in the environment, which guarantees static type check, but this article is about vanilla JavaScript. This article is my opinion why I think this […]
classes, getters, javascript, setters
10 09 2015
Maks Nemisj | javascript |
Currently I’m working on a project which uses GitHub. Here we work with feature branches, which means every feature gets its branch and every branch has to go through the pull request and then merged back to the main line. Whenever branch is merged back it get’s deleted in the GitHub with button “Delete branch”. […]
bash, git, github, python, scripts
24 07 2015
Maks Nemisj | javascript |
Have you ever needed to repeat a string or character multiple times? Some times I have this need ( don’t ask why ) and it was always annoying for me to do this. For such a simple operation, you have to write for loop and concatenate string. I know, there is now repeat available in […]
bit shifting, experiment, javascript