Better HN
topnewbestaskshowjobs
Log inSign up

programminggeek

5,207 karma · joined May 21, 2010 (16y ago) · 1,593 submissions

I am a builder. I build lots of things.
Submissions

comment 12y ago · link · parent

What is most remarkable is a lot of software developers love Google because they are so open and against patents and all of that, yet Google, Apple, and others are all working together to screw software developers out of getting paid more.

For as much flack as Microsoft took over the years for being evil, I can't say that Google or Apple have done much better, even for their own people.

comment 12y ago · link · parent

Whenever I see a "In Action" title, I read it "Inaction" and feel like it's a title that much closer reflects the realty of programming on a daily basis. :-)

comment 12y ago · link · parent

I personally find it absurd that there are such laws protecting car dealerships, but then again given the history of the industry, there does need to be some regulation. Where it seems to go wrong is the idea that a company couldn't sell their product direct to consumer. It's sort of like saying that Apple stores can't exist and Apple has to sell everything via Best Buy, Target, and Wal-Mart. Somehow, it seems that is how the car dealership racket has been legislated.

There is probably some kind of middle ground where Tesla should be able to sell direct, while there should probably be a possibility of dealerships trying to cut a deal with Tesla.

The real quagmire of unintended consequences here seems to be in how trading 6500 factory jobs for however many thousand dealership jobs. I don't know how it shakes out on either the jobs or tax income end for Texas, but whenever you are talking large change like this, the unintended consequences are usually worse than predicted in one direction or another.

comment 12y ago · link · parent

So, $250M actually falls short of the $292M they are burning through every year. The net loss of $168M a year means the $250M buys them almost 18 months of runway.

Their growth looks less impressive when you consider they spent $292M to only grow revenue $65M.

In short, they are spending $5 to make $1. It's possible the customer LTV is actually $6 over a period of years, but they might not be able to borrow enough to make it back in time.

Am I the only one that thinks that a company turning a profit is not like flipping a light switch? If you have a culture of overspending, you aren't going to wake up money and start running a tight ship.

comment 12y ago · link · parent

For the same reason Tesla built a roadster to start their company. Low volume and high margin is MUCH easier to achieve when you are small than high volume and low margin.

Watch Shark Tank for a while and you'll realize that even if you have a product people want, it's not trivial to scale a physical product business unless you have significant capital. Even if you reinvest the money you make, you are constrained by how quickly you can turn the money over.

comment 12y ago · link · parent

One of the best things about sports is that they are seasonal. If they weren't, people would grow tired of them and they wouldn't be that interesting.

For example, professional wrestling is a year round "sports" TV show. Without big events like special pay per view shows and such, it would have completely died. As it is, without "Wrestlemania Season" once a year, it would lose a lot of its audience over time because it would have trouble building to anything interesting. Professional wrestling has a resurgence once a decade or so because like many fads, there is a hook that gets people in, but since it never ends, people grow tired and move on to other things. The biggest performers - Hulk Hogan, Randy Savage, Shawn Michaels, Brett Heart, Steve Austin, Dwayne Johnson, and John Cena. Each one's careers coincided with a short "peak" in the business that eventually trailed off as another couple guys had their own peak 5-10 years later.

If NFL or any other sport moves towards more games, more tv, more exposure, it is going to risk being overexposed in a huge way.

Case in point - curling. One of the huge draws of curling is that for most Americans it is only on tv once every 4 years for the Olympics. That has added a mystique and an interest that makes it fascinating to watch. If curling was on every Saturday afternoon all year long, its ratings during the Olympics would drop.

comment 12y ago · link · parent

Because great designed Android apps don't sell any better than mediocre ones.

comment 12y ago · link · parent

The author has a very literal notion of "shippable". Shippable could mean to a beta group. It could mean to the public. It could mean that the feature is "done" but not turned on or it's hidden behind a feature flag.

Also, you are supposed to have retrospectives after each sprint to improve. This sounds like a discussion that should have happened with the OP's team at a retrospective.

comment 12y ago · link · parent

Also, if there is going to be a visual software development revolution, I think it will look something like a visual data flow language. Something along the lines of yahoo pipes meets rails or django.

