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 13y ago · link · parent

Wow, I feel like Heroku is really dropping the ball here. Like, they are acting punch drunk or something. Basically all this says is "we hear you and we are sorry". They could have posted that a day ago. This still says nothing about what is wrong and what they are doing to fix it.

Also, I'm not sure at what point this is, but at some point around say $3-5k a month, (100+ dynos) you really should rethink using Heroku. At that point and higher, you really ought to know about your infrastructure enough to optimize for scale. The "just add more dynos" approach is stupid because adding more web fronts is often the lazy/expensive approach. Add a few queues or some smarter caching and you'll need fewer web servers. Throw in something like Varnish where you can and you need even fewer servers. Point being, at some point scaling is no longer "free", it takes work and Heroku isn't magic.

comment 13y ago · link · parent

I've dipped my toes in RubyMotion and it's a lot of fun.

comment 13y ago · link · parent

The problem with app templates is, how often do you start a new app vs. how often do you want to maintain every change you made to your base app template? Article pretty much nails it.

comment 13y ago · link · parent

He is right, but I"m not sure for how long. Right now there isn't a huge market for Linux games, especially big budget ones. Smaller games might see good ROI, but I don't know.

When a real Steam Box happens running Linux, things might change quite a bit, but it needs to sell in the millions of units before it starts being a big deal.

In the short term OUYA is more interesting.

comment 13y ago · link · parent

I think the safest way would be for you to buy a new 13" Macbook Air, install Meteor, and deliver it to me in person. That way I know its legit.

comment 13y ago · link · parent

Um, a CEO should champion a direction and a vision much less than an implementation. The job of the CEO is to make sure everybody can do their job, the bills are paid, the company grows, etc. To run the company, not to build the tech stack.

Also, responsive design is fine, but it's not perfect by any means. It adds cost, it adds complexity, and it isn't always the best interface to reach the end users.

There is upside to responsive design, but it's not magic and it shouldn't be touted as some kind of panacea to all things.

comment 13y ago · link · parent

I've actually had a lot of success using Knockout doing some single page apps. It seems Angular is similar?

comment 13y ago · link · parent

Responsive design is "hard" as in, it takes effort. It might be worth doing for some sites and maybe less so for others. It's a question of priorities.

The bigger ongoing question is not up front cost, it's maintenance. Responsive design might get you device support across bigger or smaller devices over time without going back to specifically support them, as people are doing now to support mobile and tablet.

We don't know what people will be using even in 5 years... iPad is what only 3 years old?

Not everything needs to be responsive or perfectly responsive, but getting the best experience to your user on whatever platform THEY are on will always be the name of the game (otherwise nobody would support IE 6, 7, or 8).

comment 13y ago · link · parent

This is probably not a brilliant question, but why this instead of git for version control and um editing directly on github? With Github zen mode, you can edit a document directly on the site and every save is in stored in git.

comment 13y ago · link · parent

What is most interesting here is the ideas about protocols and communication. To me, that's what much of software development is getting wrong both on the small and on the big.

In a single app, objects should talk to each other and databases and queues and junk via protocols, not by being glued to an ORM or a particular implementation of a queue or whatever. Most devs don't do this because it's more work, but you end up with a much cleaner/more testable structure to work with.

On a higher level, many/most programs aren't made to communicate with each other at all. Look at web software, it's all about communicating with a browser and that's it. The API driven movement is helping things along, but it's still a HTTP Browser driven mindset complete with holy wars about REST/Hypermedia.

Unix pipes are a great example of what is possible with standard communication protocols, but it seems like it could be taken further. What if you could pipe a stream of API's together? Yahoo's YQL and Pipes plays in this realm, but you still have to kind of glue pieces together yourself.

Imagine if you could say...

fb search --name 'John Doe' --location 'Chicago, IL' | linkedin --filter 'Ruby Programmer' | twitter tweet 'Hey check out our ruby meetup next week'

That's a somewhat contrived example, but it would be great if we could do something that simple and not just via a command line, but from any language in a similar amount of code. That would be a step forward I think.

comment 13y ago · link · parent

