HNHacker News
TopNewBestAskShowJobs

brown-dragon

551 karma · joined January 8, 2014

submissionscomments
brown-dragon··on Ask HN: What do you want to learn in 2016?
Do you mean online marketing tools and sales outreach for your existing business?
brown-dragon··on Ask HN: What do you want to learn in 2016?
I'd love to take this up too. Is there anything you would like in this area? It looks like the existing tutorials/blogs are working great for you.
brown-dragon··on Ask HN: What do you want to learn in 2016?
> The tricky part is that my "good code" is someone else's "bad code"

I feel your pain...

brown-dragon··on Ask HN: What do you want to learn in 2016?
I have been thinking about problem (1) off and on for the last year. The best strategy I've come up with so far is to set up a ritual that I will end the day with 10-30 minutes of code cleanup. Being systematic about it helps me get acquainted with a lot of the code while clearing technical debt.
brown-dragon··on Ask HN: What do you want to learn in 2016?
What kinds of projects do you envision using C++ for? Do you want to learn from scratch or just the new/modern C++ parts?
brown-dragon··on Ask HN: What do you want to learn in 2016?
I've had this feeling for a while that unit testing tools are ripe for 'disruption'. The main problem I see is relating the test cases "back" to features and broken/flaky tests.

For procrastination, the thing that works for me is timeboxing (setting a timer for as little as 10/20 minutes and just getting started). See if that works for you.

brown-dragon··on Ask HN: What do you want to learn in 2016?
This is a very cool intro to the new features of JS! Thanks! :-)

What part here is Currying?

brown-dragon··on Ask HN: What do you want to learn in 2016?
To really "get" meta-programming, try using Lisp/Scheme. I've found that really helps to "grok" the concepts and makes it much easier to understand in C++.
brown-dragon··on Ask HN: What do you want to learn in 2016?
I can do "front-end programming using javascript" and "fundamentals of machine learning" but have no clue about "deduction systems".

Amongst the two, which would you say interests you more?

brown-dragon··on Ask HN: What do you want to learn in 2016?
As jfoutz says - Go is almost like a "better" C. I really enjoyed learning Go last month (I wrote a go server for a mobile app of mine). The "Tour of Golang"(https://tour.golang.org/welcome/1) is a really good place to start.

Is there anything I could write that would make it _easier_ for you to learn? Taking up project/quizzes/follow-ups...?

brown-dragon··on Ask HN: What do you want to learn in 2016?
Ha! I know how you feel! Check out "Learning how to learn?" (https://www.coursera.org/learn/learning-how-to-learn) - it's an excellent course that may help you out. (Though not with jiu-jitsu, kung-fu, and b-212 helicopter piloting I'm afraid :-)).
brown-dragon··on C Puzzles
You're right. My mistake.
brown-dragon··on C Puzzles
I can't figure out why is it checking `pr` in the while loop. Perhaps it's simply been left over from an earlier version.
brown-dragon··on C Puzzles
Good catch! And even if we do add another "%c" to fix it, I don't know why we would need to null-terminate a null-terminated string.
brown-dragon··on Diet that mimics fasting appears to slow aging
The blog post makes interesting points but it's just an argument without data. Studies like this one[1] seem to show that skipping breakfast and eating late do correlate with negative outcomes.

[1]: http://www.forbes.com/sites/alicegwalton/2013/07/23/why-is-s...

brown-dragon··on C Puzzles
That was fun to read. Why do you need a terminating null (juz)?
brown-dragon··on The Umbrella Reinvented
Agreed. I initially felt the website was nice enough but it seems to be putting off some people.

The video for their kickstarter campaign was also very interesting: https://www.youtube.com/watch?v=VmvoU9cRzn4

According to their kickstarter page they are funded and starting manufacturing soon.

brown-dragon··on Diet that mimics fasting appears to slow aging
I have always heard that skipping breakfast is bad while eating a small dinner is good[1]. Isn't this diet doing the exact opposite?

[1]: http://circ.ahajournals.org/content/128/4/337.abstract?sid=6...

brown-dragon··on The Art of Command Line
`set -o vi` allows us to use `vi` bindings instead of the default `emacs` bindings.

The way to think about it is that the prompt starts out in `vi insert mode` so whatever we type in will just be inserted at the prompt. However, we can hit the`Escape` key and move into `vi normal mode` where the keys are interpreted as normal `vi` commands. So, for example, once we hit `esc` we can navigate around the line using `h` and `l` and navigate history (previous lines) using `k` and `j`.

Commands I find very useful are:

`jk` : for history navigation

`bw`: for moving in the current line. These are word movement commands that are faster to navigate with.

`cw` : similarly, changing a particular word in the current line is also great. This works particularly well with history - retrieve a previous command and change a word or option

`dw` : for deleting the current word

`/` : is a fantastic command for searching history. `/cd` will bring up our last change directory command and just hitting `n` will cycle through all our change directory commands that are in history.

`AI` : to insert at the beginning/end of line

...and so on. If you have `vi` muscle memory it's a fantastic option for working on the shell.

(edit: Formatting)

brown-dragon··on Ask HN: How do large engineering teams manage application exceptions?
Are you talking about java exceptions?
brown-dragon··on Ask HN: What is the most mind blowing book you've ever read?
Ha! That was excellent! :-D :-D
brown-dragon··on Ask HN: How does GitHub minimise wasted disk space from duplicate files?
I am not sure exactly how github is set up but there is a simple way of limiting the impact of duplicate files: use hardlinks.

`git clone` uses hardlinks when possible so if the fork is on the same filesystem, it should limit duplication automatically. The caveat here is that `git gc` has to be handled with more care (all references have to be updated).

`git clone` also provides a `--reference` for more explicit caching of duplicate objects. This also requires some care during cleanup but otherwise can work pretty well.

brown-dragon··on Ask HN: What's wrong with my launch page?
I would remove the 'etc' and expand the copy. Maybe add some bullet points and images. As it stands, it looks a bit unprofessional, so I would be wary of providing my email. HTH.
brown-dragon··on Ask HN: What is the most mind blowing book you've ever read?
"The Gods Themselves" is a easy to read but truly mind blowing book. Asimov's characters are a bit wooden but the ideas in the book really got me to look at the world differently.

The line "I have an idea, a simple idea, based on the quite obvious fact that the number two is ridiculous and can't exist." has stayed with me for over a decade now as has the surprising lovemaking of the aliens.

For a hard read that you may enjoy I'd suggest "The Book of the New Sun". I'm re-reading it for the fourth time and it just gets better.

brown-dragon··on Goodbye?
I don't know you but please believe me - I care for you and want you to be happy. And there are a lot of people like me who would do a lot for you.

Reach a suicide hotline. Let us help. The world will be less if you leave.

brown-dragon··on Virtual DOM in Elm
Could you give some examples of the bugs you found? I would like to contribute to elm and this looks like a good place to do it.
brown-dragon··on Dyad: Minimal, portable async networking library for C
Isn't it effectively thread-per-socket except that the switches now only happen on an async system call? The difference, I guess, is you can optimize the context switch to be very small (and have smaller thread stacks) at the cost of giving up pre-emptive switching.
brown-dragon··on Dyad: Minimal, portable async networking library for C
That's really interesting - thanks.
brown-dragon··on Dyad: Minimal, portable async networking library for C
Your approach looks very interesting - the examples are definitely much easier to read and understand over most async C code I have seen. How does it work internally?
← PreviousPage 2 of 2