Better HN
topnewbestaskshowjobs
Log inSign up

dools

6,893 karma · joined Oct 11, 2010 (16y ago) · 2,794 submissions

I run BenkoPhone which was once the only business mobile number in an app that supports picture messages outside of North America:

https://www.benkophone.com/

Currently building:

https://www.benko.app/

team@benko.app

Submissions

comment 15y ago · link · parent

"That's pretty limited though. A <ctl:TextBox> might be one-to-one to an HTML <input type="textbox"> but it's extremely useful for "not repeating yourself" to have controls that are much more complicated than that. For example, my Datebox control has an automatic JavaScript popup calendar. I could write code to do that over and over and over in every template but that's a huge waste of time and effort."

The thing is that, with JavaScript libraries as they are these days, "the code to create a calendar popup" is basically already a library.

Also, the person who's going to be creating that interface needs the freedom to be able to decide how they want to solve that problem, for that interface. Having a library of ways you've done it in the past allows you to re-use solutions.

If you find that you have a common chunk of code that you use everywhere on one particular project, put it in an include - but creating "widgets" like this, in my experience, always leads to problems when working with more than one person on a project.

comment 15y ago · link · parent

I'll go you one better! I figured I may as well chuck this on github now - I've been stalling for weeks until I got the time to update it to use PDO/parametrized queries by default but I've just put a large warning at the top of the README that it's pre-release:

https://github.com/iaindooley/Anorm

The ORM for SQL lovers!

That's only half the story: I've done the "query reader". Hopefully we can all come up with the ultimate "query builder" together - but the basic principle is that the query reader and query builder should be kept completely separate with SQL as their interface.

I also need to come up with a neat way using closures to "mix-in" functionality to the "query row" objects (that take the place of the normal "boiler plate" DbObject type classes (usually "one per table" kind of deal).

What do y'all reckon? Email iain@workingsoftware.com.au or fork the project - would love to hear everyone's opinions.

comment 15y ago · link · parent

"...is an abstraction"

That's the type of abstraction that I'm specifically opposing here.

Each node in my template should correlate to one node in the resulting markup.

In other words, my "HTML template guy" should be able to construct the interface in it's entirety, with my "developer guy" adding in the functionality.

The "HTML Template guy" should not need to know what type of markup he's allowed to use in order to allow the developer guy to deploy his templates with ctl:DateBox.

comment 15y ago · link · parent

"handle setting the attributes and ensuring the form values persist between requests"

To me this falls under the category of "automation of repetitive tasks" - so long as I'm still fundamentally working with markup in my templates, a bit of automation never goes astray!

comment 15y ago · link · parent

Right, yeah that's pretty nice!

comment 15y ago · link · parent

Wait'll you see the project I'm about to open source ;)

comment 15y ago · link · parent

