Better HN
topnewbestaskshowjobs
Log inSign up

randomdata

8,634 karma · joined Jun 23, 2011 (15y ago) · 7,679 submissions

Submissions

comment 10y ago · link · parent

Does the Go standard library document that on any function like you are expecting?

The code for both functions make it pretty clear that an error will only be returned if the input is invalid, which is not something that will occur with the known constants being fed into them.

comment 10y ago · link · parent

Are you referring to the instances where error is a return value, but an error result under the known inputs would be impossible, so it would be pointless to check it? That's not exactly the same as removed for brevity.

comment 10y ago · link · parent

> But you can still easily get a solid apartment for $3k/m.

What does the same apartment cost elsewhere though? Cost of living calculations are not for calculating how little you can possibly spend in a given location, they are for comparing the same standard of living in various places.

It sounds like you are willing to sacrifice your standard of living to make more money, which is fine, but not comparable to the parent's calculations.

comment 10y ago · link · parent

Also, I don't care about the entire course. I want the specific information that is relevant to my problem at hand. I'll be the judge of which lectures satisfy what I need.

I find it a shame that MOOCs these days are trying to duplicate the brick and mortar experience, because they really could be offering so much more.

comment 10y ago · link · parent

Credit is just sharing value that was already created. Credit has to be repaid with value that will be created in the future.

> Also the house is often worth far less than the land.

While that can be true, it is only true if someone has created value around it, or has exchanged the value that they created elsewhere for it.

It is not like land itself is all that valuable. A quick look at the real estate listings showed me all kinds of vacant lots for just $2,000. It takes more than dirt to derive value. Something has to be created.

comment 10y ago · link · parent

The landlord either created the house, or the landlord created someone else of value and traded it for the house that someone else created. Houses don't appear out of thin air.

comment 10y ago · link · parent

You're right. If we're explaining this to adults, it is even simpler: Create something of value and you can exchange it for things other people have created of value.

comment 10y ago · link · parent

Why aren't you getting your money back? The only reason why you would want to occupy someone else's space is precisely because you see an opportunity to get all your money back.

comment 10y ago · link · parent

> Try explaining rent to kids.

When it comes to kids, we often call it sharing. Billy has a toy truck you want to play with. You have a action figure he wants to play with. If you each share what you have, then everyone is happy.

That is all rent is. Billy has a house, you have cash. He wants to play with cash, and you want play house. If you each share what you have with each other, everyone is happy. Pretty simple.

comment 10y ago · link · parent

I can see where he is coming from. I don't avoid sugar and don't find soda particularly sweet, but I do find it to have an off-putting taste of some sort. I can down it if there is nothing else available, but it is definitely not my top choice.

Interestingly, I did love it in my childhood. I think I lost my taste for it around the time that I reached the legal drinking age. At that time I'd try some different drink choices in the circumstances where I would have previous had a soda, and then after not having it for a while it just didn't taste good to me anymore.

comment 10y ago · link · parent

> When was the last time we saw the most common job on the brink of being wiped out?

A couple of hundred years ago. And not just the most common job, but the job that was employing 90% of the labour force at the time. For comparison, transport truck driver accounts for just 1.5% of the labour force in Canada.

> Even if tech continues to grow and add jobs, will it surpass the loss from the trucking and transportation industry?

Yes. I struggle to believe we've reached the pinnacle of human achievement. Do you think the last time we went through this that people were sitting around thinking that the internet will provide jobs in the future? I'll be amazed if they even grasped that an internet could be possible. The jobs that will need to be done are things we cannot even dream of right now. If we could dream of them, we'd already be doing it.

comment 10y ago · link · parent

Is there really tech-related job loss? Or does tech actually create more jobs?

I am from Canada, so that is the data I am most familiar with. The employment rate has almost never been higher (2008 was the highest), the unemployment rate has almost never been lower (2008 was the lowest). The US housing crash did take some toll on the Canadian economy as did the more recent fall in oil prices, but we're still looking far better than the historic norms when it comes to job numbers.

At the same time, I remember in the mid-1980s there was widespread media panic about how the robots starting to become common in manufacturing were going to eliminate all the jobs. A rise in employment, and decline in unemployment is exactly the opposite of what I would have expected in the following 30 years based on the panic at the time. The claims being made today are exactly the same as they were 30 years ago.

comment 10y ago · link · parent

Does it matter in this case? If the remaining headphone users stick with whatever headphones come packaged with their phone for free, then they still wouldn't be using the audio jack with the iPhone 7, as the iPhone 7 comes packaged with lightning headphones.

comment 10y ago · link · parent

Which is exactly why he suggests that there should not be a subsidy. Subsidies exist precisely to determine for others what is or isn't worthless through monetary incentive.

You cannot reasonably tell someone that only they can choose what or is not worthwhile, while dangling a huge carrot in front of them. That you feel it is necessary to dangle that carrot says that you've already decided for them.

comment 10y ago · link · parent

> Those figures you quote (50-80k) are starting right at the median income (around 52[0])

