HNHacker News
TopNewBestAskShowJobs

curveship

1,097 karma · joined December 16, 2010

submissionscomments
curveship··on Wysiwtfftwomg
I used to edit books, and had the privilege of working with a few well known authors, people whose names you'd know if you follow fiction.

One of these fellows spent his personal money to get three copies of his book laid out, in three different fonts. The look of the book was that important to him.

Am I supposed to lecture him that he should be thinking about "logical structure" not appearance? That I know what books are about more than he does?

curveship··on Fighting a 30-year-old software bug
Given Excel's popularity in the business world, I wonder if an exploit of some sort could be built into scheduling a transaction for February 29th, 1900. The date exists in Excel, but not the real world.
curveship··on The Ball-of-Mud Transition, or how software gets complex
This is a neat thought experiment, but it seems to me it's looking at a different part of the curve than software complexity. The "phase transition" the author discusses occurs between 0 and 1 threads/button. In a software project, you wouldn't bring in a new component unless it served some use to the existing pieces, so software projects start at 1 "thread/button," and unless you've got orphaned code, the "cluster size" is always 100%.

Software complexity strikes me as a graph-coverage problem: given a graph of N vertices and M paths (i.e. software components and dependencies), how many vertices and paths do we need to traverse (i.e. understand) in order to make a change to component X? How does that parameter scale with different forms of graph -- linear, n-ary tree, DAG, cyclic (yikes!)?

Or is there a homomorphism between the two problems?

curveship··on Formula 1′s Leading Team Has a Big Secret
So much distorted history.

Recumbent bicycles are older than the modern "safety" bicycle. They lost in the marketplace on their own merits long before the UCI even existed. They are faster in some scenarios, they are slower in others. They cost more, they weigh more, they break more, they're less agile.

The '30s were not the "dawn of racing." The peak of bicycle racing (and technological progress) was 1880-1917. That would be when the safety bicycle was emerging as the dominant configuration.

Moulton wheels had over 30 years to prove themselves before they were banned in 1996, following the Lugano Charter. They didn't.

curveship··on ECMA-404: The JSON Data Interchange Format [pdf]
No, not all browsers, and not all of ISO 8601. Safari only added ISO 8601 Zulu parsing in the last few months, and IE only at version 9. Neither support explicit timezones yet. Which means there's still a large population of browsers that will choke. As I said, date parsing is a mess.

In any case, my general point still stands: dates are the only "data" type (i.e. not a function, regex, etc.) which is not supported by JSON. So even if there were a usable universal serialization format, you'd still need to post-process the results of the JSON parser to convert the strings into dates.

curveship··on ECMA-404: The JSON Data Interchange Format [pdf]
I really (really really) wish they'd added a way to represent dates. Dates were left out of the original JSON spec since javascript doesn't define a syntax for date literals. You have to execute the Date() constructor to make them. Since JSON was supposed to be a subset of non-executing javascript, dates were excluded from JSON.

That left serialization to a string as the only way to transfer dates. But since there's no specification for the format to use, cross-browser date parsing is a mess (see http://dygraphs.com/date-formats.html ). JSON + dates = sadness.

The non-executing constraint on JSON was a good idea in its early days, when eval was the most common way to parse JSON, but now that there are dedicated parsers for all environments, it's not as much a priority. But we're still stuck with kludgy workarounds for the lack of native date support in JSON.

If there's still concern about using the Date constructor, the spec could require that the date be prefixed to avoid execution: "0 || new Date(...)". Real parsers would extract the date correctly, eval would just return 0.

curveship··on Formula 1′s Leading Team Has a Big Secret
This is wrong on two important levels:

- the UCI limits bicycles so that it's a race between cyclists, not bank accounts. Currently, a top pro's bike costs about $10-15k, and a competitive bike can be bought for as low as $2-3k (even lower at the amateur level). If they removed the technical limitations, that number would be at least an order of magnitude higher, and potentially two or three.

- bike races are not just about speed, they're about speed and tactics

