260 karma · joined March 25, 2013
Where would we be if we supported all legacy software? Does there not come a point where cutting support for a class of platforms is a good thing? This article makes some good points, and I think a lot of frontenders (myself included) would benefit from being a bit more "boring", but this article is going a little too far the other way.
docker run -v /tmp/:/host-tmp/ ubuntu:14.04 bash -lc "echo 'TEST123' > /host-tmp/test"
Should create a file on your host's filesystem called "/tmp/test" with the text "TEST123".This is actually not the case. Although containers do not share any persistent volumes with the host by default, you can use the --volume option[0] to do so.
To answer your question, I've used Docker for local development to run MySQL, Postgres, and Redis inside of containers. Using the aforementioned --volume option, you can share the unix socket opened by either of these services from the container to the host. Otherwise, you can use the --port option[1] to share ports between the container and the host.
I've had a generally pleasant experience using Docker for this use case and would recommend it. It's nice being able to start using a new service by pulling and running an image. Similarly, it's nice to have the ability to clear the state by removing the container, assuming you choose not to mount volumes between the container and the host.
The only frustration I've run into is running out of disk because I have too many images, but it takes a while to get to that point and those can easily be deleted.
[0] https://docs.docker.com/reference/run/#volume-shared-filesys... [1] https://docs.docker.com/reference/run/#expose-incoming-ports
[0] https://www.reddit.com/r/haskell/comments/3cfax3/new_haskell...
[0] https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node252.html
Of course, I'm just an armchair economist, so perhaps there's part of the picture that I'm not seeing.
While I agree that patents do enable "the little guy" to succeed in some cases, they also enable the current powers that be to maintain that power.
That being said, sum types would be a nice addition to this library.
* It would be better if this didn't pollute the global namespace by defining `#typesig` in `Module` [0] -- perhaps consider refactoring that method into a module which the user may extend. Doing so would also get you out of needing to define `Module#prepend` for older versions of Ruby.
* Perhaps allow the user to enable/disable type checking at a global/class level. For example, then users could only enable type checking during specs if they wanted.
* Instead of using class-level variables, try using class level instance variables. They have less odd behavior when dealing with subclasses [1].
[0] https://github.com/gogotanaka/Rubype/blob/develop/lib/rubype...
[1] http://www.sitepoint.com/class-variables-a-ruby-gotcha/
Edit: Whitespace
I assumed these attacks would come from the right because of a culture of Islamophobia that I've seen on places like Fox news, which I consider to be a far right media outlet. For example:
http://www.vox.com/2015/1/12/7533159/fox-news-pirro-rant http://www.independent.co.uk/news/world/americas/muslims-are... http://www.salon.com/2014/08/20/foxs_andrea_tantaros_you_sol...
[1] http://mic.com/articles/108206/how-bad-is-france-s-anti-musl...