Just to emphasize, as I think it might be easy for other readers to overlook: That figure is median household income, which can include multiple earners. Individually, the median income is closer to $30K (https://en.wikipedia.org/wiki/Personal_income_in_the_United_...).

comment 10y ago · link · parent

I recall 15-20 years ago some people were experimenting with capturing the tractor's exhaust and applying it into the soil that it was working, but it didn't seem to go anywhere.

comment 10y ago · link · parent

I still don't see what you are gaining here. Outside of code golf, the goal should not be to try and write code as short as possible, regardless of the language you are using. But this just seems to validate Pike's assertion that a for loop is more suitable to the problem.

Perhaps an example of where map/reduce is a significant improvement to the expressiveness would be appropriate for the discussion?

comment 10y ago · link · parent

To be fair, even with a well designed interface, it is difficult to see the advantage of your example over using a simple for loop:

     func unique(list []int) (r []int) {
          for i := range list {
               if !includes(r, i) {
                    r = append(r, i)
               }
          }
          return
     }

comment 10y ago · link · parent

Are those really idiomatic examples though?

For instance, without changing too much, you could implement scrapeProfile like this: https://play.golang.org/p/sP34n9acy7 I think that reads quite nicely, although I'm sure someone else can do even better.

If you modified dumpToCSV to take an interface instead of the concrete type, you wouldn't even have to prepare the user structure. You could pass in the vcard directly.

comment 10y ago · link · parent

On the other hand, the CBC[1] has no trouble attracting Olympic viewership. From other discussions I have read, it seems America's youth who are interested in these sports are oft being turned away because of poor production done by NBC, with some even claiming to be tuning into CBC's coverage stateside.

[1] http://www.theglobeandmail.com/sports/olympics/gold-medal-wo...

comment 10y ago · link · parent

.

comment 10y ago · link · parent

Most definitely, if you want the compiled template loaded for the life of the application, at least. The documentation for template.Must says it is intended to be used exactly like that. If you were in a regular code block, you would check the error and handle it more gracefully.

comment 10y ago · link · parent

"> programming well has a much higher barrier to entry than people realize."

"Yet there are people making the same salary as me that literally started programing 4 months ago."

That certainly sounds like a low barrier to entry to me. Compare with the barrier to entry to becoming a doctor, for instance. There, in many locations, you'll be looking at a decade of proving yourself to the club, with hundreds of thousands of dollars in costs to do that, before you are even allowed to start working. Four weeks, and maybe a computer that costs hundreds of dollars, is absolutely nothing in comparison.

> this is why some developers think (and probably should) get paid more. Relative to their co-workers if they can make half as many mistakes they save time both upfront, and bug catching.

But it still boils down to supply an demand, and if employers do not demand those with better bug fixing ability, there is going to be no corresponding premium for finding such people. What your post does indicate to me is that programmers have done a poor job of marketing the importance of bug fixing ability (or whatever features of an experienced developer you think is important) so that employers start demanding the subset of developers who have those skills.

comment 10y ago · link · parent

I grew up on a farm, so I had some involvement my whole life. The first year of my own business, I rented everything, and have slowly started growing from there.

Having people to give advice has been huge. If I were to do it again, I would want ensure I have that in place beforehand, be it family members or otherwise. The developer part of me is so used to being able to find all the answers online, but a lot of the farming knowledge is simply passed through the generations.

comment 10y ago · link · parent

Best investment: Started farming just before the commodities boom.

Worst investment: Still am farming after the commodities bust. Luckily I enjoy it.

comment 10y ago · link · parent

Isn't that his point? 500 years ago, nobody would be willing to hire Steven Hawking. Period. He simply isn't capable of doing anything resembling what they would have considered work, even with the use of the modern tools he uses to interact with the world. Today, however, he is able to be a completely productive member of society because the work we need to do is completely different – and the work we need to do 500 years from now will unlikely resemble much of what we do today.

comment 10y ago · link · parent

But for larger scale operations, does it scale any better than the existing technology, which is also pretty much fully automated these days?

Take soybeans. Typically you want to plant around 130,000 seeds per acre. I estimate by the video that it takes about three seconds to plant a single seed. That's four days just to plant a single acre of land. The John Deere DB120 planter claims to be able to plant 75 acres per hour.

Naturally, you can add more of these machines, but with that goes up the cost and complexity. I'm not so certain the economics would favour such a device.

comment 10y ago · link · parent

> but everyone was calling for the demise of radio when TV came out.

But the parent isn't calling for the demise of audio or video content. He's calling for the demise of scheduling done by a third party, where you have to comply to someone else's programming whims. I do think it is fair to say that the TV did completely change the way people listened to radio.

> It's not about interactive vs non-interactive.

It is precisely about interactive selection vs. being fed programming on a predefined schedule. The original comment was very explicit about this, and he claims the latter will eventually disappear, in favour of the former. He isn't saying people are going to stop watching video content in their living room, he's saying they aren't going to continue to sit down at exactly the time someone else says they have to, else risk missing the show, or be fed content they do not want to see because they want to watch video at that time. From the VCR, to the PVR, to now on-demand Internet streaming the trend is clear that people want to make their own programming schedule choices. As the technology becomes more convenient (Netflix beats setting a VCR by a long shot!), abandoning the old broadcast schedule becomes more and more appealing to more and more people.

> Why don't you set an alert, come back here in 15 years, in 2031, and let me know if TV is gone.

Because, quite frankly, I couldn't care less if it comes true. I wasn't making the claim in the first place.

comment 10y ago · link · parent

On the assumption of the the parent believing that over the internet on-demand delivered video content will completely replace broadcast TV in 10-15 years, I am asserting that broadcast radio will also take at least that long to disappear, as on-demand radio appeared at a similar point in time. Just because radio is older does not mean that its potential successors, like Podcasts, are older.

I am really unsure of where your '50 years ago' timeframe is coming from. If there were interactive on-demand radio services back then, I certainly have never heard of them, and they definitely did not reach a level of accessibility where giving up traditional broadcast radio in favour of on-demand programming could be a realistic option for most of the population.

To add to that, audio is not necessarily consumed the same way video is. People might be completely happy to have a non-interactive previously scheduled radio broadcast ready for them when they hop into their car, for instance, while not accepting the same of their screen in the living room. Just because he thinks that non-interactive TV will soon be dead does not mean he believes radio will reach the same fate.

1
202203204
256