I think a relevant comparison is the America's Cup race. Back when they raced tubby, slow, antiquated 12 Meter yachts, there were dozens of countries competing, viewership was high, and the races were exciting tactical battles from start to finish. Then they switched to super high tech wonderboats costing 100s of millions. Those boats are amazing feats of engineering, no doubt, but after you've watched them for 5 minutes, there's really nothing left to see. The costs are so high that there are now only two competitors, and the event may die entirely next go round, as there may be only one (Ellison) willing to pony up so much money. Viewership has plummeted as a result.

curveship··on Ask HN: Who is hiring? (October 2013)
Concrete Data (www.concretedata.com) - Durham, NC - Local only please

We're a small company (2 partners, 2-3 employees) looking to hire an experienced .NET developer for systems integration and ground-up development projects. Our clients come from heavy industry -- civil engineering, construction, shipping, manufacturing, etc. -- where information technology stagnated a decade ago. This is our opportunity. We've built a business around providing modern, user-centric web and mobile applications to replace their aging and clunky desktop programs. Enterprise doesn't have to suck.

Being a small company, you'll be given a lot of autonomy and chances to learn. At a large firm, you may spend a decade contributing your small piece to a vast legacy sourcebase. We start 6 new projects a year. Iterate rapidly and improve your skills.

Inquiries can be sent to me -- adam@concretedata.com

