Hacker Newsnew | past | comments | ask | show | jobs | submit | ericdouglas's commentslogin

Just changed the blog theme - it now works perfectly with JS disabled - serious, huge thanks for telling me this, I wasn't aware of that issue.


Crazy stuff! :D

I'm wondering how our future-self would feel about such cleverness haha


I really liked this:

    "#{String.to_integer(hours) + 12}"
Used it now refactoring the code, many thanks for your suggestion!


Yeah, that's the point: "i bet I could find a function in the standard library that could help me solve this problem"


Yeah, in my opinion that's an important skill to have when learning a language. I already know how to write quicksort, writing it in Elixir will give me some sense of understanding of the language, but knowing how to find it in the standard library will make me more efficent of a programmer in Elixir.


Totally!


Awesome! Many thanks for the tip. I'll refactor the code :)


In HR you can see other solutions as well


Yes, great option.

One thing I like to have to write tests is actually practicing writing tests :)


Thanks for your comment. I'll fix this.


Many thanks for your comment. You are totally right.

This is a theme from the Hexo platform I use.

I'll probably create a theme to address this and other issues.


> "if you don't have the first part of dedicated learning and wide exposure (without a motivating problem per se) you inevitably end up doing the lazily evaluated "stack overflow driven development" since you haven't been exposed to the breadth of the language, frameworks, etc systematically. in other words, you don't know what you don't know."

Totally agree. I'm doing exactly this. But instead of only read books and type the code, I'm also after each section of the resource (doc || book), practicing code challenges :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: