I was at that talk. Having not done much C since college 6 or 7 years ago and only really starting Python about 3 months ago, it was very approachable and I got a lot out of it. I highly recommend it.
Now, do you think that is the driver personally using square to accept card payments as it's more economical for him to manage that stuff himself rather than relying on the cab company?
I've been writing Python for maybe 3 months now and as I started digging into the OO stuff, I commented to a few developers about how it 'felt' a lot like javascript and they nearly took my head off. Is there any material you (or anyone for that matter) can point me to that might help solidify my argument?
That IS my setup at work. I've recently discovered mutt and irssi which I use for email and chat, respectively. All development happens in tmux sessions with vim. My dock contains finder, iterm2, chrome and the trashcan. If I could remove finder and the trashcan I would...
On a slightly related topic, I've started investigating writing a console based email client recently in Python using Urwid for curses stuff that's a little less archaic than mutt.
My biggest desire to learn a language like Haskell or Scala would be the total shift in thinking required to grasp the language (the author mentions this). I've started playing with clojure lately and even though I've barely scratched the surface (primarily poking around 4clojure.com) I could already feel my brain twisting in ways I've never experienced before. I firmly believe once you turn that corner and really start to get it, you start seeing and attacking problems in such a different light that there's no going back. The big problem I've had recently is finding the motivation to learn anything outside of work (programming/engineering related at least); once you start getting paid to do something its really hard to do it for free, haha.
This was a really bad comparison/argument for git. Anyone actually trying to decide between the two should just forget everything you've read and start with a different source.
That aside, I've used both over the last 3 years (2 in git; 1 in hg) and although I prefer git, hg is a fantastic tool. I think the largest difference between the 2 is usability. I do believe hg is quite a bit easier to pick up. It does a really good job of, by default, making sure you don't shoot yourself in the foot and also keeps you further away from the 'nitty-gritty'. Git, on the other hand, allows you to do whatever you want and generally makes the assumption you always know what you're doing. The details are not very far down from the surface and it's easy to get yourself in trouble if you don't know what you're doing.
Personally I prefer git because I feel so close to the metal, but there's certainly a perfectly valid argument to choose hg over git.
I immediately thought of Python's context managers when I read this. What the article appeared to describe, which shouldn't be lost on any programmer, is "do stuff then clean up after yourself".
> You want to pay money to watch NBA games, but you can't.
This is what frustrates the shit out of me about EVERYTHING related to TV/Cable. I HAVE MONEY THAT I WANT TO GIVE YOU FOR A GREAT PRODUCT. I know I'm not the only one. WE have money we want to fork over, PLEASE take it. You know it just blows my mind. Everything I've ever heard about capitalism/business/economics/etc. that if there is demand, someone is supposed to step in and provide. Why is it taking SO long for this to happen in this particular space?
Slight rant, I know, but goddamn does it make my blood boil thinking about this stuff.
It's like everyone figured out how hashes work just a couple of days ago. What happened to spark all of this conversation? I also keep hearing that this problem is solved with randomized hashing functions, but my best guess is that this doesn't eliminate collisions. It just then becomes roughly impossible to generate a set of keys that would cause enough collisions to actually be a problem. Hooray for data structures.
It's interesting that you bring up Javascript. I've just started working in Python full-time recently and have noticed the OOP stuff "feels" a little like working with objects in Javascript. Specifically around how the built in super works and more generally how methods are defined on classes to begin with. In Javascript you can do interesting things with call and apply on function objects to share functionality between two objects that work the same. Similarly in Python, since the methods defined in a class are also available on the class object itself, you can use them outside of an instance and simply give them a self to operate on. The class object almost acts like the prototype object on the function object you're using as a constructor. I know the two systems are different, but they do "feel" real similar. Most people I mention this to seem a bit surprised and have that "never thought of that" look on their face. Anyone else witness this?
So, there's definitely been a few discussion recently about the quality of Hacker News articles and their relevancy to the community. Is this post an indication that LOLCats are of high priority for discussion?
This has come up A LOT more than it should. There's a line immediately before the first example explaining exactly what you're looking at. It's slightly absurd to assume that's how you'd actually write those examples in javascript. The compiled javascript is rather approachable, though.
The 'occupywallst' project's description reads: 'Stomping out capitalism, one line of code at a time'. Is that truly the goal; to eradicate capitalism?
We'd love some feedback and, who knows, maybe some pull requests! We do have this running in production with no major problems to report. It is, however, under pretty light load. Thanks!
Sarcasm aside, the fact that this sort of thing is being developed at what, I'm pretty sure, most people would consider a newspaper company is pretty fascinating in and of itself.
I think you're slightly off here. As I understand it, what these states are trying to do is consider Amazon's independent affiliates a physical presence for Amazon in that state. What that means is that Amazon then becomes responsible for collecting sales tax on items purchased by residents of that state; how they found their way to Amazon and made their purchase isn't relevant. In your example, no sales tax would need to be collected because you're a resident of Oregon and, presumably, Amazon does not have a physical presence there.
Good read and really love that assets are first-class citizens in Rails. A little off topic, but can anyone point me in the direction of some resources on the biggest changes from 3.0.x to 3.1? Working on an upgrade now and have only played with 3.0.x and would like to know what to expect moving on up to 3.1. Thanks.
I don't think it's quite that simple. The index that google serves search query results from is a direct result of the algorithms they've applied to the data the googlebot has gathered. If by 'index' the author means the data the goolebot (for example) has downloaded from the internet, that's quite a bit different, but still probably serves the purpose the author is looking for. The index is a highly specialized representation of all the data they've collected.
Thank you! Easily the only sane comment about aliasing.
I am willing to believe that aliases like 'ga' and 'gp' would actually increase productivity if all you did all day long was manipulate a git repository or you had some physical disability in which it was actually difficult to type on a keyboard, but I mean, using my source control tool is such a small piece of the larger initiative I take on day in and day out, that in the end, the extra keystrokes aren't going to have any meaningful impact on the amount of value I add to the projects I work on.
There's also the issue with portability. You have to be able to bring those aliases with you anywhere you go. A great example I heard about was at a meetup once where a guy tried to give a talk on git and because he wasn't using his machine, that talk was almost worthless because he kept typing his precious little aliases and, arguably, didn't really know how to use the tool he was trying to demonstrate.
Go's naming conventions are much more clean, respected and even enforced than in almost any other language I know (Ruby and Python are specially bad in this, but C++ and Java are not much better).
Do you mind explaining this statement a little further, specifically related to Python and Ruby. I work with both of those languages and find the naming conventions to be quite clean and respected. The style of the language is not enforced, but you'll certainly be chastised by any serious developer in either language for doing something outside the norm.
I believe the article mentioned that the data comes purely from triangulating your position with what cell towers you are connected to. The consent related to location services seems to be only related to the GPS data. The author mentioned a trip to China where he turned off cell data services and used the GPS and Wifi and that none of those locations were tracked in the file.
If you take a look at the man pages for all of those commands you'll see they explicitly mention that your working tree will be affected. They are written explicitly to do that. 'git reset' can be called with '--mixed' or '--keep' which might be more along the lines of what you're looking for. If you're ever unsure about the result of a given command make a copy of your current working tree before applying it. I like git because it explicitly doesn't hold your hand through things like this. It expects you to know what you're about to do.