131 karma · joined October 17, 2015
Just today I went out at around 12 PM, worked non-stop in a nice cafe' until around 4:30 PM, went to buy some stuff, worked for 2 more hours, came back and realized I still had 30% left. That's insane (I'm using multiple VMs, IDEs, Chrome etc.). Especially considering that I feel the upgrade to Sierra has decreased battery life considerably.
Now, THAT's what you want from a laptop. Good performance, great materials and not having to panic if you forget the charger at home.
Apple's customer care and global warranty are universally known. They will even replace your battery for free (under warranty or Apple care) if its capacity goes below 80% (http://www.apple.com/batteries/service-and-recycling/).
(MBP early 2015 with 16 GB RAM, 512 GB SSD)
Note: I'm not an Apple fanboy (my phone is Android, never owned an iPhone) but when a product is great you just have to admit it.
From my experience "deploying" containers is pretty easy: build the image, push the image, pull the image, start container. The hard parts are: how to deal with persistency (I decided to let RDS manage my database), how to centralize logging and monitoring (just Cloudwatch? Swarm? Kubernetes?), how to make sure the cluster is healthy at all times (e.g. a container crashes, is it being replaced? How long does it take?) and how to make sure you have the correct number of containers running (e.g. I want 2 containers for the app server, 3 as workers, 1 as load-balancer).
If you really think about it, once you remove these advantages (from using containers, that is) the difference between running a container and having a script that provisions a virtualenv and adds a supervisor/systemd/initd service is negligible.
Shameless plug: http://engineering.hipolabs.com/how-to-work-in-a-team-versio...
This isn't necessarily true all the time, although it is in many contexts. For example millions of people are eagerly awaiting the new, shiny, same-as-before-but-slightly-more-expensive-and-with-a-couple-new-features, iPhone 7 but the number of people who get excited when there's a breakthrough in a particular scientific or technological field can be counted on one hand (and multiplied by 10^[2-4]). The explanation is pretty simple: I can get the iPhone 7 when it comes out but it's hard to get excited knowing I might go to Mars in 2060.
I had a similar experience myself. As a human being I'm naturally inclined to, sometimes, consider short-term rewards more valuable than long-term rewards. They say the quickest way to change your lifestyle is to change the environment around you. In the case of software developers that environment is often their gear/tools. In my case it was my laptop. When I was still a student I was using the not-so-crappy-but-still-kind-of-crappy laptop provided by my university. The problem was not the laptop, of course, but the fact that I was doing something I didn't enjoy.
One day, frustrated by the fact that a few Chrome tabs and PyCharm would literally devour RAM and swap alike, I started considering buying a laptop of my own. Fast forward to a couple of months later, and on the edge of a serious depression, I bought a shiny Macbook Pro with 16 GB of RAM. I started getting more into web development (I was doing research in a very specific field of cybersecurity), studied machine learning (and used it for my thesis project), found a very good job (where EVERYBODY was using Apple hardware) and slowly transitioned to doing web development full time.
The Macbook acted as a trigger. I might have gotten the same results by moving to another country, changing house, changing friends, maybe by dropping college altogether, but that shallow, nonetheless very useful, purchase (I'd go as far as to call it an "investment") did the trick. I got my degree, I'm still working, and enjoying what I do, I even moved to another country eventually. Could I have experienced the same thing doing something else? Probably. But it's easy to say so afterwards. :)
Once again keep in mind that for new projects the process is so streamlined it will take a fraction of the time to set them up.
That said, how many people actively pursue relationships? To me a person who has tons of friends (the kind you spend time with on trips etc. not the kind you text every once in a while to see how they are doing) but works a frustrating 9-5 job at a bank is definitely not someone I'd look up to. On the other hand a person who is extremely successful in his field, wins the most prestigious award in that field, but does not (again, by today's standards) live a healthy life does not set a good example either [2]. So what's the optimal situation?
And appearances don't help. I have no idea whether Elon Musk (since he was mentioned in another comment) is happy. I just know he looks successful. In my mind he's the kind of guy that enters a room and automatically and instantly gets the respect and admiration of the "smart" people in there. Does he even care about that? Am I being tricked into seeing Elon Musk as a status symbol like I'm tricked into seeing the iPhone as one of the best smartphones out there?
Happiness is definitely more complex than accepting what you do as "special". Accepting your current situation is a great way to start clearing up the cloud of things you consider important but if that was really the way to be happy why would we even bother improving ourselves or society? I hate to say this but I almost feel like this is the classic story of the fox and the grapes. When the fox can't reach the grapes says they are not ripe.
What if happiness was about pursuing something, regardless of the end result?
Refs:
[1] https://www.ted.com/talks/robert_waldinger_what_makes_a_good...
[2] http://www.nature.com/news/2006/060821/full/news060821-5.htm...
And 25 and 75 are bogus numbers, what if we start running 10 instances?
1) Small teams (~1-5 people) trying to seem "big" by working at Google's scale.
2) Heroku's prices. We are currently (successfully so far) migrating a small Django project from bare Amazon EC2 instances to ECS with Docker. Even using 3 EC2 micro instances (1 vCPU, 1 GB RAM) for the Docker cluster we would spend ~8 USD/month/instance. With Heroku the minimum would be 25 USD/month/dyno. That's a 3x increase in expenses.
It's very possible to take advantage of technologies like containers without getting too caught in the hype.
[0] https://github.com/serverless/serverless
When average people predict historical events. Hilarious!
`function update() { $("#live").load("/get_links/hot"); } setInterval(update, 10000);update();`
Polling per se is ok but you should do it on the server and push to the client through web sockets or server-sent events [1].
Refs:
[1] https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
[2] https://github.com/Max00355/HNLive/blob/master/templates/new...
Three days ago I spent a couple of hours on Meteor's simple-todos tutorial, trying to understand how everything was working (that is, at an abstract level). I felt great after finishing it. Two days ago I started building a service we'd like to launch within a couple of months, e-commerce like stuff. I felt miserable. Pushed the first "draft" with a customized sign up and I felt like I had no idea how to proceed.
Yesterday I spent 4 more hours, started using packages like autoform, collection2, something for bootstrap, iron-router etc. and I feel FREAKING GREAT. Again my brain clicked and now I implemented ~70% of the features with validation, defensive checks on the server for security, nice-looking popups, good overall UI... I mean, I intended it to be a prototype, maybe mocking some parts but, damn, we basically already have a MVP! In 3 days (effectively ~12 hours)! And now I already know how to implement the rest, it just feels natural now. Like when you have a solid plan and you think it through in your head and you KNOW how to implement each and every step of it.
You can hit a wall with Meteor as much as you can with any other framework (I mostly use Django). It's all about reading the docs, looking at what the community is doing and try to adhere to some "guidelines" (if there's no standard way of doing something). I will let you know how it scales when we reach a couple million users (bazinga!).