hjertnes.blog

Spacemacs

15.01.2018 01:00

There is some confusion about what Spacemacs is for some strange reason. A lot of people seems to believe that it is a fork of Emacs. It might be beause of the writing on their website, that kind of supports that statement. But it is wrong. What Spacemacs is, is rather simple, it is a git repository that is a emacs configuration. It comes with a lot of great features out of the box and it also auto updates. And it also has a special way of configuring your emacs setup.

There are many good things about that. It does make it easier to get started with emacs, because most of what most users want works out of the box, as long you activate the right “layers”. And the way you configure spacemacs also makes it less likely that you end up in “emacs.d bankrupsy.”. Something that we VIM users used to mock emacs users for. It is when you end up in a place where you can’t figure out how to fix your config and have to delete it.

Webpack

15.01.2018 01:00

Webpack is your compiler, and learning how to use that tools shouldn’t be the first thing you do, because a lot of people will probably give up before they get started. I think that most experienced developers should understand what the webpack configuration does. And all teams should have at least one person that can wrangle together a config file from scratch.

I say, start with create-react-app, then learn how to write react code, and then learn how webpack works when you have a thing you need to do that create-react-app can’t do.

It isn’t that complicated really. You have a entry point (the javascript file where webpack will begin) some configuration of how you want to transform your code, some configuration of how the output should be and that’s it. The great thing about using something like webpack is that you can build everything from your javascript code, and styling plus generating HTML files (both for development and production). You can for example add a hash to the file names to avoid caching problems in production.

I typically start with create-react app these days, and then move on to using my own webpack, if or when I need to.

#

14.01.2018 01:00

#

14.01.2018 01:00

I’m going to do my best to not make jokes about checks and health care in America this year.

#

14.01.2018 01:00

hjertnes/mb.el: A Emacs Lisp function to post to Micro.blog’s

#

13.01.2018 01:00

#

13.01.2018 01:00

Annoyance of the day: people saying “pod”

#

13.01.2018 01:00

This is the funniest thing I’ve seen in a very long time. 😂

#

12.01.2018 01:00

#

12.01.2018 01:00

😂