It's ironic that unlocked phones benefit carriers arguably as much as locked phones do. An unlocked phone makes it easier to switch carriers, thus cheaper for carriers to acquire customers, but maybe they'd all rather have it be expensive to acquire customers so that it's harder for smaller providers to compete.

Either way, I don't think that the DMCA was designed to ensure a telecom oligopoly.

comment 13y ago · link · parent

This is going to lead to phishing. Obviously the possibility is already there, but something tells me that once users get used to this, it will be lead to credit card fraud.

Not on a secure site? Well, the stripe widget just popped up, so it looks legit...

You get the idea.

comment 13y ago · link · parent

Um.... no.

If by innovation you mean the invention of totally new and interesting things, no. There are plenty of new and innovative ideas/products that come from an agile/lean process.

What people are glossing over is the fact that building things is hard. Inventing things is hard. Changing the world is hard. It takes time, effort, the right people, the right timing, the right placement. Agile or waterfall don't matter. People do.

Smart, driven, clever, brilliant people are never going to be the majority. The majority of people are not above average. Expecting a large portion of people to become continuously more awesome every generation is insane.

Not everyone is going to be a winner. Most people aren't exceptional.

No amount of process of any sort can change that.

comment 13y ago · link · parent

Um, one thing that is critical is time and place. You can do all of these things, but with content that isn't for the right people at the right time and it goes nowhere. It's like the idea of the tablet. 10 years ago the tech was too expensive. Idea was great, execution was not totally horrible, but at $1000+ who cares? At $200-500 with even better execution it's a phenomenon.

comment 13y ago · link · parent

The upshot of this is that the guy who outsourced his job successfully figured out a way to manage outsourcers well. He deserves to get paid well to do that right?

Maybe he shouldn't have given his 2 factor auth key to the contractor, but still. Well done.

comment 13y ago · link · parent

What would help Rails the most is probably some example projects. They could be anything ranging from simple twitter clones to maybe full on e-commerce stores or something. Build them using the "golden path" and maybe someone else could build the same thing using the "prime" stack.

When I started the Obvious architecture, writing an example app made it concrete and makes it a lot easier to explain particular details or structures to people wanting to learn.

People love examples.

comment 13y ago · link · parent

PHP is for webdev. That's it. Go outside the bounds of that and it loses its magic. On its own it's great for spitting out a webpage. It's a scripting and templating language in one, which is kind of cool.

That said, outside of that to make PHP work on bigger projects you end up with a lot of structure and ceremony that make PHP suck, not quite as much as Java, but it's not amazing.

Thiings like testing and testability aren't much fun in PHP. For a long time package management was a joke.

PHP is for webdev. That's it.

comment 13y ago · link · parent

Um, JavaScript is cool and all and you can use it in a lot of places, but for things beyond nontrivial apps, Node.js is going to be hard to scale to larger teams. Maybe that is a good thing. Maybe having a bunch of smaller services talking to each other is the way to go, but so far node hasn't solved the inherent callback soup problem.

comment 13y ago · link · parent

The idea here is right on. It's like if you build a free app on the app store and you don't have ads or in app purchase. That isn't a MVP, it's a hobby. Things change when you start charging money for what you're doing.

A business is likely not a business if they aren't charging someone for something. Instead it might just be an organization that builds things, but for better or worse a business is something that is created to make money. If you don't like that idea, you shouldn't be "in business".

comment 13y ago · link · parent

FYI, a $500 PC that attaches to your TV is not going to sell well. It might be profitable and a good idea, but it's not going to stop console gaming from "winning". The magic price point is $199.

Something like the OUYA is more likely to hit the mainstream. $99 is a great price point. What people are discounting is that something like OUYA could get updated every 1-2 years unlike the 7ish year console lifecycle we are currently in. ARM keeps getting faster, it will certainly be "fast enough" soon...

comment 13y ago · link · parent

I use this process when I'm building things with Obvious(http://obvious.retromocha.com). The web and the db are details.

Building this way lets you fill in those bits when you need them, but you don't spend a bunch of time being tied to a particular framework or database infrastructure until you need them.

What is cool is once you start decoupled, it is easy to stay decoupled and the details can stay that way.

comment 13y ago · link · parent

