News for hackers. Stuff that matters.

applekor

Re:Rooms and Mazes: A Procedural Dungeon Generator on Monday December 22, 2014 @06:51AM (#8782763)
Last time I needed a maze I implemented Kruskal's algorithm, which is generally useful for finding the minimum spanning tree of a graph. You just run it on a lattice graph where all edge weights are the same and you have yourself a perfect maze.
Re:Startup depression on Tuesday November 11, 2014 @02:20PM (#8591620)
I know you mean well, but this isn't necessarily an appropriate place or method for advertisement. It's a serious thing, and insinuating that your app will/can 'solve' other's depression can be seen as belittling others' emotions.

As a side note, preventing suicide is very different than supporting someone with depression. Suicidal thoughts are cause for major alarm, and call for emergency intervention. Depression is typically a longer, slower ordeal. It still certainly warrants seeking help, but the kind of help needed isn't something that an app can provide (at least from my personal perspective). But what an app _can_ provide is a way to find help and connect to those sources easily, whether it be in case of a crisis or just simplifying a process which can be overwhelming, particularly for someone dealing with depression for the first time.

Just some thoughts for you, and hopefully an explanation for the downvotes. You have an opportunity to help people with this project, and I hope you do well with it. Best of luck.

Re:PathFinding.js on Tuesday September 23, 2014 @12:03PM (#8356005)
Because Manhattan distance isn't an admissible heuristic for an 8-connected grid I think it breaks the A*'s guarantee of optimality. I don't have an example, but it might be a place to start looking.
Re:Depression and feeling like an outsider on Monday September 22, 2014 @04:30PM (#8352441)
I wholeheartedly agree with 1 and 2, but I'm less enthusiastic about 3 and 4. I can't imagine that you meant it this way, but it can sometimes come across as "you have no valid reason to feel sad," which then makes some people feel badly about feeling badly, and the loop closes in on itself. At least that's where I find myself in trouble sometimes...
Re:$35/Week – Eating well on $35 a week on Monday July 14, 2014 @03:57PM (#8032843)
Pretty great cookbook I've taken a few meals from: http://www.leannebrown.ca/cookbooks/ Rather than cheap food that happens to be edible, she tried to focus on actually good food that happens to be cheap. Really well done. Free electronic copies are always a plus too...
Re:Minimal Wikipedia redesign concept on Friday June 27, 2014 @01:35PM (#7955193)
I think the idea behind the bigger font sizes is that the space between your head and the screen is typically greater than that between and a book you're reading. I would agree that this takes a bit far, but it may look nice on a mobile device.
Re:Minimal Wikipedia redesign concept on Friday June 27, 2014 @11:41AM (#7954465)
I like OP's typography better in most respects, but the mobile site's line length is far more manageable.
Re:A beginner's guide to funemployment on Tuesday June 24, 2014 @01:09AM (#7936274)
I'm probably not the one to be giving advice on the matter, but there are some pretty nice ways of wasting time that aren't reading and playing video games. At least for me, taking care of kids and simple chores like doing the dishes are both fantastic ways to not be a bum without actually doing anything that I consider to be work. It might just be a perspective thing regarding what counts as "wasting" time.
Re:Ask HN: Should I give money to a beggar on a street? on Wednesday June 18, 2014 @07:53AM (#7909530)
Better to help those who don't deserve it than to neglect those who do.