Better HN
topnewbestaskshowjobs
Log inSign up

SomeCallMeTim

4,107 karma · joined Feb 17, 2010 (16y ago) · 1,490 submissions

I'm a consulting software architect and freelance CTO. I come in and rescue small businesses from code disasters, and occasionally am given the chance to prevent the disasters to begin with. I also used to develop video games, and have pivoted that skill to gamification consulting.

https://coderescue.com

Submissions

comment 12y ago · link · parent

Thanks for the links!

My current code is pretty trivial; dropping in a pair of standard shaders and tweaking the code would probably be sufficient.

WebGL is interesting, but it only just got support in IE11 [1]. My only current project with a web requirement would need to support older browsers, including older mobile browsers, and Safari and Android browsers also lack support.

But it doesn't hurt to prepare for the future. :)

[1] http://caniuse.com/#feat=webgl

comment 12y ago · link · parent

You can be surprised if you like. But it was novel enough to prevent my game from ever being pirated. [1]

>If only because they just have to find its code and nop it out.

If they changed a single byte in the executable, then none of the encrypted data files (i.e., the actual game) would load. I used a cryptographic key generated from the signature of the binary.

More than one byte would need to be changed. :)

I know I just raised the bar, but due to that feature and the additional obfuscation and misdirection I added, no one ever cracked it. I'm sure that the bar has been raised higher on commercial PC apps (self modifying anti-debugger code comes to mind), but what I did was at least novel on Android.

My technique was dead in the water on iOS, unfortunately; Apple mucks with the binary (encrypts it?) in the production version. But no one pirates on iOS anyway, right? ;)

[1] Successfully, I should say. Pirates thought they'd hacked the game and uploaded it all over the various pirate web sites multiple times. Thing is that the game always detected that it had been pirated, and as a result it downgraded to the "free demo" behavior, so people downloaded the same app they could have gotten for free from the store.

comment 12y ago · link · parent

>I use AngelScript

Have you seen the LuaJIT FFI by the way? Very similar to what AngelScript offers. But it's also JIT-compiled by the best dynamic JIT compiler in existence. :)

comment 12y ago · link · parent

I'm happy to see people do innovative things with programming languages.

But there are a lot of people doing that right now. I didn't get a vibe from this one that it could do anything interesting that you can't already do in either LuaJIT or Julia. Other innovative languages I've been tracking include Go, D, Nimrod and Dart.

The world is improved by innovations; it's not improved by script language proliferation, or "me too!" projects. Lua in particular is a very well documented language, and is the de facto standard in video game development. I think the bar has to be pretty high to justify creating a new language.

Yes it would be more fun than figuring out how to get 3d matrices to work and be fast in LuaJIT, if you don't already know how the FFI works. But there's a LOT of value in using LuaJIT, and unless you're bringing something else of value to the table, no, I don't think it's worthwhile backing Yet Another Language.

I know of at least a half dozen other engine-specific scripting languages, and I would wager NONE of them are as robust as Lua, as well known as Lua, as well defined as Lua, or even as well designed as Lua. The value of having a shared language does outweigh every new programmer's desire to write their own language.

comment 12y ago · link · parent

I think diets are just a poor metaphor here.

A big part of the lack of success of most diets is that the diets themselves change your emotional state. Not to mention that most actually encourage less healthy eating habits.

The American Heart Association for years recommended a low fat diet for heart health, when the studies they were using to justify this decision showed a higher overall mortality for people on low fat diets; they just died of fewer heart-related problems. (If I'm remembering correctly, there were a LOT more suicides in the low-fat group.)

The people who say "just eat less and exercise more!" are also completely full of it. It simply doesn't always work -- handled wrong it can lead to really bad emotional states brought on by the lack of food. Like the above example, you could end up with a lot more suicides, which are pretty bad for your health, no matter how you slice it. Presumably most people who make this claim are not fat or have never tried it, but it's frustrating to see it repeated over and over by people who exercise less than and eat more than a lot of "fat" people.

On the other hand, maybe the metaphor does work: We're recommending or enforcing practices when we really have no clue as to their efficacy. We don't always know what is healthy and what is unhealthy; we have guesses, but then we latch onto them like religion.

comment 12y ago · link · parent

>Most of your graphics primitives should already be targeting OpenGL ES 2.

My engine had a chance to rot for a while; I'll be upgrading to GLES2 as soon as I'm developing on it again. (Pesky clients paying me to do other work has been slowing down development on my game and engine.)

That is one of my hesitations about Proton; they're still on GLES1.

>This would enable your engine to target HTML5 robustly with Emscripten via lua and sdl.

Not a bad thought. Hmm. Not a bad thought at all. In fact, part of the game I've been trying to work on involves an HTML component, and I've been planning to do it in JavaScript, but if I could do it in my own engine...wow. Thanks for rebooting my brain there. :)

>Is your engine open source?

Not yet. There are a (very few) parts that I don't want to publish, for reasons from "they're broken and I want to fix them first" to "this class prevents pirates from copying games in a novel way, and publishing it would just make it easier for them to pirate my games."

comment 12y ago · link · parent

Thanks for the Allegro thoughts; I'll just drop that one off my list. It was close to the edge anyway, since it seems to have only recent (beta-quality, untested) Android support.

I'm using Dub for my C++/Lua bindings, which provides exceptional C++ interop. Dub also is easily modified, and with my modifications I can have C++ objects referenced by smart pointers that are wrapped in Lua objects, and those objects can have additional Lua "tags" added to them that persist for the lifespan of the C++ object (even if all Lua instances of the object are collected).

You just can't beat LuaJIT for speed; speed isn't that important for scripting on desktops, but can be relevant on mobile. And it's hard to beat Lua syntax to enable non-programmer scripting options.

comment 12y ago · link · parent

>I may be a bit bias because while I consider myself a hacker I didn't have the net before I was 18 at home.

I'm a hacker and "the net" didn't exist before I was 18.

My learning came from the books I bought, and the magazines I subscribed to. Somehow, without IRC or Google to help, I taught myself to program a computer, and wrote an entire game in assembly language (reinventing the concept of linking object files in the process) which I then sold. While I was in high school. I also designed and built an expansion board for my computer with only the IC technical manuals.

By college I was doing real video game consulting work.

I had one awesome friend who was also a good programmer, and we lived and breathed programming together. But beyond that, I was on my own.

It can happen without unfettered Internet access at 9 years old.

comment 12y ago · link · parent

I get frustrated with people who think they can and should rewrite the scripting language.

>I'm more interested in how those layers could be used with my own engine than theirs itself.

You and me both. Also looking at Proton [1] and Allegro [2] for similar reasons. And just came across a Blackberry-backed engine [3] which looks interesting (and also Lua-driven).

I actually have my OWN game engine (based on LuaJIT, thank you ;) that already targets Windows, Android, and iOS, but I'd like to rip out the platform layer and replace it with something that someone else is maintaining. I mean, it works now, but leveraging open source and other developers' efforts would be much better.

I've considered just using SDL 2.0 and calling it good, but I'm tempted to pick up some of the higher-level functionality some of these other engines offer.

None offer all the features I want, unfortunately. One of the big features they mostly miss is really good script/C++ cross-functionality. Aside from that, there are typically one or two other things that make me want to avoid them.

[1] http://www.rtsoft.com/wiki/doku.php?id=proton

[2] http://alleg.sourceforge.net/

[3] http://www.gameplay3d.org/

comment 12y ago · link · parent

No black box? Ability to actually debug problems and change the source when you need? Lack of licensing fees (to support all platforms)?

comment 12y ago · link · parent

I believe you that those people exist. And I don't believe they should just starve to death. I'm equally unsure of how to help them aside from charity, given the current political climate.

I would like to help them, but honestly charity is probably the least helpful of the options (if the only one available); I'm sure that no one likes to accept charity.