Yeah most ORMs have a "custom SQL" option - what I mean is this (example in some non-existant language):

  function something(db_obj)
    print db_obj.getSql() #shows SQL built so far
    db_obj.having('SOMETHING = SOMETHING ELSE')
    db_obj.fromClause(this.bizarreCaseStatement()
    db_obj.order(this.weirdoOrderClauseThatReferencesCaseStatement());
    return db_obj
When I start working with db_obj, it might come from some other part of the application for which the "basic ORM" was just fine.

Now I want to add some weirdo custom stuff in but I can't - I have to go back to the part of the application that produced db_obj in the first place and refactor that to use custom SQL.

It's one or the other.

comment 15y ago · link · parent

The most important statement in this article is near the beginning, and it's still relevant today:

"I've done small woodworking projects before, and I think I have a pretty good idea of what I need: some wood and a few basic tools: a tape measure, a saw, a level, and a hammer."

The reason I hate frameworks (even things like Django which is very easy to get started with) is that, at some point, I'm asked to re-learn a different way of solving a problem that I've already solved in the past.

I've been doing lots of thinking about this having written the Great American PHP Framework myself, and worked with other people's frameworks, and also worked a lot in the CMS space and the biggest conclusion that I've come to is that the best tools are those that enable you to do things faster or more conveniently but don't actually provide any abstraction.

For example, when deploying a website there are any number of tools to "abstract away" the HTML layer - templating engines, markups, markdowns etc. etc. but the best way to build HTML is using HTML and testing in a web browser, always.

When you need to write some code in whatever web framework you're using to handle a POST request, you want to be as close as possible to the HTTP layer without a bunch of arcane systems in between you and what you and the underlying technology.

Sure it's handy to have tools which automate some repetitive aspects, but if you understand the underlying principles and you know the syntax of the language you're working with, you should at all times be able to just "get it done" however you know how without reading endless documentation and shoehorning your knowledge through a bunch of layers of abstraction.

The same goes for ORM - I want convenience of access to my data, and some automation to handle some of the more boring aspects of writing SQL, but I need to be able to mix and match (yes I know most ORMs allow you to use raw SQL, but it's always one or the other - the ORM or the SQL - I've never used a tool that has a simple method for me to extend the ORM bits halfway through the query building process with some custom SQL).

This is my zeitgeist now and it pervades all the projects I'm working on.

[1] http://www.decalcms.com/

comment 15y ago · link · parent

If only I didn't get motion sickness ;)

2410.

Printable Antenna Can Harvest Ambient Energy(popsci.com ↗)

1 points · by dools · 15y ago · discuss

comment 15y ago · link · parent

The goal of testing is not to never have bugs, but to never have the same bug twice.

comment 15y ago · link · parent

Let's just phrase this analogy explicitly:

x86 assembly language is to an x86 processor as; JavaScript is to ??

So in this case it would be wrong to say that "??" is the JavaScript interpreter, because assembly language is a representation of machine code - it's basically an set of labels attached to binary numbers right?

The x86 processor executes machine code (I think actually some of the "backwards compatibility" in an x86 processor is provided by a scripting-like-language implementation on the chip but that's invisible to the assembly language programmer so not part of this discussion).

So I think you'd have to say that:

JavaScript is to a JavaScript interpreter as; x86 machine code is to an x86 processor

Then:

x86 assembly language is to x86 machine code as; ?? is to JavaScript

Now one could argue that CoffeeScript is the assembly language of JavaScript (I've not used it but it seems to be a roughly 1-to-1 mapping of one set of instructions to another, aliased for aesthetic purposes).

But getting back to the original analogy, I think it would be better stated as:

If you think of a web browser as a kind of computing platform for which we can write applications, then JavaScript is like the machine code that makes it run.

I think that makes sense - and it also makes sense to build higher level languages on top of JavaScript in that case, since increased computing power has always enabled us to get more done with fewer man-hours, why should this be any different?

comment 15y ago · link · parent

I don't actually understand why anyone pays for github when it's so trivial to set up a central git repository on a $10/month VPS and you can have unlimited repositories.

Surely developers aren't that desperate for a nice UI for their git repos?! I assume that there are a bunch of web based repo browsing tools you could install for free if you were that hell bent on looking at your code in a web browser

comment 15y ago · link · parent

Have you checked out the interview with Jerome Breche on Mixergy? Your product sounds a lot like what he started off building (Snap-a-Bug) and then he pivoted to start snapengage.com

It's a great story, you should check out the interview.

comment 15y ago · link · parent

I think that's one of the most important things about MVP - don't bother automating processes until they are actually taking up your time.

As a consultant I see a lot of people put way too much effort into developing bespoke software to automate or "improve" workflows that don't even really exist in their business yet, only to find out that the real bottlenecks exist in places they never even knew (and that they've wasted a bunch of money building something they'll never really use).

It's like a "real life" analogue of the adage "premature optimisation is the devil".

comment 15y ago · link · parent

"U-2 Reconnaissance Aircraft at Osan"

Some sort of airforce RickRoll?

comment 15y ago · link · parent

For cueyoutube - there's no backend! It's just a static page with some JavaScript on it (mostly jQuery but totally hacked together because I can't stand JavaScript :)

I actually copied and pasted most of it from other sources (which I've listed on the page).

The playlists are "saved" by sharing them - each playlist exists only as a URL containing a comma separated list of video IDs.

I've been sharing on Twitter using the #cueyoutube hashtag.

Unfortunately, however, my primary webserver is down due to a drive failure - I'm waiting for the VPS image to copy to a new host now. Bummer :( Should be back up in about an hour with any luck.

There are some suggestions from people over at http://cueyoutube.uservoice.com/

I really want to only work on the site in response to user demand, you know? Like I want to keep it as an MVP always. If people like it, then they will use it and make suggestions and I'll react to that.

I'm really enjoying the "throwaway" nature of the playlists themselves (ie. you don't login, you don't give them a name, you don't "save" them, you just create, share and move on with your life), but also the "throwaway" nature of the project - it's good to have something that's useful but that I'm not so heavily invested in (unlike Decal, which I'm like, totally invested in to the point of insanity).

comment 15y ago · link · parent

Well, I'm obviously pretty biased here because I made it, but I really enjoy using http://cueyoutube.com/

It was a "sunday night" project, and the first thing I've ever done where I thought I did just the right amount of work and no more. It hasn't, like, gone viral or anything but has a few likes and a few people using it - who knows maybe some more will use it.

But it was a great feeling - to really get something useful made, throw it out there and see what happens without investing a whole lot in it.

Another I made earlier this year was http://pickdropapp.com/ which was even less successful than cueyoutube :)

I find that whipping up things like this and just releasing them is a great way of "staying in shape". Releasing software is like a habit and the more you do it, the easier it becomes.

To deviate from my shameless self promotion, I would also like to add that I love the story of TKs http://toutapp.com/ - he's actually turned that into a real product now with thousands of users, but he got a lot of validation from his initial MVP release so that's a real success story. He's written about it quite a bit on his blog.

comment 15y ago · link · parent

The last real science class I took was in high school, too. I don't actually have a problem with the metaphor, I was merely replying to the parent comment who said he was referring to the "speed of light".

The top level comment on this thread was saying he found the metaphor jarring - I don't personally find it jarring.

comment 15y ago · link · parent

"Photosynthesis is a chemical process that converts carbon dioxide into organic compounds, especially sugars, using the energy from sunlight"[1]

If he were using this as a metaphor for the "speed of light" you'd think he'd be referring to the emails going incredibly fast, but what he's actually referring to is his "otherwise spectacular ... assistant" sometimes taking a very long time to respond to emails (because he's busy looking at lulz).

In this case I believe that the author is using "speed of photosynthesis" as a metaphor for being very slow, instead of using the more common simile "like watching grass grow".

I'm not sure if "speed of photosynthesis" is really correct, though - I find it hard to compare "rate of respiration" with "rate of growth" or "rate of email response" but there you go.

He's certainly doesn't mean "speed of light".

[1]http://en.wikipedia.org/wiki/Photosynthesis

comment 15y ago · link · parent

In the meantime if you feel like creating some playlists, check out http://cueyoutube.com :)

comment 15y ago · link · parent

There is much more to social marketing than "going viral". Even if I can have a conversation with 10 people relatively cheaply and easily, that is still of value. Social marketing is a social exercise, it gives you an immediate proximity to your audience. Just because you're not making a video with a million hits on youtube doesn't mean ur doin it rong, or that it's not having a positive effect on your business.

comment 15y ago · link · parent

Jesus that sounds horrible. So now if you default on a loan you not only lose your house but can't get a decent job, and thus cannot afford healthcare.

I don't know how you guys get anything done over there I'd just spend my life ina state of perpetual paranoia.

comment 15y ago · link · parent

I can't believe how much more serious everything seems to be in the States.

Is this story just exaggerated or is it really this bad? I've never personally been fired but having job opportunities being so severely limited due to being fired once seems like an impossibility in Australia.

I'd say that if you got fired over here you'd even quite likely be able to use the employer as a reference (unless you did something totally horrible)

comment 15y ago · link · parent

Andrew Warner will be spewing. I don't think he's ever gotten an admission to someone crying in an interview!

In the Kevin O'Connor interview he even came right out and asked to hear about the times he was crying in the shower! [1]

Call it beginner's luck I guess?

[1] http://mixergy.com/kevin-o%E2%80%99connor-doubleclick-interv...

comment 15y ago · link · parent

If only we could see the fucking points.

comment 15y ago · link · parent

Hey Joel, I remember seeing this post on HN ages ago and tried to find the link recently :) I wanted to show this "api first" approach to someone who was building an XML API for Flash sites. I showed him the Decal API [1] but wanted to give him this as an example a well, thanks for reminding me!

[1] http://www.decalcms.com/page/Decal_API_Quick_Start_Guide

comment 15y ago · link · parent

Yep, we here at Working Software definitely think CMS is broken ;) [1] but mostly because of the deployment system and reliance on "designMode" word-style editing. Basically, we hate "plugins".

[1] http://decalcms.com/mockups/

2429.

Aussie startup RecruitLoop cuts agencies out of the loop(thenextweb.com ↗)

11 points · by dools · 15y ago · discuss

comment 15y ago · link · parent

"that he didn't deserve"

Well, you don't know that. The images of the mp3 players he was selling basically look like a cheap knock off of the iPod shuffle. Apple spends a lot of money on their design and branding and it's their right to protect that investment, wouldn't you say?

This isn't the same as patent trolling.

1
808182
94