News for hackers. Stuff that matters.

AwesomeBean

Re:Slap – A Sublime-like terminal-based text editor on Thursday June 01, 2017 @08:34AM (#14459696)
Try doing this with regular expressions.

https://gifs.com/player/G6m3vQ

Re:Ask HN: Which games are you playing in free time? on Tuesday May 30, 2017 @05:27AM (#14443992)
It really is amazing how much more relaxing casual is when you turn down VoIP.
Re:Most Vegetarians and Vegans Eventually Return to Meat on Tuesday April 18, 2017 @01:23PM (#14140790)
I think that's true, but the same statistics of people on diet can be found, and I think (without any statistics of my own) that culture and group mentality plays a role there as well.
Re:Announcing .NET Core Tools 1.0 on Wednesday March 08, 2017 @05:41AM (#13819376)
Well for the last 4 months, MSBuild alpha has been out with the option to use "dotnet migrate" to migrate a project.json to a project.csproj file.

The other 6 months I agree has left people in a limbo. Only people following the discussions closely would have an idea of which direction they were going.

Re:Announcing .NET Core Tools 1.0 on Wednesday March 08, 2017 @03:53AM (#13818958)
You make it sound like this change was a snap decision. It's been known for at least 10 months now that project.json was going away. All the documentation I stumbled upon on github also made this clear.

While I would love a simpler, more readable project file, I understand that the tooling already out there relying csproj format, probably makes it not worthwhile changing.

Re:Quantifying the Impact of “Cloudbleed” on Wednesday March 01, 2017 @01:52PM (#13766931)
Why? As long as they come along with facts and data, then that's a good thing.
Re:Show HN: WebSocket-first development on Monday February 13, 2017 @02:17PM (#13637895)
I'm working on a browser game, that does all communication to the game server through WebSockets.

Here I have the clients ping the server every 2 seconds, and if I haven't received a message with in 10 seconds (including other messages than ping) I consider the client dead.

Each socket is assigned to an individual player, and if that player opens a second connections the old one dies.

To be honest - In regards to the missed messages and order of events, I just cross my fingers and hope TCP does that for me.

In regards to the clustering, I have my map split up into sections, so most of the messages that needs to be send, are only to the people in that sector. So I rarely send a message to all players.

I'm still experimenting, so I'll probably still have a lot of edge cases that I'll have to cover. But for now it seem to work well.

Indeed - I think this is a welcome change. Might make it confusing for a year - but makes way more sense for the next 14 years.
Re:I Turned Off JavaScript for a Week on Thursday November 19, 2015 @07:12AM (#10594302)
Just download NoScript - it's better than turning JavaScript off and on all the time anyway.