I believe that everyone wants to feel useful, meaning that accepting charity actually hurts their self esteem. Which is better than starving, of course. But it seems like there should be a better way.

>I would not want to live in a world that treats "under-performing" (implication: "performing" is our raison d'être) people as second-rate citizens.

Agreed, with the caveat that some jobs still need to have a minimum performance level.

We've been talking about driving people around, where the performance level is "only" critical to the survival of the company. But if you take the "ignore under-performance" concept to its logical conclusion, then you couldn't fire surgeons who kill all their patients.

Yes, that's a far more extreme example, but the point is some jobs really require that you are able to do them well. You can't ignore job performance for social ends, or you will end up harming society. There are many reasons that Communism failed: One is that people who know they can't be fired don't have as much motivation to perform well. An even better motivation to perform well would be to own the business you are working for (just look at the differences between neighborhoods that are primarily owned versus primarily rentals to see a very real example of this). But we can't flip the ownership equation overnight, and in the mean time we don't want incompetent surgeons killing people.

What you can do is create jobs where being a top performer isn't critical. And ensure those jobs pay a living wage -- even at 30 hours per week, ideally. A 30-hour work week might be the right answer, regardless. [1] It worked for Kellogg until the 80s, after all.

[1] http://www.alternet.org/labor/when-america-came-close-establ...

comment 12y ago · link · parent

Profit wasn't really my point. I said a lot more here:

https://news.ycombinator.com/item?id=7200553

comment 12y ago · link · parent

>What's even more unsettling than the fact that many companies have this attitude towards their employees, is the degree to which members of HN unquestioningly defend this practice whenever the subject comes up.

I didn't communicate my point well.

My point wasn't that "it's OK to treat people like crap because: PROFIT!!" I'm the last person to claim that profit justifies everything.

My point was: If Uber doesn't impose serious quality control on its drivers, then even the best drivers will fail to make a living wage, because the perceived value of the Uber service (by customers) will drop with every bad experience.

Uber is creating a market for its service by being better than a taxi. Better in all ways. It takes serious differentiation to convince people to change their current habits.

>Otherwise, there needs to be a certain degree of compromise.

If you're talking about non-customer-facing jobs, or even basic retail jobs where the expectations aren't high, then absolutely.

If you're a giant corporation and someone has been working with you for years and they go through a bad spot, then sure.

If you're trying to create a "new kind of taxi" and part of your business plan is that everyone has a superb experience, then you have no choice but to fire people who can't live up to your goal.

The ex-CEO had a rating of 4.3 (the cutoff mentioned in the article was 4.5), but they didn't "immediately fire him;" he had a chance to bring his rating up, and he did. It sounds like there's some compromise already built into the system. Not to mention the minimum 40 ratings before they require a 4.5.

At the end of the day, it's a business with specific goals. Some businesses can employ people who only rate a 3.0 and still meet their goals; some can't.

>you go through a really messy breakup and perform at 50% capacity for six months.

Two months in my case (happened once; was going to leave the job in 2-3 months regardless, but it's the only job I've ever had that they weren't begging me to stay). But you are right that, with my awesome specialized software skill-set, I was able to pick up a new job in just a couple months, and at this point I can practically write my own ticket.

If your hypothetical break-up survivor is pissing off customers, though, Uber has no choice but to fire him or her if they want to meet their goals. How else are they going to keep the fleet-wide ratings at or above 4.5 stars, which is likely their goal?

Honestly I do wonder where people in, say, the bottom percentile of job or interpersonal skills (or both) can get work. I'd fully support a "living wage for everyone" concept, at least if it can be shown to work at some scale, to sidestep this problem. Or a government "works" program that guaranteed a job to everyone who wanted one (in conjunction with a disability system, of course, that could provide support to people who didn't have the mobility or brain function to perform even menial labor).

But how the system works when it's working well (i.e., prior to the 1970s [1]) is that there are more jobs than employees, and so the jobs have to make due with who they can find, and/or the jobs have to be attractive enough to get the applicants. It's how the programming market is right now: I know that most developers have really basic skills compared to mine (probably only 1 in 20 professional developers that I encounter are even in the same ballpark), but even the least productive developers get great salaries and benefits.

And how the system needs to change is that workers need to own the companies they work for. Then their personal motivations line up with that of the company, and employee/owners who have a bad breakup maybe spend six months collecting a lower salary and working part time until they get back on their feet. Or maybe because of their closer support network (employees who own a piece of the action probably will stick around longer -- and care more about their coworkers) they don't take six months to get over a break-up.

I agree that things need to be fixed. I don't agree that a company should be required (morally or otherwise) to shoot itself in the foot to achieve social justice.

[1] A long watch, but totally worth it if these questions are of interest to you: https://www.youtube.com/watch?v=_-KqeU8nzn4

comment 12y ago · link · parent

That was really my point, though you said it more eloquently: If Uber does less well (because of image problems), then it will provide a living for fewer people in the end.

It's great to be loyal to employees, if you can. If you put your loyalty to your employees above the quality of the product you're providing, you may find you have no ability to pay any of your employees. Or in the case of Uber, that people stop hiring drivers.

comment 12y ago · link · parent

I don't see that at all. It's not that humans are replaceable as much as the fact that each driver's performance (and corresponding rating) is crucial to their continued employment.

I have no problem with that at all given the fact that Uber's image and product both rely on having good customer experiences.

If Uber were more concerned with providing a living to its employees, then they likely wouldn't last very long as a profitable business. $21/hour is a fair wage (a living wage in most locations, in fact), and that's all they really need to provide to be good corporate citizens.

Not to mention the "people are interchangeable" concept actually dates back to at least the Industrial Revolution, and is not only not limited to startups, but is probably less prevalent in startups than in manufacturing or corporate jobs in general. So I'm not sure what you're complaining about.

comment 12y ago · link · parent

I thought of that, and to some degree, yes.

But they are always shooting down anyone who dares to use their data and present it in a more useful manner.

In particular they're totally screwing up some areas and ignoring complaints.

The Denver/Boulder area of Colorado has multiple overlapping sites that cover an area smaller than that of the Bay Area, which has one all-encompassing site. The result is that it's really hard to figure out where to look for listings -- or where to post listings.

What we need is combined area site like the Bay Area has, that lets you restrict to certain sub-regions for some searches (apartments, say) and broader regions for others (antiques?).

comment 12y ago · link · parent

Umm....I think Denver would resent being referred to as a "rural area." And Boulder. And Colorado Springs.

Ignoring the "rural" aspect of what you're saying, the same can be said of Vegas. And most of Arizona. Not to mention, ahem, SOUTHERN CALIFORNIA. You suggesting that the 20M+ people in SoCal should pick up and leave because there isn't enough water? Because there isn't, except if you count the water imported from COLORADO.

Colorado actually has PLENTY of water; it's just that legally we're bound to give it to others.

Aside from which point, infrastructure costs money. "Pick up and move elsewhere" isn't reasonable if "elsewhere" doesn't have the infrastructure for millions of people.

Did you actually read the comment thread before replying?

comment 12y ago · link · parent

All of these aquifers are finite. There may come a time when every one in Colorado is drained -- if there are any at all.

comment 12y ago · link · parent

I had heard that, but I didn't find the reference quickly, and I had to post. Didn't want to make unsubstantiated claims. Thanks for the follow-up. :)