How it would work is you would have something like ActiveRecord that can pull data into the first step, then visual steps for mapping, calculating, etc.. and spitting that data into a HTML view or whatever in the last step. You could design the HTML in a WYSIWYG kind of thing or just as a tempting system. Doesn't matter.

All it would be doing would be replacing a lot of the computation that programmers do with some functional lego block able logic in the middle. Once you had the mechanisms in place for this kind of system, I think you could swap out the data sources from a CSV file to a database to a restful service, and your design bits from HTML to iOS or whatever pretty easily, giving you the ability to work in a pretty general purpose way.

A tool like that could be very interesting, but it's quite a different approach.

comment 12y ago · link · parent

The closest thing I've seen to this notion of what the OP seems to want is Adobe Flex and MXML. Microsoft has kind of the same thing going on with Silverlight and XAML (or whatever they are calling those things now). Microsoft put a lot of time and effort into the design tools and everything else to make that a good experience for designer and developer from what I can tell.

The end result of visual design tools doesn't seem to match the hype. At some point you DO need programmers to make some of the magic happen. I think so far game development has probably done the most to merge the graphic designer, game designer, and programmer workflows into something that is productive for lots of people on the same project.

I really think Apple is the last place you'll see much programming language innovation compared to what you already see in languages compiling to JS or the JVM or even LLVM.

comment 12y ago · link · parent

If you are going to collect emails to promote your app launch, send out a useful email to your list every week or two. Your open rates and click through rates will be MUCH higher on launch.

Also, if you are "too busy" to communicate with your customers before launch, you probably won't have many customers after launch.

comment 12y ago · link · parent

Sounds like I need to give Scala another shot if compile times are a lot better.

comment 12y ago · link · parent

Wow, I haven't kept up with things, but gosh that sounds pretty great. Type checking + named params is a fairly difficult combination of great language features to find in the same language.

comment 12y ago · link · parent

Is there any interest in adding named parameters to Hack?

comment 12y ago · link · parent

I'm really intrigued by the concept of array Shapes. I actually implemented that for Obvious and use it for type checking hashes in ruby with Contracts. https://github.com/RetroMocha/obvious/blob/master/lib/obviou...

It's cool to see the same idea implemented in Hack. I don't know if anyone at FB has even heard of Obvious, but it's cool that they had the same idea in their language.

comment 12y ago · link · parent

Kotlin for a lot of reasons is the most interesting language to me right now. Go doesn't have immutability and doesn't seem to care so much about functional programming. It's great, but not what I want. Scala seems like a big language that tries to do a lot of things and thus it has a very slow compiler and a slow turnaround time for changes.

What Kotlin seems to be getting right so far is the useful side of functional programming features, IDE support, and a reasonably fast compiler. Compiler speed is something that Kotlin actually cares about, which last time I played with Scala, it was still dog slow to compile or even wait for it to decide to compile after you make a change.

Developer experience is very important to me and for the kind of software I want to build and the way I want to build it, Kotlin looks very promising.

comment 12y ago · link · parent

PostgreSQL appears more popular on HN because MySQL isn't as sexy, feature laden, and a lot of Rails developers jumped away from MySQL due to some of its flaws. For all non HN users, MySQL is hugely popular, as is PHP. Both are cheap, widely available, and easy to setup on both Windows and Mac.

MySQL is fantastic for probably 90% of what you'd ever think to use it for. MySQL is also a lot easier to find cheap hosting for and has tons of documentation spread throughout the internet. It's worked well for plenty of websites at ridiculously massive scale for a long time and by the time you ever get "to scale", your problems will almost always be with your code, structure, a poorly designed query, or a severe lack of caching long before you run into problems with MySQL.

PHP and MySQL aren't the sexy HN choice, and there are problems with both, but both will get you a very long ways before they are ever your main problem as a startup.

comment 12y ago · link · parent

I've worked on two large applications that would both benefit from Clean Architecture and they don't feel like outliers, they feel like the natural progression from any MVC framework to an app of significant complexity.

The first was a very large PHP app that ran a fundraising website that processed millions of dollars in donations. It grew organically over time and there was need to change database structure or swap out whole modules of the infrastructure like the site search. It was mostly untestable and really could benefit some automated testing.

