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

I did enough ad buying from AdWords and dealt with the changeover to "Quality Score" to know that Google cares a lot about raising their ad rates, but not having the perception of doing so.

The same goes with things relating to SEO and since AdSense sits at the intersection between SEO and AdWords, it is not at all surprising that some managers at Google would use the guise of "quality" to juice their numbers.

I don't know if it's true or not, but the story certainly lines up with my experiences with Google over the years unfortunately.

They deal with a lot of spammers and scammers, which is a legitimately difficult job, but they also are a giant megacorp out to make a buck, and that doesn't always mean they do the right thing.

Mostly I bet this gets swept under the rug and isn't investigated, which is a shame.

comment 12y ago · link · parent

I feel like MVC is being treated as like the one true pattern to design your web app with and that's just simply not true. Rails is MVC and maybe that's all it should be for what it is intended for. Other projects might not be a great fit for such a simplistic view of the world and maybe that means Rails is not a great fit for projects that don't fit into the MVC abstraction.

In my experience MVP, MVVM, super thin Sinatra API's, hexagonal architecture, functional programming, and other sort of weird approaches fit certain projects much better than the standard Rails MVC approach.

Also, not every project is a web app and there are plenty of times where various testing approaches make a lot more sense than they do in Rails. It's too bad that a whole line of thinking about software quality is being disparaged because it isn't a good fit for Rails as DHH sees it.

TDD is a useful tool in the right context. Maybe that context isn't Rails.

It seems unwise to be telling a lot of smart people who care about software quality to "get off my lawn" so to speak, but I've never run a successful OSS project as big as Rails, so I probably don't have a clue about how to lead a community as big as Rails is.

comment 12y ago · link · parent

Another great example: Blackberry.

They did the emerging markets growth strategy and it worked to help juice their numbers for a few years until Android and iOS totally destroyed all but their core customer base.

The real danger in this strategy is not that it grows an unsustainable business, just that the sustainable portion is much smaller than the peak and if you forecast up and to the right growth forever, it eventually doesn't happen and you have budget shortfalls and layoffs.

Hyper growth is exciting and gets you headlines, but sustainable, steady growth is probably a happier long term situation for moth businesses.

comment 12y ago · link · parent

I think shipping your own client lib sort of defeats the whole point of REST as the "one true way" to build API's. I agree that building a client library is useful and makes it easier to integrate with, but it also proves that REST on its own is not completely superior than something as conceptually simple as JSON-RPC.

I fully understand the benefits of REST, but on a lot of projects, a single endpoint and a simple RPC protocol would be easier to integrate without need for a separate client library.

Also, client libraries don't always do the best job of making it clear when you are making api calls over the wire and that can be quite problematic.

For example, I've worked with code where it made an http request to get a price, which was then used in a Model calculation. This code looked completely harmless at the highest level, but each page request was hitting the server 100+ times to do all the calculations needed.

After finding the problem adding some caching was easy and now things run faster. However, having that level of abstraction and indirection makes it far less obvious if/when/where HTTP requests happen and that isn't always a good thing.

comment 12y ago · link · parent

When they say $100 million, do they mean raised or company value? If they burned through $100 million in 15 months, I have no idea how they could light that much money on fire so quickly.

comment 12y ago · link · parent

I don't care about the article, I'm here to make a design complaint.

The page is a giant TC logo with an ad next to it, oversized menu navigation, a headline, and then A GIANT PICTURE that literally takes up my entire 13" laptop screen.

All of this before I get to the actual article with actual content.

Word of caution - not everyone browses the internet on dual 27" cinema displays or Retina MacBook Pros. Even still, oversized images do more to stroke the designer's ego than to truly enhance the communication of the content.

For ad much as designers hate "Make the logo bigger", they have totally got onboard with oversized photos on blog post headers/featured images.

comment 12y ago · link · parent

I think that is part of it. When I tried to TDD existing PHP code, it was pretty awful and I hated testing.

At the same time, I think when you design away as much complexity as possible at the product requirements level, as 37Signals proudly does with their products, it is hard to appreciate the complexity inherent to the requirements in other codebases.

I've seen this with other developers coming into large codebases with lots of complexity and scale requirements wanting to use a simple/naive ORM solution with no caching or worry about query speed/quantity. That solution falls over and they quickly learn that the requirements are more complex than a simple app with a few dozen users.