As a result we've been in violation with a treaty with Mexico over the lack of promised water volume over most of that time as well. Again, too busy to find the link.

comment 12y ago · link · parent

They redirect water from Northern to Southern California. Why not from rural Wyoming to, say, Colorado? We may have 5M people here, and are chronically short of water.

The water from Colorado (via the Colorado River) also supplies Utah, Arizona, Southern California, Nevada, and Mexico with water. All of those areas need more water; even if Colorado stays at its current demand level, you could imagine one or more of those areas funding a well in Wyoming to divert water to Colorado to either send directly down the river or to take the place of water that would otherwise be removed from the river, so that their allocation could be correspondingly increased. (Pretty much every drop of the Colorado River is owned by someone. [1])

Water is life. :)

[1] https://en.wikipedia.org/wiki/Colorado_River

comment 12y ago · link · parent

If you look north of Flagstaff in Arizona, there aren't many places to stop. They need infrastructure to place one of these stations, and they're promising that each stop will have restaurants (and hotels?) nearby.

My first thought was local politics (offers of free land in places trying to attract tourists come to mind), but I'm now leaning toward the fact that they just routed around completely barren areas where they couldn't get the station spacing correct.

comment 12y ago · link · parent

I'm blocked from using GPL software the way I want; in that way I'm not free to use GPL software how I want. That is a "freedom," regardless of how you're trying to define the word. FSF is trying to grant one freedom by taking away another, period. Yes, it's my "freedom" to restrict how others copy my resulting software, but it's still a freedom. To claim otherwise is pedantic at best.