Over time the app was moved to a Ruby web API with Sinatra with a decent Service layer with great test coverage. It's been a massive improvement over what was there originally and moved towards more Clean Architecture principles over time. It never went full Clean Architecture because getting team buy-in was difficult and until you feel the pain of a complex, monolithic codebase with minimal tests and a few botched late night deploys, it is hard to feel the pain that Clean Architecture solves.

The second app I've seen that would benefit from Clean Architecture is a Rails app that is pretty vanilla Rails. Normal MVC and all that. Lots of ORM and so on. The tests ran slow and over time the required reporting complexity made the database queries slow and terrible. We've pulled things into a service layer and presenters which helps a bit, but doesn't solve everything. Now we are moving the app reporting into a very functional, immutable approach where we calculate and cache everything all at once in the background. We are only using the models for basic CRUD and for easily pulling out our data structure from the DB, which is then handed to a bunch of functions which calculate everything. It's very much a functional core, mutable shell approach. Even still, this isn't a fully Clean Architecture approach, but it's a lot closer, and it solves a lot of the problems that default Rails MVC doesn't.

Clean Architecture is probably best thought of as something people move towards over time as they feel the pain of not having it. Once you feel that pain, it is completely reasonable to want to start your projects clean and keep them that way, but good luck convincing other developers to join you if they haven't felt the pain.

comment 12y ago · link · parent

There is a lot that Java EE got wrong, but there is a lot in there that is probably more good than bad. The amount of ceremony and effort (and XML) required to get a basic Java EE thing is not great. But, when I used Play Framework 1.x with Java, it was quite enjoyable. I haven't used it much since, but I could see something like Play solving most of the annoyances of Java EE, while keeping some of the good parts of Java or other JVM languages.

comment 12y ago · link · parent

This is a troll, but holy moly did it make me laugh. Well played.

comment 12y ago · link · parent

