HNHacker News
TopNewBestAskShowJobs

gumballhead

153 karma · joined June 2, 2013

submissionscomments
gumballhead··on Mutable vals in Kotlin
The person's birthday is immutable and can't change. The age isn't a mutable property -- it depends on what time we're comparing their birthday to. So it should be computed by a function as he himself says.

The val not being immutable problem is more about declaring something like a list as a val (or final in Java), and being free to modify the elements within the collection anyway so long as the reference to the collection isn't reassigned.

kotlin does have immutable versions of collections in its standard library. It's just not a language feature.

gumballhead··on Brace for Chaos If U.S. Expands Airline Laptop Ban
This was already true for the US as well. You can't fly with a laptop battery larger than 100Wh.
gumballhead··on Dhh: I would fail to write bubble sort on a whiteboard
Looks like this is related to https://twitter.com/cyberomin/status/835888786462625792, which is a bit different. So nevermind.
gumballhead··on Dhh: I would fail to write bubble sort on a whiteboard
Does anyone agreeing with this tweet know what bubble sort is? It's fine if you don't but if it's explained to you it should be pretty trivial.

It's like saying "why should I have to write fizz buzz for an interview." Of course you'll never have to write it. You won't even have to use it.

I just need to know if you can write software at all for this software developing job you applied for. Sure, we'll evaluate other, more important, things too.

gumballhead··on Ask HN: Are you worried about competitors copying your client-side JavaScript code?
This happened at FarmLogs once. Our bug tracker started getting some really weird exceptions due to a Chinese company reverse engineering our app with the frontend code, which had our API key in it. We didn't really mind; it was just funny.
gumballhead··on Andl, a relational language that is not SQL, is coming to Postgres
I agree. How often do you need to change your RDBMS? Hopefully never. And how often do you see people wanting to rewrite everything in a new language or framework? A little more often. I think many developers are just not as comfortable working with databases.
gumballhead··on Ask HN: Tabs or Spaces?
GitHub renders tabs as 8 spaces. It is crazy and looks ridiculous.
gumballhead··on The binary search of distributed programming
I also think that's how mobile databases for offline apps should work -- sort of as distributed slaves. If only the backend server has the authority to create unique ids, you end up juggling a complicated set of client and server based ids if your app needs to be able to create data offline.
gumballhead··on The binary search of distributed programming
That's basically how Twitter Snowflake (https://blog.twitter.com/2010/announcing-snowflake) and Instragram (http://instagram-engineering.tumblr.com/post/10853187575/sha...) did it
gumballhead··on Tale of Tasteless Tomatoes: Why Vegetables Do Not Taste Good Anymore
Yes, it's not breeding for yield that makes them tasteless, it's breeding to make them hard so they can move through our industrial supply chain.
gumballhead··on Rescuing REST from the API Winter
Not that i love REST, but for an app that needs to work offline, boring ass REST is a pretty straight forward way to sync the mobile and remote databases.
gumballhead··on Rescuing REST from the API Winter
WTF are native mobile clients supposed to do with an endpoint that returns HTML?
gumballhead··on In Memoriam: Ian Murdock
There is no situation that the cops can't make worse.

Don't call the cops. Don't ever ever call the cops.

gumballhead··on Linux has matured into a robust desktop operating system
I feel like I've read an article like this every so often for the past 10 years. I run Linux on my laptop, but it's often a pain in the ass. To be fair though, all operating systems suck in their own ways.
gumballhead··on One in Three Farms Is Using FarmLogs
Coffescript is a powerful language meant for beginners, but you really need some experience with it to understand its quirks and that a lot of it should be avoided.

So basically, it's JavaScript with a compile step that doesn't do static analysis.

But back in 2012 when the first lines of FarmLogs were written, it was pretty cool. And that's a lesson in itself about why it really doesn't matter what stack you use.

gumballhead··on One in Three Farms Is Using FarmLogs
That's an excellent assessment, and we're actively developing our product in that direction. You can already upload your machine data files to create yield maps in FarmLogs, and this year we released the Flow, a hardware device that passively listens on the CANBus to create yield maps in real time on a FarmLogs account. We will be giving the same treatment to as-applied and as-planted data as well.

There are lot of challenges in this area. There are no open data standards and probably most farms in our target market do not have access to that type of equipment. Or if they do, they don't have great records of it. For them we offer a sort of progressive enhancement. We've licensed five years worth of satellite imagery to give us reasonable baselines of precision field performance history. And while we also need management decisions for our models, we can make use of manually entered data as well as machine generated precision data.

