HN Poll results - Liked / Disliked Programming Languages https://news.ycombinator.com/item?id=6527104
Normal division x/y works just as expected, with one caveat: remember
that if you divide two *integer* values, you will get an *integer*
division operation yielding an *integer* result. So:
1.0 / 2.0 —> 0.5
1.0 / 2 —> 0.5
1 / 2.0 —> 0.5
1 / 2 —> 0
So if you make sure at least one operand is a real number you’ll get
a real result. This is now division works in many programming languages
including C and C++.
In the future, Python will switch to always yielding a real result,
and to force an integer division operation you use the special “//”
integer division operator. If you want that behavior now, just
import that “from the future”:
from __future__ import division
1 / 2 —> 0.5
4 / 2 —> 2.0
1 // 2 —> 0
4 // 2 —> 2
I have 5+ side projects. I’d like to make businesses out of them, but I often lose interest after a couple weeks. Asterank was the only project that I’ve stuck with for over a year, and it paid off even though there wasn’t a clear path to monetization… It’s hard to predict what will be valuable as a side project. For hobbies, working on what you’re most passionate about is the best way to get a return.
The ease with which people can possess astonishingly contradictory qualities is one of the mysteries of human nature; indeed, it’s one of the things that separates humans from, say, an Apple computer. Every one of the components that makes up an iPad is essential to the work it produces. Remove one part and the machine no longer performs its job, and not even the Genius Bar can fix it. But humans are full of qualities that are in no way integral to their functioning in the world. Some aspects of personality have little or no bearing on whether a person performs well, and not a few people succeed in spite of their darker qualities. You can be a genius and an asshole, but the two aren’t necessarily causally linked.
In cloud computing, customers don’t have to concern themselves with the details, they just rent from the cloud.
Companies shouldn’t give people who have great attachment to on-premise computing too much influence over plans to move into the cloud.
Three main questions to address
- Why will the cloud be a big deal beyond the IT department?
- What are the main concerns and areas of skepticism, and how valid are they?
- How to get started?