Obvious Architecture (http://obvious.retromocha.com/) was heavily inspired by Hexagonal Architecture and even has a working example app: https://github.com/RetroMocha/obvious_status/

For the record, with this kind of architecture, you can take the same codebase and use it for a web api, standard rails app, sinatra anything, desktop app, mobile app, or command line app. All using mysql, sqlite, postgres, mongodb, json files, or just about anything else you want for persistence. And your tests should all run in less than a second. It's pretty sweet from a purely technical standpoint. Obvious Status has done that with ruby, but I could see the same thing being done in Java, C#, or even C++.

I'm not sure why all the rails people are blogging about this kind of architecture seemingly all at once, but it's not new. It's pretty much where you end up when your standard MVC codebase gets out of hand on a reasonably complex project. Uncle Bob spoke over 2 years ago at Ruby Midwest about this and has blogged about it since then. Obvious came out last January and there were a few people talking about it since then, but not many.

The real struggle with this kind of structure is that it goes against the standard Rails patterns and ecosystem. DHH doesn't like it and frankly he's right. It goes against the whole spirit of Rails. It doesn't fit in with Rails. Sidenote, DHH originally called it the worst code he's ever seen attached to Rails, so it's got that going for it.

If you go down the path of clean architecture (in any of its forms), you are going to have to convince your team of Rails devs to stop using Rails as they know it. Most Ruby or Rails devs don't want or see the need for this kind of structure. That is okay. We had to build a lot of things to make building Obvious apps in Ruby more awesome, but it's an uphill battle. Other languages give you things like interfaces and method parameter type checking as part of the language and will even check them at compile time.

Clean Architecture is great, but I think it's going to lead developers away from Ruby and Rails, at least for the core API portion of their app. I really don't know what language most developers will land on, but it will probably have a compiler, it will probably support functional programming and immutability, it might support OOP, and it will probably be on the JVM. That's just my guess.

comment 12y ago · link · parent

It seems like whenever something like this happens publicly in our industry, a lot of people get all up in arms for a few days on blogs and twitter and then people forget until the next one happens. I suppose that is the way of the world, but it seems like people are more invested in being upset by things like sexism, racism, spying, or whoever sold for a billion dollars than they are in doing anything about it. I think a lot of people like complaining and being unhappy, even if the problems of the day have nothing to do with them directly.

comment 12y ago · link · parent

I was pretty sure this would happen once Xamarin spun out of what was left of Novell. Open source .NET proved that C# is a great language outside of Windows and it wouldn't take much money for Microsoft to acquire it. Throwing Microsoft's considerable resources at Xamarin would allow Microsoft to gain a huge foothold in cross platform development, and thus would be much more likely to have developers port their apps to Windows.

Microsoft used to embrace, extend, and extinguish their competition before they got too big and too afraid of their own shadow(and shareholders) with Windows and Office. Honestly, it makes total sense for Microsoft to acknowledge they are running a distant #3 and get as many developers behind them as they can. Make Microsoft the place where real hackers go to write code.

Buying Xamarin is embracing. As is maybe a Nokia Android phone. Microsoft needs to make their own "better" version of Android with their own services and get people hooked on that. Then make the "best" version of Android called Windows A. It's Windows, on Android. Windows A's best features would be closed source and patented. It would potentially crush Android in the mainstream.

I don't think that Microsoft has the guts to try and pull that off, but if they did, it would be a feat.

comment 12y ago · link · parent

I would just like to say that this is not a "women in tech" problem. It's basically that the same dynamics that exist in high school often exist in business, especially small businesses. Replace the location: github with the high school cafeteria and it sounds like not unexpected behavior.

I'm not exactly sure why women in tech think this is about being a woman or being in tech or working at a tech company. The same behavior exists in non tech companies and you can have equally screwed up relationships with coworkers and their spouses as a man.

These problems are basic problems with people interacting with other people.

comment 12y ago · link · parent

I've played with Go and I like it well enough, but it doesn't offer anything interesting in the way of immutability. In fact, it doesn't so much offer it at all from what I've seen. Also, I'd like whatever language I land in to support named parameters.

comment 12y ago · link · parent

If Node is taking over the enterprise, we are going to have a lot of broken Enterprise apps that are wildly unmaintainable in a few short years.

comment 12y ago · link · parent

Did anyone believe that Popcorn Time was going to end any other way than this?

Either they were going to be shut down by their own choice, or their hand would be forced by outside litigation. Just because something is legal doesn't mean companies won't spend millions of dollars to make your life miserable because of what you built.

comment 12y ago · link · parent

I've done Scala in the past and I think I'd be able to handle it better now. Honestly though, there is such a small footprint of the language that I would even care to use that I'm not sure it's worth learning. I'd probably stick to the immutable value objects, functional constructs like ruby's equivalent to map, select, each, etc., and use traits to enforce contracts on jack/plug objects. A lot of the other things in Scala don't appeal to me. This is one reason Kotlin is looking more interesting from where I sit. It has the features I want, IDE support, and a decent syntax.

It is entirely possible that I'll check out Scala again and fall in love with the language. Who knows.

comment 12y ago · link · parent

What I would really want from a language wouldn't have much in common with Ruby. It would look like ruby, but be mostly functional, compiled, with great support for immutable data structures, and named parameters. The closest I've found to this is Scala or Kotlin. I haven't had much time to dig deep into either though.

I'm glad Obvious influenced you, but I'm not surprised you didn't use it directly. To be completely honest a lot of what I built in the obvious gem, other languages give you just as language feature. For example comparing similar entity and contract structures in Ruby/Obvious, Mirah, and Scala: https://gist.github.com/brianknapp/6178930 I made Obvious work in Ruby because Ruby provided a great platform for figuring out how to make this work well. However, most Ruby devs either don't get it or don't like it because it's not very Ruby or very Rails.

The best Rails code I've ever written is basically using ActiveRecord to pull in a big data tree from the database and then using that to populate and do calculations on a bunch of immutable data structures using Hamsterdam::Struct. The code is really clean and beautiful and very easy to test. The final computed data structure is then used to populate an immutable presenter that helps generate the view. It is very much in the vein of a functional core and mutable shell concept that Gary Bernhardt advocates. My Obvious apps tend to follow a similar pattern, tho I haven't updated the Obvious site to mention functional core and mutable shell, but the code's kind of always been that way.

You can write great code in Ruby and Rails, but to me it's always going to feel more like a prototyping tool than something that will feel great to maintain for long periods of time.

comment 12y ago · link · parent

I would love a compiled, statically typed Ruby, but I don't think the Ruby world wants it. I think Ruby is a fine tool in its current state.

I think there is a need for a different language that makes clean architecture natural, well accepted, normal thing. Ruby is great, but trying to change the community and language doesn't seem to be the right approach.

1
212223
54