Christian Johansen
cjohansen.no · Personal blog · on HN since 2009
Christian Johansen is a Norwegian developer who writes about Clojure, Emacs, Go, JavaScript testing with Sinon.JS, and Rails deployment.
What HN saysHN links it for Clojure and Emacs tutorials, including a deps.edn guide that a commenter calls wonderful, and older Rails and Git server guides.
15HN people shared it
7linked it in comments
19stories submitted
234story points
6 years agolast shared
2009people per year2026
Most-shared posts
- 1Processing data with Clojure and Go2 people · 7 points · first shared 2018 · discussion on HN
- 2An introduction to Emacs Lisp2 people · 4 points · first shared 2012 · discussion on HN
- 3Sinon.JS v0.7 Released (Standalone test spies, stubs and mocks for JavaScript)2 people · 1 points · first shared 2010 · discussion on HN
- 4Multi-staging environment for Rails using Capistrano and mod_rails2 people · 1 points · first shared 2009 · discussion on HN
- 5Clojure to die for1 people · 173 points · first shared 2014 · 73 comments on HN
- 6Building static sites in Clojure with Stasis1 people · 26 points · first shared 2014 · 3 comments on HN
- 7Norways biggest websites tell IE6 users to upgrade1 people · 6 points · first shared 2009 · 2 comments on HN
- 8A Better Playlist Shuffle with Go1 people · 4 points · first shared 2018 · discussion on HN
- 9Pure, functional JavaScript1 people · 3 points · first shared 2013 · 1 comments on HN
- 10Editing for Cleaner Merges1 people · 3 points · first shared 2020 · discussion on HN
- 11Git Subtree for Multiple Directories1 people · 2 points · first shared 2018 · discussion on HN
- 12Using a far future expires header1 people · 1 points · first shared 2009 · discussion on HN
- 13Javascript Test Spies, Stubs and Mocks1 people · 1 points · first shared 2010 · discussion on HN
- 14Securing HAProxy Sites with Let's Encrypt SSL Certificates1 people · 1 points · first shared 2018 · discussion on HN
- 15Pimp my development environment1 people · 1 points · first shared 2009 · discussion on HN
What HN people wrote when they linked it
dimovich · 2019-07-05
What I really like about deps.edn is the ability to add git repos and also local projects as deps. Makes forking and testing libraries a charm.
Another wonderful tutorial about using deps.edn that contains additional tips for Emacs -- https://cjohansen.no/tools-deps-figwheel-main-devcards-emacs/
vog · 2014-03-11
Small typo:
The link to Clojure points to "http://cjohansen.no/clojure.org" instead of "http://clojure.org".
cjohansen · 2014-03-11
It's not really intended as an "evangelist" post. It's just describing some details that makes a big difference to me in my day-to-day work. I guess it's more of a "hey, fellow Clojure programmer, don't you agree that these details really put the icing on the cake?" kind of post.
Maybe the other post I posted the same day would give newcomers a better impression of what using Clojure is like in practice (lots more code, more in-depth): http://cjohansen.no/building-static-sites-in-clojure-with-stasis
fhirzall · 2010-12-20
You could run something like Autotest for continuous testing & quality control: http://ph7spot.com/musings/getting-started-with-autotest
You can run Capistrano for continuous deployment: https://github.com/capistrano/capistrano.
If you wanted to go the extra mile you could also setup different staging environments on your server:
http://cjohansen.no/en/rails/multi_staging_environment_for_rails_using…
sohooo · 2010-12-02
If you need a git server for your company, why not set up Gitorious?
The initial setup can be quite challenging, but I found this guide to be quite useful: http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server
augustl · 2010-07-03
Use JsTestDriver to write and run your tests.
One of my pet projects is open source and tested with JsTestDriver [1], that should be a good starting point for learning more about how to test JavaScript in webapps.
I also like to use Sinon [2] for stubbing and mocking. The author of Sinon is also putting the finishing touches on a book about TDD-ing JavaScript.
EDIT: calendar-logic.js [4] an example of how you can extract and test logic in separate libraries. It's being used on figureoutwhen.com.
[1] http://github.com/augustl/figureoutwhen.com
[2] http://cjohansen.no/sinon/
[3] http://www.amazon.com/Test-Driven-JavaScript-Development-Developers-Li…
[4] http://ditrw.com/calendar-logic-dot-js/
wayne · 2009-03-03
I found the original linked page much more descriptive than the Ajaxian summary: http://www.cjohansen.no/en/ruby/juicer_a_css_and_javascript_packaging_… Juicer is written in Ruby. You need Java too if you want to use JsLint and YUI Compressor.
Read the Ajaxian comments before you use. One personal rightfully noted that you shouldn't add parameters for cache-busting because it'll also bust server-side proxies/caches. The right way to do this is to rename the file, which Juicer supports.