I think this proves that what Sencha has done is incredibly effective link bait. It has not proven anything about HTML5. Sencha makes a great tool for building HTML5 apps. There are still plenty of issues with building HTML5 web apps.

Also, part of the reason HTML5 keeps "getting better" is Moore's Law. If we keep adding processing power and webkit keeps improving, then HTML5 keeps "getting better" which is not exactly true. On 2-3 year old hardware how does it run?

I like writing HTML5 mobile apps, but what Sencha has done is overblown. Good marketing, that's it.

comment 13y ago · link · parent

Obvious is a clean architecture more directly in the style of Uncle Bob's Screaming Architecture. It's actually a kind of hybrid between Screaming Architecture and Ports-and-Adapters. In fact, I looked at Hexagonal architecture a lot and purposely avoided the terms ports and adapters in place of jacks and plugs even though they are conceptually the same idea.

The key difference in Obvious is that it tries to be more purposeful in the naming and the structure of the parts of your application. The "app" describes your business logic and entities, the "external" defines external interfaces to data sources, and the "delivery" defines the delivery mechanism like a web app, command line, rich client, or whatever.

To drill down deeper into things being given obvious names and structure, the "app" is structured with single purpose use case objects called actions. Core data structures(business objects) are defined by entity objects. In that structure you can look at the app folder and see what the system data is and what the system does. The idea is that the system's intent and functionality would scream at you just by looking at it from a high level.

Uncle Bob's keynote at Ruby Midwest 2011 articulates it a bit better than maybe I do - http://www.confreaks.com/videos/759-rubymidwest2011-keynote-...

comment 13y ago · link · parent

Can't you put the whole app folder into one JAR? Also, you could put all the jacks and plugs into a a separate JAR. So, you have two JAR files to include into each project.

I think you could have each JAR have src/main/scala/[Obvious folders] type structure, so for your app.jar you could have src/main/scala/app and src/main/scala/external for the external.jar.

You can make it as granular as you need, but the more you break things up, the more packaging overhead you'll incur.

comment 13y ago · link · parent

Wow, that's a crazy structure. I like it. Conceptually, Obvious is language-independent, but for now it's only implemented in Ruby. It would be pretty easy to implement elsewhere in Java, Scala, Python, or whatever.

That being said, in each instance you could use the Obvious approach to structure each app. If you were using the same language in each place, you could theoretically reuse the "app" structure in multiple places, so that your same business rules and validations would exist in each instance.

For the structure you describe, if you were willing to do Website B in something that worked with the JVM, you could write your "app" in Java or Scala and package it as a JAR file. So, you could use Jython to run your python code on the JVM. Then, you could reuse your app library in each project.

Assuming your app is a JAR file, your structure would look like this:

REST API - Scala for delivery -> App JAR -> NoSQL plug

Website - Java, Scala, Jruby, or Jython for delivery? -> App JAR -> API plug or MySQL plug

Android - Java for delivery -> App JAR -> SQLite db plug & API plug

If you were able to run the whole thing on the JVM you could place them all in one project, or separate projects, it's really up to you. And yes, the REST API would act as a delivery mechanism for system A and a plug for systems B and C.

comment 13y ago · link · parent

Netbook is still here. Samsung and Acer still make them. They're called Chromebooks. They only run the internet. They are small. They are cheap. They have the word book in the title.

The netbook is dead, long live the netbook!

comment 13y ago · link · parent

Yep, there is an example twitter clone called Status. https://github.com/RetroMocha/obvious_status

It can run as a rails app, sinatra web app, sinatra api app, command line app, or desktop app using jruby. Backend database is pluggable and can use json files, mongo, mysql, or even its own api as a data source without switching the application code itself.

comment 13y ago · link · parent

This doesn't have to just be about finding potential customers. If you've built an open source project that solves a problem, you can use similar ideas to find people with that problem and show them what you've built.

comment 13y ago · link · parent

Well for now Obvious is implemented in ruby, so everything happens at runtime.

There is no explicit dependency between layers. Dependency injection is used to pass the data jacks into the actions. That allows for incredibly fast tests and pluggable data persistence.

comment 13y ago · link · parent

I'm one of the creators of Obvious. If you have any questions, fire away!
1
394041
54