738 karma · joined Oct 15, 2013 (13y ago) · 478 submissions
comment 11y ago · link · parent
From "Effective Go":
"We must return the slice afterwards because, although Append can modify the elements of slice, the slice itself (the run-time data structure holding the pointer, length, and capacity) is passed by value."
comment 11y ago · link · parent
For non-direct-games things fancier AI like deep learning, audio synthesis, making compilers/parsers/transpilers, math stuff like project euler, puzzle/board game solvers/bots (https://gist.github.com/christopherhesse/51e9baf0e3d440d8aff...) come to mind.
Some of the stuff in the 3rd stripe CTF was pretty interesting like making a search engine or dealing with distributed system consensus problems (raft).
Maybe using the coolest new framework is fun for some people, like a challenge could involve angular.js so you could get some experience using it without having to go full-on side project or put it in at work without having any real idea if you should.
Implementing things that you are familiar with but that you don't understand the internals of has been fun for me in the past (for instance like https://www.mikeash.com/pyblog/friday-qa-2015-02-20-lets-bui...). Maybe you always wondered how this thing works, and now you can figure it out and solve this challenge at the same time.
comment 11y ago · link · parent
High priority tickets I've seen a very good response time on (far better than the minimum guaranteed), though I am going to upgrade to the next level plan to get better response times on the weekend.
I have not used AWS support so I can't compare, but GCP support has been pretty good in my experience.
Merely being a customer is not enough though, without a paid support plan you're basically on your own. This might be standard for cloud providers though from what I can tell.
comment 11y ago · link · parent
Since there's no real difference, it doesn't really matter if you check in deps or have specific versions in a config file, either solution solves the underlying problem of having non-precise dependencies (i.e. just a github repo, or a version selector like >= 2.6)
comment 11y ago · link · parent
If I'm reading this correctly, homicide still kills more people than traffic accidents. So while the injury rate may be higher for traffic, death rate still seems to be biased toward homicide.
As for how to make the traffic better, your source indicates 1/4 of fatalities are from drivers failing to yield right of way. One idea is that if intersections in cities had turn arrows and different parts of the cycle for turning cars and pedestrians, that could reduce that significantly. Doing an analysis of why people get hit even though they're in the crosswalk or whatever might be informative here rather than just going straight for speed limit or installing airbags on the fronts of cars.
Of course, I think the real solution is not better traffic laws, but self-driving cars. People are fundamentally poorly suited to driving cars and only a machine can do a consistent job without getting bored or impatient. Once we have a decent number of self driving cars, any ways to improve pedestrian safety will probably look totally different.
It might save a lot of lives to focus less on new traffic laws and more on making autonomous cars a reality (the legal side of that seems to be progressing very slowly).
comment 11y ago · link · parent
comment 11y ago · link · parent
It could lead to, for instance, inappropriately low speed limits and an inordinate amount of police work on traffic violations instead of things that are more dangerous but make less money.
comment 11y ago · link · parent
The book is easier to read than watching the videos, though you could rip the audio and it would be an okay audio book.
comment 11y ago · link · parent
I'm proposing that you can get all the benefits you talk about but in a far more usable manner. I like a clean master branch with atomic sensible commit messages as much as the next man. Git just makes it a real chore to get there.
You seemed confused about the history and branch navigation, so maybe I can explain that one better.
What I want is to visually view the history of a file, and trace, for instance, a function as it moves through my project, into different files, etc. I also want to easily find code that I deleted in the past to use as a reference for implementing a new version of the code, rather than keeping it in some "obsolete" folder in source control. I have seen people who do that. There are ways to do these things now involving searching git logs and viewing diffs or checking out old branches, but the interface is very poor. Even the interface on Time Machine is better than git, and that thing isn't build to source code.
But perhaps you are correct. Maybe most people use git primarily as a backup service for code. If so I guess git should make that a way better process. I will point out that github actually offers a way better interface to git than git does. It just still has a long way it can go.
comment 11y ago · link · parent
I think it's very doable without any serious R&D, and you could build it on top of git/maybe github. The real question to me is: is it worth the effort, and would anyone actually pay for it.
People pay for tower and kaleidoscope so I assume it's possible. I think this is totally something GitHub should make but they seem to be focussing on other things.
comment 11y ago · link · parent
having to commit changes manually (I haven't had to do this in Dropbox)
terrible history and branch navigation (chrome does a better job and that's not even like an important feature of a browser)
confusing command structure and options
history rewriting and the resulting issues
no merge tool (I feel like kaleidoscope is the minimum here)
submodules
Gitless seems to address #3 there but not the others. Actually making a tool that improves git to where it could be would probably be a huge undertaking, and most people do alright with git so maybe it's not worth it. Or maybe there's some graphical git client like tower that fixes all this stuff.