News for hackers. Stuff that matters.

ichinaski

Re:Pathfinding Demystified on Friday May 16, 2014 @04:07AM (#7754333)
> # If we just got to the goal node, build and return the path.

  if adjacent == goal_node: 
    return build_path(goal_node)
If you want to ensure the path is optimal, you'll have to wait until you 'expand' the goal node, as there might exist goal states in the open set with lower costs.
Re:Abstract Libraries in Go on Wednesday May 14, 2014 @02:36AM (#7742493)
In order to catch up with language, I also decided to write a Graph library in Go[1]. Since this seems to be a quite common application, is there any more mature, bigger project implementing these same ideas? A similar concept in the Python community is python-graph[2].

[1] https://github.com/ichinaski/grapho

[2] https://code.google.com/p/python-graph/

Re:A mobile friendly Vim cheat sheet on Tuesday August 06, 2013 @01:01PM (#6167706)
"c$ - change (replace) to the end of line"

I find 'C' simpler for that command.

Re:Now they have two problems on Thursday May 23, 2013 @09:26AM (#5756673)
In order to understand recursion, one must first understand recursion.
Re:Lisp Prolog and Evolution on Tuesday May 21, 2013 @05:17AM (#5742596)
AI Algorithms, Data Structures, and Idioms in Prolog, Lisp, and Java: http://wps.aw.com/wps/media/objects/5771/5909832/PDF/Luger_0...
Re:Introducing Android Studio on Wednesday May 15, 2013 @01:20PM (#5713422)
Now I only need a VI plugin for this IDE.
Re:Vim Adventures on Saturday May 11, 2013 @05:15AM (#5690171)
Same here with Chrome's Vimium. Once the URL is excluded, it works fine.
Re:A lot of free ebooks on Wednesday March 27, 2013 @06:07AM (#5448570)
This one is brilliant: Mathematics for Computer Science.

http://www.cs.princeton.edu/courses/archive/spr10/cos433/mat...

Re:Announcing the Netflix Cloud Prize on Thursday March 14, 2013 @12:46PM (#5376075)
After the Python at Netflix post, http://techblog.netflix.com/2013/03/python-at-netflix.html, I was expecting some Python repos on GitHub. It seems that all the open source projects they have use Java mainly. https://github.com/Netflix
Re:Physicists Say They Have Found A Higgs Boson on Thursday March 14, 2013 @10:40AM (#5375225)
Yet still all the newspapers worldwide have a Pope in their frontpage. What a frustrating coincidence.
Re:The best programmers are the quickest to Google on Monday February 25, 2013 @03:16PM (#5281471)
Many of the best programmers I've seen google stuff. So do many of the worst I've seen.

The difference is the former won't type a single statement without knowing what it does first, while the latter will just copy and paste something that seems to work, regardless they understand it or not.

The last time I came across some copy-pasted code that was giving some troubles, and after asking the owner of that code what some stuff did, he was unable to tell me, after claiming it was just fine, because the code he copied was from a trustworthy source. This, I guess, is a bad practice of how googling things should work.

Re:Vim After 11 Years on Tuesday February 19, 2013 @02:45PM (#5246584)
My favourite ones:

" Make Y behave like other capitals

nnoremap Y y$

" Reselect visual block after indent/outdent

vnoremap < <gv

vnoremap > >gv

Re:How To Design For Android Devices on Sunday February 17, 2013 @02:27PM (#5236334)
I wish the designer in my company could be interested in these kind of articles. Is quite frustrating to receive time and again all the wireframes focused on an iPhone-like look, no matter what.
Re:Dogs learn to drive in New Zealand on Saturday December 08, 2012 @08:19AM (#4891546)
That´s not a dog. That´s an ewok.
Great. Just signed up. Anyone knows of a similar courses/tutorials for C++ Game dev?
Re:How to Ace a Startup Engineering Interview Part 1 on Thursday July 26, 2012 @03:41AM (#4294899)
I really appreciate this post. As a job seeker, I like reading this kind of tips. What is more, it has told me that all the things that I'm doing just for fun and for the passion that learning new things give, is being useful also for this purpose. Indeed, I think that the opposite direction is the weird one, since I can't see the point of learning C, algorithms,... just for the job seeking intention. You really need to enjoy that stuff.
Re:Weekly Vim Focus on Friday February 10, 2012 @04:44AM (#3575139)
For a long time user, usage of up/down/left/right should be punished!
Re:Show HN: Mouin, a sane way to create native mobile apps on Monday October 10, 2011 @02:59PM (#3095246)
Looks good. Gonna try it!