curveship··on Google Recently Made A Silent Shift To A New Search Algorithm, “Hummingbird”
- still works, but they removed + a couple (few?) years ago. Instead, they recommend you put the single term in quotes, so a search for 'linux +powerpc' would now be 'linux "powerpc"'.
curveship··on MVC is dead, it's time to MOVE on (2012)
"Controller" is one of those terms that has meant a lot of different things at different times and in different systems. I agree that the same code asset (whether it's called a controller or whatnot) that handles user input should not be responsible for implementing a rule like "new users get emailed." At the same time, I also don't think such a rule belongs in your model layer. It should go in its own class (sometimes called a service, sometimes also called a controller). So the controller-managing-ui calls the controller-defining-behavior to make changes to the model.
curveship··on MVC is dead, it's time to MOVE on (2012)
I think the problem is that "business logic" is too vague a term, spanning what can be called both "rules" and "behavior." What you've cited -- "emails must be unique" -- is a business rule and belongs in the model, since only the model can enforce a data invariant like that. But take something like "new users are sent a welcome email." Would you put that in the model? Personally, I wouldn't (my User model is supposed to know about the mail service? really?). That fits into the class of behavior and belongs in a controller.

Put another way, when business rules change, you change your models. When business behavior changes, you change your controllers.

curveship··on The US Department of Defense isn't sure where Damascus is: statistical proof
I knew exactly where Damascus was, but they put me down as barely making it inside their 200 mile cutoff, at 163 miles away. I think this is more about bad UI design. I got a hand cursor rather than a pointer, making it difficult to be precise, and I never noticed the zoom logo in the upper left.

Plus, with only 65 DOD responses, how significant is a deviation of only 4.5% from the norm?

curveship··on N-gram Analysis of the New York Times Weddings Section
If this is like most n-gram analyses, the percentages are of the total corpus, i.e. percentage of words, not articles. So 60,000 articles could be 12,000,000 words and 2400 positives if there are 200 words per article (a SWAG).
curveship··on Ask HN: Who is hiring? (September 2013)
Concrete Data (www.concretedata.com) - Durham, NC - Local only please

We're a small company (3 partners, 2-3 employees) looking to hire an experienced .NET developer for systems integration and ground-up development projects. Our clients come from heavy industry -- civil engineering, construction, shipping, manufacturing, etc. -- where information technology stagnated a decade ago. This is our opportunity. We've built a business around providing modern, user-centric web and mobile applications to replace their aging and clunky desktop programs. Enterprise doesn't have to suck.

Being a small company, you'll be given a lot of autonomy and chances to learn. At a large firm, you may spend a decade contributing your small piece to a vast legacy sourcebase. We start 6 new projects a year. Iterate rapidly and improve your skills.

Inquiries can be sent to me -- adam@concretedata.com.

curveship··on Why Wal-Mart Will Never Pay Like Costco
That's $63m to just the top 6 executives. Total executive compensation would be far far greater. And for comparison, Costco paid its top 6 only $19m, which I think is the GP's point: http://insiders.morningstar.com/trading/executive-compensati... .
curveship··on Soylent: Operations Update
On a global scale, Soylent is very very expensive. Their current pricing is $65/week. Many nonprofits feed someone for $50-100/year in the third world. The price would have to come down to 2% of the current value to be considered. That's unlikely with such a heavily industrialized product.
curveship··on Show HN: Theory.js – Abstraction layer for cross-platform JavaScript
That sounds a lot like the definition of NIH attitude.

You might like lodash.js if cross-browser consistency is your true goal.

curveship··on Show HN: Theory.js – Abstraction layer for cross-platform JavaScript
You realize, I assume, that you're making a lot of quixotic choices in this library, many of which appear to be different for personal (and, in some cases, I would say dubious) reasons. 1-indexed arrays? Arrays are no longer objects? An 'each' function that uses it's own way of combining what countless languages before you have split into 'map', 'filter' and 'each' functions? Etc etc.

I'm going to hazard a guess that your work has been predominately if not exclusively as a solo dev. This is effectively your personal utility library. That's cool. The problem is that virtually all software eventually ends up being a team effort, if nothing else than by the guy/gal who has to work on it after you. You may not like how JS does some things (like zero-indexing), but that guy already knows JS, he doesn't know your library. By revamping core semantics of JS, you're forcing him to learn your opinions. Are you so sure of your opinions that you can confidently say it's worth everyone else undergoing that effort? Are your opinions really so important as to break compatibility with every other piece of JS?

I gather from your comments that you intend this library as the base of a larger project. I'd encourage you to base that project on more widely known foundations -- pick your favorite module system, and use underscore.js or one of the other widely vetted and tested utility libraries.

curveship··on Apple provides credit to people who have reported security issues
The message apparently is and isn't there. If I go to http://support.apple.com/kb/HT1318 , it's not shown. But if I go to http://support.apple.com/kb/HT1318?viewlocale=en_US , then it (and several other recent updates) are shown. Cache/translation/backlog issue?
curveship··on Ractive.js
You're awesome. I've been playing around with a dependency network in JS recently, and I'd just been puzzling over exactly that question: how best to handle the case where a computation has side-effects. So I'm now busy googling concurrent revisions and self-adjusting computations. Got any further references to throw my way? Is there a standard literature on this stuff?
curveship··on Ractive.js
I like a lot of this, but one part I'm not so sure of is that, if I follow the docs, all get/set operations need to be from the root of the model. They take a "keypath" that starts at root, like "obj.get('subObj1.subArray[3].prop')". It seems to me like that would make it difficult to decompose a large application into component pieces. Your components, to do any get/set operations, would need to know their path from root. And what if that path changes, like an array that's modified? Seems like it could become a considerable barrier in mid-to-large applications.
curveship··on Ractive.js
I've been using knockout heavily for a project recently and have come to really like it. This is a small to mid size website, about 6 engineer months of effort and somewhere in the mid 10klocs of custom javascript. Some strengths of knockout:

- it builds on the "Good Parts" of javascript, in that KO observables are just closures. You can pass them around or attach them to different objects however you feel like. For instance, we built a standard UI widget for entering currency values. Anywhere we need to accept currency, we instantiate one of these widgets and pass it the observable that holds the value. Clean, easy, encapsulated.

- Some people have a distaste for the "()" syntax: obj.prop() rather than obj.prop. There's some truth there, but the "()" syntax has one big benefit that overrides the slight ugliness in my experience: it catches naming errors immediately right at their source. If you've ever had to refactor a fairly big piece of JS, you know that one difficulty is correcting all the changed references. And if you miss one, the bug may be subtle, as the old reference doesn't except but quietly returns undefined. With knockout, the old reference blows up immediately, as undefined isn't a function. This is a big win.

We had some growing pains with knockout. Lessons learned:

- don't build anything but a small web app the way the knockout examples demonstrate. The reason is that while knockout claims to be MVVM, their examples are really just VVM -- there're no distinct model classes. They store data directly in the viewmodel classes. Bad things follow as your app grows: since the data is in the VM, any view that needs the data (i.e., all of them) needs to be bound to that same VM, meaning that your one VM ends up needing to feed several views. You find yourself annotating your viewmodel into sections -- "// these properties are used by view X ... // these properties are used by view Y" etc. Yech. Much better to have true model classes, then build a VM class on top of the model for each of your views.

- we now make heavy use of named templates to decompose large views into more manageable pieces. We wrote a simple custom binding to make this easy: since each VM is designed to work with a single view (see prior note), we put the #id of the view's named template into a .Template property of the VM class. The custom binding inspects this property and binds the VM class to its named template.

curveship··on Ractive.js
Knockout does incremental updates as well as memoization. It instruments the evaluation of computed observables to determine the dependency relationships. I haven't delved into Ractive.js closely, but it sounds like it does something similar. How is what they do different from what you're describing?
curveship··on Elon Musk to publish hyperloop design by August
That's really interesting. I wonder if the vehicle could effectively "surf" the back wave for propulsion -- higher pressure behind, lower pressure in front pushes the vehicle forward enough to overcome whatever low friction is involved. With an external system both for getting up to speed and in case it "falls off the wave."
curveship··on Human-Powered Helicopter Wins the $250,000 Sikorsky Prize
An average pro (domestic and international) vs. the pro who just won a worldclass TT. An average weight pro vs. a big boy like Tony Martin or even more so Shane Perkins. I've seen quite a few pro wattage files, and 350 is fairly common for an average pro.

The more reliable measure is w/kg. Pros tend to range anywhere from high 4s (low-level sprinters or rouleurs) to mid 6s (world class TT'ers or climbers), with most being somewhere in the 5s. If la gazzetta's numbers are right, and if we believe Tony Martin's posted weight of 75kg, his 480 watts puts him at 6.4 w/kg.

curveship··on Human-Powered Helicopter Wins the $250,000 Sikorsky Prize
Replying to self, as I just noticed (awesome!) they included a power chart for the record flight.

About 1kw for the first 12 secs, then settling down to 600w for most of remainder. That's a boss ride, especially for a 70kg rider. Dude's a monster.

curveship··on Human-Powered Helicopter Wins the $250,000 Sikorsky Prize
Thanks for the link! Lots of interesting info:

Empty Weight: 55.1 kg All-Up Weight: 130.1 kg Flight Power (0.5 m): 450 W Flight Power (3 m): 750 W

I wonder if those wattage numbers are estimates or measurements.

curveship··on Human-Powered Helicopter Wins the $250,000 Sikorsky Prize
Bit of cycling geekery: if he can do 1100 watts for 30 seconds, he's probably around about 750-800 watts for 60 seconds. Power declines approximately with the inverse of time until it flattens out at your long-term sustainable power. A pro is probably somewhere in the 350 watts range of sustainable power, so doubling the duration would mean his power above the sustainable rate would be halved, putting his estimated 60 second power at 725 watts. In this particular range of power, the approximation tends to be a little low, so fudging upwards a bit puts him around 750-800 watts.
curveship··on Seth Vidal, creator of yum, killed in hit and run accident
Car drivers routinely ignore certain rules too: speed limits, full stops at stop signs, etc. They do this because doing so is mostly safe. It's the same with bicyclists: the rules they ignore are mostly safe too. The confusion is that, because cars and bikes are different, the rules that are safe to bend are different in each case.
curveship··on Seth Vidal, creator of yum, killed in hit and run accident
NC General Statute 20-4.01 (49) defines a bicycle as a vehicle with the same rights and responsibilities as other vehicles:

"bicycles shall be deemed vehicles and every rider of a bicycle upon a highway shall be subject to the provisions of this Chapter applicable to the driver of a vehicle"

source: http://www.ncga.state.nc.us/EnactedLegislation/Statutes/PDF/...

← PreviousPage 5 of 7Next →