>If you can not make software without threatening your users, don't try to start by taking GPL software.

Umm...other than using it as it's designed and permitted (e.g., gcc), I don't. Any code libraries that are GPL (or even LGPL, except under specific circumstances) are dead to me. I'm annoyed when my time is wasted coming across one on a search. I would even bail on GCC for the superior Clang but I have one package (of many) that needs GCC to build in my current project for a client.

Almost all GPL code is likely to lose support compared to any BSD/MIT competition in the long term (except possibly for those packages used in server development, since they can be used commercially without being distributed, circumventing the intent of the GPL). Most non-server developers do their best to avoid linking to GPLed software because they're working on proprietary software.

RMS alludes to this in the article: "The existence of LLVM is a terrible setback for our community..." The superior network effects of BSD/MIT-licensed libraries means that those libraries will get more developers, who will fix more bugs and more features, which will then attract more developers, etc. (Not to mention the fact that LLVM is just more awesome than GCC).

As a developer I hate to have to rewrite code. Yet I'm forced to if the only code available is GPL; I can't change my business goals or those of my clients for the sake of a goal that's never going to be achieved. Asking me to is naive. The financial reality is that (most of the time) to make money writing software, you need to sell it (and therefore restrict the rights of those you sell it to).

The first 80% of a project is the most fun and satisfying; most open source projects rarely make it beyond that first 80% (if they make it that far) [1]. Companies that make money writing software will pay developers to complete the libraries they're using. As those BSD/MIT libraries get better, the GPLed competition will fall behind.

[1] Notable exceptions include the abovementioned server software category, where commercial/proprietary developers can use (and therefore will likely contribute to) GPLed code, and projects that have enough income to support full-time commercial development.

comment 12y ago · link · parent

Yes. So? Your point is?

I called it out as the only thing I do use.

And I may transition to Clang from gcc if a build problem I encountered with an older Clang version is fixed. That leaves gnu make.

And make sucks for many, many reasons, but that's not Gnu's fault. It's just that all the other building solutions suck more.

comment 12y ago · link · parent

>The GPL isn't restricting your freedom, your employer is.

I'm freelance. I write games and apps, and I do contract work. I can't use GPL software (except for GCC, which I already noted) in creating any of the products that I create because I need to make money.

Not everyone can make a Free product so popular that they can make money being paid to maintain it. I think there are probably fewer than twenty examples of such products that are actually monetarily successful for their creators, and I've read multiple stories of developers who had crazy-popular free products and who were unable to make ends meet.

Not sure how you expect "my employer" to make money giving products away for free either.

It's not "my employer" but the market realities that restrict my freedom with respect to GPL. I can't even publish an iOS app with GPL code; blame Apple all you want, but iOS and Android are gold mines of contract opportunities. You're telling me I should stand on some feel-good principle and ignore the $125-150/hour contract offers that keep pouring in and instead take a job making free software for 1/3 that amount? If I can even find such a position?