Basecamp is obviously at a high level of traffic and scaling complexity, but they still work to reduce requirement complexity which isn't always an option if you aren't the product owner.

comment 12y ago · link · parent

What DHH describes is called the test pyramid (http://martinfowler.com/bliki/TestPyramid.html), which despite the fact that DHH seems to dislike Uncle Bob, it is something Uncle Bob has demonstrated and advocated multiple times in very sensible ways.

The bigger thing DHH doesn't mention or explain is that Basecamp is designed to be intentionally simple. Much of the complexity that you get in client work where you don't control the requirements Basecamp is able to simply avoid by not building.

The idea that if you own your own product and control the requirements that you can have a MUCH cleaner codebase without needing as many tests is 100% true. But, David didn't say that and it's a shame. It's a much more powerful point because there are cases where clean architectures are valuable and the standard Rails MVC pattern isn't enough. At the same time, there are plenty of times where the basics will get you a very long ways. If you control the complexity, simple MVC might be all you ever need.

Everything in software development involves managing requirements and tradeoffs. If you simplify requirements, you reduce complexity. You reduce complexity, you reduce surface area required to test.

It's like weight reduction in cars, you reduce overall weight a few pounds, you can also reduce an extra 5-10 lbs. in required components to support the added weight/complexity.

I just wish that people could discuss these ideas with nuance and empathy towards other project's requirements. Some projects require a lot of tests and have significant inherent complexity, some don't. A one size fits all philosophy might sound appealing, but it doesn't work.

Don't throw the TDD baby out with the bathwater.

comment 12y ago · link · parent

You should read about it just so that you can read the acronym OMG over and over again. It makes all the UML related documentation hilarious. It's OMG this and OMG that.

For example, check out this 100% legit Wikipedia reference:

OMG (2011). OMG Unified Modeling Language (OMG UML), Superstructure, V2.4.1, p. 507.

OMG is short for Object Management Group, but the acronym has obviously not aged well, so what we are left with is a really funny, but totally unintentional joke. Like, check out these certificiations:

OCEB - OMG Certified Expert in Business Process Management (BPM)

OCUP - OMG Certified UML Professional

OCSMP - OMG Certified Systems Modeling Professional

OCRES - OMG Certified Real-time and Embedded Systems Specialist

Who wouldn't want to be OMG Certified?

comment 12y ago · link · parent

Charge more.

Your most expensive plan is for a team of 40-100 people. For the sake of simplicity, you are talking about a team that is costing a company a minimum of say $1,200,000 a year (assuming $15/hr FTE's) and you are asking them to pay you $300 a year for a tool they are supposed to use throughout the day.

Why have you built such a low value tool?

Take your prices and multiply by 10 and you are probably at a more correct pricing strategy if you are selling to businesses.

611.

OkCupid's CEO Donated to an Anti-Gay Campaign Once, Too(m.motherjones.com ↗)

20 points · by programminggeek · 12y ago · 19 comments

comment 12y ago · link · parent

I really don't think the block chain is the next platform or even that interesting. What exactly am I missing?

comment 12y ago · link · parent

If a company is going to get these vehicles to be market viable, it is Walmart. They are ruthless in terms of cost cutting and they would be the first to cut out "tech for tech sake" if it doesn't give them a ROI.

comment 12y ago · link · parent

Wow, they didn't even mention the WWE Network, which is the closest thing we have to a proper cable network disruption as I've seen. However, let's not forget the cable/telco oligopolies still own the last mile and they won't go down without a fight.

comment 12y ago · link · parent

Between the way our industry has handled this latest thing with Mozilla and the way that related issues like gender inequality is handled at various conferences, I am finding myself less and less wanting to be involved with the community at large. It feels more and more like if you disagree with what a very vocal minority believes, you are going to be ostracized to the point that you could lose your job.

I have a family to take care of so losing my job would be a pretty big deal. I don't doubt that many of the other people that get caught up in these incidents are in a similar situation.

So, every time I consider speaking my mind publicly or even being involved in a public tech conference as an attendee, I think twice and am starting to just avoid them altogether.

It's sort of a shame because even local conferences are getting besieged by self-righteous people who are hell bent on righting some unintentional "mistake" by the people who work very hard to put them on in the first place. I find what our industry's community is starting to be something I don't much want to be associated with.

comment 12y ago · link · parent

"We have employees with a wide diversity of views. Our culture of openness extends to encouraging staff and community to share their beliefs and opinions in public. This is meant to distinguish Mozilla from most organizations and hold us to a higher standard. But this time we failed to listen, to engage, and to be guided by our community."

The irony is when Brendan Eich shared his belief in public, he was forced out of his job. Yay openness. It's really awesome until someone says or believes in something you don't agree with. Then, get the pitchforks.

comment 12y ago · link · parent

Why not just use IntelliJ?

comment 12y ago · link · parent

This is pretty much what Google TV should have been all along, but Google cares too much about web search and not enough about what people actually want to do on a TV - watch shows and play games.

The gaming aspect of this will make it a winner. OUYA's big problem is that it didn't do streaming and was a bit clunky. Amazon has a big game library and just needs controller support.

As a parent, a $100 streaming box and game console that has cheap/free games is very appealing.

As a developer, the economics of game development for such a console is not so great, but maybe IAP would make it worthwhile.

comment 12y ago · link · parent

I think people assume you need 100% coverage at every level of the testing pyramid and so you have redundant tests. Also, with Ruby in particular, the interfaces between objects and methods are so weak that you have no guarantee that things will fit together and behave properly.

For example, in Ruby you can have a method with 2 parameters of X and Y. Maybe X should be a string and maybe Y should be a float. You can unit test the method to make sure it does the right things, but as soon as something else calls that method there is no guarantee they will call it correctly or pass in the right type of arguments. Thus, there are tons of potential integration problems all over ruby code.

I think this lack of strong interfaces has trained ruby developers not to trust unit tests and so they go down the path of integration and end to end testing. Due to the weaker type and interface guarantees of the language, you will write more tests to get the same level of confidence in your code. By compensating for this language weakness, you are falling into "The Cucumber Test Trap" or more generically you aren't following the testing pyramid sensibly.

comment 12y ago · link · parent

Sorry, perhaps I wasn't clear enough. On an ActiveRecord model you will have attributes that are simple values in a table and you can have methods on an object that do stuff. They might both be methods, but the difference between getting a simple attribute and doing a calculation can be incredibly huge once you have models related to other models and calculations that span between them.

In my experience ActiveRecord doesn't handle that particularly well and programmers don't readily know/see the difference because they all look the same, especially in a view.

comment 12y ago · link · parent

I actually like class methods for one particular benefit - namespacing. Actually, in Ruby, I use modules for that, but same difference in Ruby right...?

Functionally though, there isn't much difference between Module.do_stuff() and module_do_stuff() and if you are writing functional code, there isn't much reason to care either way too much. Most Ruby I see though isn't terribly functional.

comment 12y ago · link · parent

Perhaps, but the simple habit of Model.foo() (for methods) and Model.bar for data would make it easier to spot when one is an attribute and one is a method.

comment 12y ago · link · parent

One of the biggest problems in ruby is that there is often no clear difference in code between a method and a variable. This leads to some seriously bad code by developers for the sake of elegance.

For example, you can have a Model.foo method that seems harmless enough, except that actually calls other methods on other models to do some calculation that maybe two or three layers deep makes a call to an external service. Let's say for the sake of example that two or three levels of database queries and api service calls ends up spawning hundreds of queries and at least dozens of external api calls. This takes anywhere from 10 to 30 seconds if the dataset is large enough.

A junior programmer would think he is doing the right thing by simply calling Model.foo because he might be so foolish to not know the difference between Model.foo and Model.foo(). Since Rails by default doesn't annotate database model attributes, it's even easier to think that Model.foo Model.bar Model.whatever are just attributes so there would be no performance penalty for using them.

As it turns out, this makes your code terribly slow even though it looks "elegant" and "clean". Why? Because it is super non-obvious to many/most programmers that there is a potentially huge difference between a simple attribute on a model vs. a calculated attribute method derived from potentially a multitude of other data sources. When you are calling Model.foo and Model.bar, it is completely unclear that one might be a method and one might be an attribute.

I've seen this happen many times to both really good and really average Ruby programmers. At this point it is a genuine flaw in Ruby that is compounded by the way I see people using ActiveRecord and Rails.

comment 12y ago · link · parent

Well, you can think that averages are meaningless, but they do mean something. If your average sale is $10 and you are spending on average $9 to acquire them, you have a 10% margin on average.

Segmenting is great and can actually move the averages wildly, but that doesn't mean the averages are pointless. It means that averages are just one view of the data.

If I want a really high level view of the data, an average is great. If I want a super low level view of the data, looking at each customer or small groups of customers is great too. It depends on what you want to know and what problem you are trying to solve.

Use the right tool for the job.

comment 12y ago · link · parent

Not surprising. If you had the billions that Microsoft does, you'd invest in patents too. At this point it's the software equivalent of buying out the supply chain like Apple famously does with hardware components.

comment 12y ago · link · parent

You want better programming? Get better requirements and less complexity. Programming languages and IDE's are part of the problem, but a lot of the problems come from the actual program requirements.

In many cases, it's the edge cases and feature creep that makes software genuinely terrible and by the time you layer in all that knowledge, it is a mess.

I don't care if you use VIM, EMACS, Visual Studio, or even some fancy graphical programming system. Complexity is complexity and managing and implementing that complexity is a complex thing.

Until we have tools to better manage complexity, we will have messes and the best tool to manage complexity are communication related, not software related.

comment 12y ago · link · parent

Well, I don't think it's a completely binary money or UX type decision, but I do know that working at a larger scale of users shifts your priorities significantly.

For example, I worked on a website that would sometimes process as much as a million dollars in donations in a single day for a nonprofit. If the site went down for even a half hour, that could be tens of thousands of dollars in missed donations. That is like someone not getting paid for almost a year.

We had a cool autocomplete feature that went out and due to a bug that made it past QA caused a on of DB queries and took down the server. It was maybe a better user experience, but the way it was implemented would cost too much in reliability for it to be worth it. The team reengineered the concept until it worked at scale.

A lot of hackers I know who aren't working on that scale don't worry about QA or bugs so much because hardly anybody is using their software and it's not mission critical. When you have millions of people touching your software and it is processing millions of dollars in transactions, the metrics that matter are different.

I am sure Facebook cares about UX, but they are a publicly traded company and if a slightly better UX delivers a significantly worse ad revenue number, that isn't just sort of bad for investors, it's bad for the employees job security (and stock value), it's bad for the advertisers who can't get the same ROI on their ad spend, and ultimately it's a little bit bad for the end users because if "good UX" doesn't make money, then over the long haul, Facebook will learn to not invest in "good UX".

I think the scale that Facebook's engineers are working at is a lot bigger than most of us can easily appreciate.

comment 12y ago · link · parent

I'll give another way to look at it. Good design is by no means the same as optimal design. A lot of beautiful designs done by talented designers end up being worse than what was before. They might be prettier, but they are very likely worse by many conversion metrics.

Don't think of it in terms of pure design. Think of it in terms of cost. Everything has a cost and sometimes good design's real cost is in user behavior. Pageviews and time on site could go down because people aren't going through so many steps to get to what they want. There are a lot of metrics that aren't that useful without the context of the ultimate conversion numbers for your site/app/product/project.

Facebook and Google are advertising companies. The financial metric they care about is advertising revenue per user and number of users. It's not much different than a SAAS app in that way. Other metrics are important, but that is the metric that pays the bills.

A beautiful design that doesn't improve the core metrics is like a multi million dollar super bowl commercial that flops. Sure, it might be really cool and well produced, but if it doesn't sell your product, you might as well light that money on fire. The net effect is the same.

comment 12y ago · link · parent

Nothing should ever be announced or "effective" April 1.

comment 12y ago · link · parent

It's not just you. It happens. It really comes down to your expectations from your job. If you over identify with a job and it lets you down, it's like a bad breakup.

Every business wants you to be fully committed and giving 110%, but most businesses aren't as committed to you as they expect you to be towards them.

At some point you need to find a kind of detachment to your job that allows you to do good work and go home and forget about work, or you need to keep moving on to different things until you land in the right spot.

It's tough because society still sort of makes you feel like switching jobs every few years is a bad thing, but that is just the way it is now. Companies tend not to invest as much in their people and so people aren't investing as much in their companies.

In many ways, it's more capitalistic to be taking advantage of opportunities when they come your way than it is to just sit at one company and "put your time in".

1
202122
54