Over the summer, we piloted some products built from these models with great results, and will be announcing them soon. We're really excited about it.

gumballhead··on Ask HN: How do I convince my coworkers to use HTTP well? Or am I being a pedant?
Even if it is internal, you're just making things harder on yourself if you go against convention for no reason.

Most client networking libraries have abstractions built upon those conventions. Like jquerys $.ajax: it returns a promise that will invoke the failure callback for a response other than a 200 level code.

gumballhead··on U.S. Supreme Court Denies Google's Request to Appeal Oracle API Case
I hope and feel like they'll back kotlin when it hits 1.0 regardless of what happens here. We can't be stuck with a half assed java 7 on Android forever.
gumballhead··on Ask HN: Is it necessary to be a CS major be successful in the tech sector?
No
gumballhead··on How 'Mathiness' Made Me Jaded About Economics
I majored in econ, and could not agree more. Economics is a social science: it's the study of social behavior under constraints. To any reasonable person, that doesn't sound like something you should try solving with an equation.

Of course, you can use statistics to aggrgate past behavior, but all you'll end up with is a model that can describe past behavior, which you'll then misapply when trying to predict future behavior.

If only you could use statistics, or math, or tea leaves, or whatever to predict long tail events; then you might know when people were about to change their behavior...

And don't believe anyone, no matter how smart, who says they can. Look at guys like LTCM that followed their models blindly to financial ruin and almost ruined the economy too.

And even that isn't half as bad as someone trying to use models to draft social policy. Anyone wonder why we're financially overextended after 40+ years of applying Keyenesian policies on the downside and Classical policies on the upside?

gumballhead··on LeakCanary: Detect all Android memory leaks
From what I've seen, Java's GC is smart enough to clean up circular references. That actually surprised me. The main danger I've seen in Android is that there is a lot of passing around Contexts as a dependency for accessing Android resources, many of which are meant to be short lived, like Activities. Sometimes a class will save that context as an instance variable. And sometimes you might want to cache that class statically, so if you aren't careful, you'll prevent something like an Activity from garbage collection.
gumballhead··on Slinky – An easy way to query your PostgreSQL data
Sounds a lot like heroku data clips?
gumballhead··on My Experience Interning at a YC Startup
We've had some really amazing interns and ask a lot from them. As Akshay says, they basically have the same responsibilities and opportunities to make an impact as full timers. It's awesome that they get a lot out of it too. We'll miss you Akshay!
gumballhead··on My Experience Interning at a YC Startup
Farmlogs is hiring designers ;) https://farmlogs.com/jobs/designer/
gumballhead··on The Real Reason College Tuition Costs So Much
I upvoted this comment because this is all very true and gets to be very expensive as enrollment rates increase, which was also mentioned in the article.

But, despite all of this expense, I don't feel like I got a great education while I attended a public university. My classes were taught by grad students and adjuncts in 400 person auditoriums.

I ended up transferring to a small private school about the size of my high school. The tuition was about four times what I was paying at a public school (though I didn't pay near that much out of my own pocket) and the quality of teaching was night and day.

gumballhead··on How FarmLogs Is Building Software to Power the Future of Farming
I think that was the point of the podcast. It started as a typical and shitty CakePHP / Backbone CRUD app like everything else. You don't need much to get started.

There's a lot more in there now, but it's still built around boring record keeping software. I wouldn't even say accounting software.

We're ingesting shitloads of geospatial data specific to each field from government and third party sources, from weather data like historical rainfall and temperature, to in season and historical satellite imagery, to sensor readings from their own combines or smartphones.

This is going to help farmers understand their fields and how their crops are growing better and soon allow us to provide agronomic services like variable rate prescriptions. We're not predicting yield from NDVI. There is a correlation there, but like you said it's moderate.

gumballhead··on Ask HN: What makes a programmer a rockstar?
Groupies
gumballhead··on Ask HN: I got let go this morning. What should I do next?
Maybe check out Farmlogs. It sounds like you could be a great fit. We're in Ann Arbor so not too far away either.

https://farmlogs.com/jobs/front-end-engineer/

gumballhead··on PleaseWait.js – Show your users a beautiful loading page while your app loads
Right? Does this seriously need to be a js library?
gumballhead··on Why the ‘Best Places to Work’ Often Aren’t
What's makes that better is that Homejoy is rated 2.7 on glass door. To be fair though, I don't have an account on there so I couldn't read past the first page of reviews and most of the negatives were contractors.
← PreviousPage 2 of 3Next →