Sorry, I'm taking the money. You can make the sacrifice if you want.

>Microsoft will charge you for the privilege of using their inferior compiler

Express editions have been free for years. And that includes the entire VS suite as well as command line compilers.

>"Oh boy! B is giving me more stuff for free than A was, I'm going to go shit on A and make demands!"

Umm...hello? That's entirely unlike what I said.

What I said was: Lots of Free stuff sucks enough I'm willing to pay for closed alternatives. That's two kinds of payment: Paying with dollars, and paying with the restrictions in my freedom. And I'm saying the transaction is worth it. I'm not making any demands. I am saying that a lot of free software sucks compared to the alternatives, but that's just the truth.

In the case of Clang, it's awesome to me that it's BSD-free. If I need it in a piece of software, I can use it without question. Might it end up in a proprietary package? Yes. But if that user makes changes they'll likely send them back upstream so that other users of Clang will benefit.

comment 12y ago · link · parent

Exactly! Especially for programming tools like GCC or Clang, the end user is by definition a developer.

comment 12y ago · link · parent

I have to agree.

I love free; what doesn't feel "free" to me is the GPL, since I can't use just about anything GPL in my job.

My job involves creating non-free software. Given the GPL's goals, it's not a surprise at all that I can't use it.

But it strikes me as ironic that RMS talks about "freedom" when really he's advocating restricting your freedom to use the software.

I understand it's in pursuance of a "greater goal" of Freedom to modify everything, but the problem is that, in the large, free software sucks, and I don't really want to be responsible for making it good.

Sure you can come up with a dozen really great free software packages (I'm using Firefox to post here, for one, and I make builds using gcc daily and gnu make). But I can come up with a thousand that suck -- and that includes the "best" packages in a number of different categories: Image editing, document editing, development environments (Eclipse has some nice bells and whistles, but that doesn't make it not suck), 3d editing... ALMOST everything with a GUI, browsers being a huge exception. [1]

Those are just the categories I've tried and tried again to make Free software work for me, because I am attracted to the ideal of working with Free software. But every time, the paid/proprietary solution has been so much better than the free solution that I've defected and paid for the proprietary version.

No, I'm not going to use free software to support an ideal. I'm going to pay for software that helps me get my work done faster and better. Because at the end of the day, I appreciate good tools, not ideals.

There may come a day when I try to make my own "free" software project, but if I do, it will be because I really want to make a world class tool in that category, and I feel that the free model is the best for that tool. But I will continue to choose my tools based on what they allow me to do, not their source code license, and the proprietary tools I do use offer me more advantages despite being closed source than their open source equivalents.

[1] Don't bother posting arguments about this or that free software package in these categories. Unless it's brand new and awesome, in which case I might like to try it out. Regardless, one example doesn't change my overall point, and I don't want the thread to devolve into "Gimp is great!" "No it sucks!" -- "Good enough" for one person is not always going to be good enough for another.

comment 12y ago · link · parent

You're also not writing real-time apps or scripting games.

There are a lot of reasons to want speed in a dynamic language.

comment 12y ago · link · parent

> "The kettle had caused the trip. It was no longer safe to use the kettle"

If the kettle still works, then problem solved.

If the ($10) kettle is broken, then I'm going to say that it's entirely possible to consider that quality of components, design, and build may account for the difference between a $10 and a $40 kettle.

I often end up spending more on something if I have reasonable evidence it will last longer and/or perform better. And I don't write long articles about how I resent spending the "extra" money.

comment 12y ago · link · parent

Thanks for the link! I'll take a look.

I actually extremely rarely need full reg-ex support. Almost never, really. What WOULD be awesome is limited pattern support, at the level of Lua patterns[1], especially if they were UTF-8 character aware.

[1] http://www.lua.org/manual/5.1/manual.html#5.4.1 -- Lua patterns are NOT regular expressions, even though they look similar; there's no "expression" possible, just character class repeats.

1
313233
50