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

Lua's ability to bind a closure to a mutable variable is a very powerful ability that I use all the time. But due to the way loop variables are handled, the example that's "broken" in Python works "as expected" in Lua:

  fns = {}
  
  for i=1,10 do
    fns[i]= function() return i; end
  end
  
  for i=1,10 do
    print("fns[i]",fns[i]())
  end
This produces:

  fns[i] 1
  fns[i] 2
  fns[i] 3
  fns[i] 4
  fns[i] 5
  fns[i] 6
  fns[i] 7
  fns[i] 8
  fns[i] 9
  fns[i] 10
If you change the set-up loop to look like this, though:

  local j
  for i=1,10 do
    j=i
    fns[i]= function() return i,j; end
  end
...then it prints:

  fns[i] 1 10
  fns[i] 2 10
  fns[i] 3 10
  fns[i] 4 10
  fns[i] 5 10
  fns[i] 6 10
  fns[i] 7 10
  fns[i] 8 10
  fns[i] 9 10
  fns[i] 10 10
In that case, it has bound the mutable "j" to each of the 10 closures, though you can see it's created a new binding for i on each pass through the loop. It WILL create a new instance of the mutable "j" each time "local j" is executed, though, so if the above code is in a function or another block that's executed more than once, then each time those functions will be bound to a new "j".

EDIT: Get the code markup right.

comment 15y ago · link · parent

If it turns out that one of the installed apps was taking pictures without the user's knowledge, then that's one reason to like the permissions that Android shows you for every app you install: No app can take a picture without requesting the proper camera permissions, and I'm not going to install a game or a music player that requests camera permissions (or anything else totally unnecessary). (For those who don't know, the list of permissions an app requests is presented to you before you install any app.)

iPhone/iPod/iPad users can correct me if I'm wrong and iOS pops up some kind of warning when an app turns on the camera -- I know it pops up a warning under some circumstances at least.

comment 15y ago · link · parent

Playing of the quote in the comment I replied to:

"trying to make digital files uncopyable is like trying to make water not wet."

comment 15y ago · link · parent

>everything not mentioned in the Constitution is a right of the people.

Prior to the Bill of Rights, that was not the case. As I mentioned elsewhere, the "everything else is a right of the states or the people" clause is in the tenth amendment.

Edit: AND in the Ninth Amendment: "The enumeration in the Constitution of certain rights shall not be construed to deny or disparage others retained by the people."

comment 15y ago · link · parent

>Doesn't it also have a clause that says anything not declared in here are relegated to the states, or to the people?

That would be the tenth amendment, yes.

comment 15y ago · link · parent

Copyright is actually more deeply rooted in the Constitution (of the US) than those other rights; the Bill of Rights happened later, after all.

http://en.wikipedia.org/wiki/Copyright_Clause

comment 15y ago · link · parent

Hmm...well, then maybe there's hope:

http://www.sciencedaily.com/releases/2010/08/100825174102.ht...

(article on "dry water")

comment 15y ago · link · parent

You're just over 500 karma; I'm around 140 as I write this. So I guess I have a ways to go. :)

Not that I'm really worried about it one way or another, though.

comment 15y ago · link · parent

Downvoting does more than that. It can hide a discussion, and regardless, it certainly buries it.

Not that I have been able to figure out the magic that gets you the ability to downvote, but I don't really feel the need.

comment 15y ago · link · parent

I think the local health-code issues you'll need to deal with are a deal-killer.

Renting a room in a house is accepted and legal just about everywhere. Selling food often requires a permit and health inspections.

I remember hearing about some people in Oakland who were GIVING away food to homeless people, and they got shut down because it was not being prepared in a commercial kitchen.

And my sister was considering making cakes professionally in a Denver suburb; similarly, she was told she needed to be using a commercial kitchen.

comment 15y ago · link · parent

Yup, I know what you mean. In fact, when people explicitly tell me something is impossible I just take it as a challenge. And I often succeed.

Of course it usually takes me more than a couple days to do the impossible, but maybe you're faster than I am. ;)

Seriously, though, if there is a trade-off in feature value, the "agile" approach would be to point that out, and let them know what features they might be losing by having you work on one with only a lesser value.

Or in the words of a good friend of mine, if they're asking you to do it anyway, you're not charging enough for it. :)

comment 15y ago · link · parent

Yeah, I answered several Android development questions, and at first got NO votes, despite having the best (and sometimes only) answer.

So I trolled the "new" queue for five minutes, found a C++ question, answered it, and POOF, I had some rep. It helps that I know C++ REALLY well.

Eventually those Android answers started getting upvotes, and now I have somewhere around 400 rep, which is enough to do what I need.

The badges bust me up. It's like a video game -- for programming questions! In any event, being able to comment and vote on answers was what I wanted.

comment 15y ago · link · parent

There was a story I read a while back about a support ticket filed with Mozilla for FireFox complaining about all of these "security warnings" that would pop up at every HTTPS site the user visited.

She was apparently someone who should have known better, but instead was willing to believe that FireFox was just warning her spuriously about valid HTTPS certs -- yes, someone had hacked her computer, and was collecting every bank, credit card, and online shopping password as she fell for an MITM attack over and over.

comment 15y ago · link · parent

That is probably good advice no matter how you slice it. It's not like SMS is a secure method of communication.

comment 15y ago · link · parent

I have FireFox/NoScript, and with that it's even worse: After a few seconds of a screen with a tiny "broken plugin" window, it does a redirect to a "noflash" page. The only link on that page is to the Adobe Flash download.

The redirect is one where the back button doesn't work; to me that's one of the most incompetent web design flaws: Send people away from your main page and then not give them a way to get back. It's bad enough they demand you have Flash (do all iPhone/iPad users drink coffee?)

I've seen similar "Please enable JavaScript in your browser" pages without a path back to the main page as well. Idiocy.

comment 16y ago · link · parent

>It could be something as benign as upvoting only thoughtful comments here on HN instead of funny ones like on reddit/fark/digg that could bring about a long-lasting effect on the future of open discussion on the Internet.

I don't know; the highest voted comment I've had on Hacker News was one that was funny. By an order of magnitude.

What's wrong with humor, anyway? On reddit, it's easy enough to close an entire thread you don't find interesting to see what else was voted up.

comment 16y ago · link · parent

I had a similar experience: I tend to the introvert side of the spectrum, but when I got stuck in a job booth I was suddenly calling people across to talk to me. If anyone made eye contact with me, they were doomed. :)

And the really funny thing was, in contrast to normal situations where "being social" exhausted me, I found I gained energy from the interactions. Yet I was still my normal introverted self after it was over.

Funny how a situation can change your effective personality. :)

comment 16y ago · link · parent

I stand corrected (though the one I've used most myself -- Max -- isn't on Linux). I'm not a 3D artist; I just use 3D models in games, and so have only really looked at free options. Which, when I last looked, were somewhat shabby. I just want someone to make a decent but free 3D model editor that supports skeletal animation (sorry, Sketchup).

The remainder, however, are still unchallenged. Photoshop is considered unchallenged on the PC (though for what I do I like Corel PhotoPaint), so I think it would make quite a splash if it were challenged on Linux.

comment 16y ago · link · parent

3d rendering isn't what I need. I need 3d models for games.

comment 16y ago · link · parent

I left off a rant about "good enough" destroying the market for power-user software, because I was getting too much off topic.

But roughly: Yes. The cloud may win over the hearts and minds of a younger generation, and they may be happy using one of the many application suites online.

And then they become tied to having a constant $50-$100/month data plan so they can actually use their computer anywhere but at home.

I'm waiting for unlimited/anywhere wireless plans to come down to closer to the $10/month level before I allow my computing to be based in the cloud.

comment 16y ago · link · parent

Primarily, I'd say it's application software support on Windows. Games? You get a few working under Wine, sometimes, partly, but they're far more likely to work well under the version of Windows they were tested with. Photo editing? Photoshop, or even Corel PhotoPaint, leave Linux in the dust. Video editing software? Nothing on Linux comes close to Vegas Video in features and usability. 3d Graphics? A slew of high-end solutions on Windows; Blender is nice on Linux, but has an exceedingly steep learning curve. There's a reason the original company went out of business. And as much as I want to like OpenOffice (and I do use it instead of Microsoft Office), it's too clunky compared to Office for me to recommend to non-geeks in good faith.

And, for developers, there's a market to sell applications to. When's the last time you saw someone making a living selling software to Linux consumers? (Web based products are an important exception to this rule, of course, but not everything can work well from a browser.) And as a bonus developers get to use the best IDE available anywhere.

These are just the needs I've had, for which I've actively looked for software on Linux to fill. Every single time the software available has been pathetic compared to the professional offering.

It's hard work getting that final level of polish on a piece of software that brings it from "it kinda works" to "it works really well." That's what's typically missing from open source apps: The push to make something really easy to use and solid. Frankly not enough professional applications reach that stage, but the ones I mention above all do.

Firefox is one of the few apps in the open source community to really reach that level of polish. Google Chrome is another. Thunderbird is another. There are a dozen other free programs I use, but none of them really feels polished -- they're good enough to get the job done, but only just. And if more things happen "in the cloud," that may be all people need in the future.

But until "the cloud" is brought to my house on fiber at gigabit speeds, I'd like to keep doing my video editing on a local system, thank you. And until it's less expensive to get a WiMax or 4G or whatever-new-technology wireless connection, I'd like the computing to stay in my laptop as well.

comment 16y ago · link · parent

I think the problem is worse than that.

I've taken Word 97 files and tried to load them into Office 2007 only to have the document formatting be completely messed up. I mean, I've come to expect that when loading a Word file into OpenOffice, but to have it fail from one version of Word to another is pathetic.

comment 16y ago · link · parent

You have great parents. Not all parents are so supportive, but many are.

The difference is that Unschooling parents do that without sending their kids off to school. I'm glad you had a good school experience, though mine was pretty poor, so for me Unschooling is tempting, at least in theory.

A metaphor I've read is that schools force-feed information into kids that they're not interested in, so they frequently come home feeling "stuffed." Not a lot of room is left over for natural, self-directed learning and creative exploration. It doesn't matter if it's the most interesting thing in the world--if school has been torturing you with trivia you don't care about, you aren't as likely to pursue it on your own.

comment 16y ago · link · parent

While I am very tempted by your offer (assuming that it's mutual--that you'd be willing to reconsider libertarianism as well, if I brought up good points), in part because I love a good debate, I actually have work I need to get done. Despite the evidence of my recent frequent posts to this topic...

The problem is that if I took your challenge seriously, I'd spend lots of time researching what you said, as well as other perspectives, and...well... Like I said, sounds like fun, but I need to spend my energy on my fledgling business instead. Think of it this way: I'm trying to BE a character in a Rand novel that takes control of his own life and benefits from his own creativity and passion. Or something like that. :)

Also, if we both turned out to be too set in our ways, I think the likely result is that we'd drill down to how our sets of personal axioms contradict each other--really core personal assumptions and views of the world that, to each of us, are non-negotiable. And while I find that kind of thing interesting (see, e.g., George Lakoff, Moral Politics), the net result would be somewhat disappointing--an agreement to disagree.

Thanks for the offer, though.

comment 16y ago · link · parent

Sorry if I gave that impression: Poor people are not demonized directly in Atlas Shrugged, at least not that I can remember. It has been a long time since I read the book.

But objectivist politics does blame poor people for their plight--or at best, simply ignores them and leaves them to their fate. "Not my problem" seems to be the general response.

I submit that, until everyone has been given equal opportunities to forge their own destiny, it's immoral to remove the safety net. And that even if people really did have equal opportunities to succeed, that it benefits society to prevent the people who really screw up from starving and living on the streets.

And to do that you need money, which means (at a minimum) taxes. And you also need regulations to protect workers from being exploited--which means no laissez-faire capitalism.

comment 16y ago · link · parent

I had a girlfriend at the time who was an avid objectivist, and I read the book looking specifically at the philosophy. I replied to you in good faith because you claimed that you'd never seen a decent argument by someone who'd read the book. I not only read the book but listened to hours of detailed explanation of objectivist philosophy -- if I've conflated anything, it's the general beliefs of objectivism with the specific plot and details of Atlas Shrugged.

Also, to say that Rand didn't "blame" those doing the exploiting is simply wrong: She portrayed those doing the exploiting as evil and without morals (which to her is synonymous). Maybe you can't "blame" a person who is acting out of their nature, but that's a semantic argument. She also said that the smart/hard working people had a choice, and so equally blamed them for going along with being exploited--and that much of her message I agree with, in that I quit my job to start my own company.

But if you're going to accuse me of lying straight out, then there's no real point in arguing. Your responses also didn't address what I actually said--I gave specific examples as to how the market has failed, and blamed the LACK of action of the government on corporate influence. WHY the market fails is far more complicated than can be discussed in a single blog comment--THAT it fails should be sufficient to make my point. The disasters I listed are all caused by too much reliance on libertarian/objectivist principles of absolute laissez faire capitalism. A government that properly protected its citizens and the environment wouldn't have allowed any of the above to happen.

If the reason for that is that you can't see ANY argument as decent, regardless of merit, then there's no point in engaging.

I had an argument with someone a while back that felt like this--I'd give a dozen rational statements that supported my side, and the response was always an attack on a tangential point in one or two. I'd try to dig deeper, and again the argument would derail in a bizarre manner. I think that in situations like this it means that the person responding that way SO MUCH wants to believe his or her side that any challenge is met with an overkill response of rationalization. I think this is where the term "Fractally Wrong" comes from.

From time to time I feel myself reacting that way to a question. I treat it as a warning: There's something that I WANT to believe, that I take as a matter of faith, that I don't really think is true, so my rationalization engine gets kicked into overdrive, and I get angry and the person challenging my assumptions to boot.

I am NOT accusing you of this to attempt to hurt your position. Your responses were not nearly of the magnitude of that past debate opponent. But if things that I -- or anyone else -- is saying cause an extreme emotional response (say, to accuse them of lying rather than just addressing their points), and you feel the need to write out pages of reasons why the other person is wrong without actually dealing with their points directly, then I urge you to perform a bit of self evaluation. See if you might not actually believe your position as rationally as you think you do.

Because when you reply in anger, it makes me feel that I'm attacking a matter of faith rather than a carefully considered position. And when I reply in anger, it says, to me, the same thing about me.

I may be a bit obsessive about writing long answers, but I'm not feeling angry right now.

/tangent

comment 16y ago · link · parent

Sorry, but there are more poor people who are hardworking than there are rich.

It's Rand's argument that's flawed: When you start from nothing, you can't achieve greatness except by raw luck. This has been shown again and again in economics game theory experiments, and it proves out in observations of real people.

Is it not passion that inspires someone to work three jobs, just to barely support their family? To come to a country where you don't even speak the language and take jobs that pay less than the legal minimum wage, living packed in like sardines, again just so that you can send most of the money back to your family? You can find hundreds of thousands of hard working, passionate people who are living close to or under the poverty line. In Rand's version of reality, those people would all be rich, and only the lazy ones would be poor.

Sure you can point to a few people who've dragged themselves up from really crappy conditions to multi-millionaires. But they're the exception--and it's not because they were the most hardworking, but a combination of hard work and luck.

comment 16y ago · link · parent

I've read it. I was charmed by its philosophy...for a while. Then I had a good friend talk me down from the cloud.

The main theme of Atlas Shrugged, as I saw it, is that really smart/creative people are often used and abused by people in power, and that if all the smart/creative people left, that society would collapse.

Now, any attractive philosophy needs to have at least a grain of truth to be popular--and I fully agree that people are abused and manipulated by those in power. I identify as a smart and creative person, so of COURSE I want to be the one calling the shots, and not some idiot!

Where Rand falls short is in idolizing capitalism and taking an idealistic view of human nature. She also misses that if ANY large enough group walked out on society, it would grind to a halt--and that includes truck drivers, janitors, or whoever. It's called a strike.

The reality is that people are born into situations that make it possible to be smart/creative. The studies on this are conclusive--just giving a poor kid an extra year of preschool raises their chance of graduating high school, and their salary 35 years later. It's a fact that you were born to parents who taught you well as a young child that makes you smart enough to be arguing the merits of Ayn Rand.

This all destroys her core axiom that people who are the smart and creative builders of society are that way because of some inner moral purity, and therefore they deserve to be treated fairly--and the rest of society be damned, because they aren't as hard working/moral/whatever. The truth is that smart people are equally likely to be selfish (and lazy!) jerks; "enlightened self interest" is a fantasy that doesn't exist outside of possibly a few individuals and Rand novels. Looking at the other side, people without money or advanced skills frequently will vote against their own economic interests in order to vote their beliefs.

You can't base a real system of government on wishful thinking--ask the USSR how that worked out. Ironic that Rand came from that background only to espouse her own philosophy equally based on wishful thinking...but I digress.

The whole reality, in my opinion, is much bigger than just smart people being exploited: EVERYONE should be treated fairly, and no one should be exploited. Rand entices smart people by telling them that they're special, and that THEY are the ones should should be running the world. And to some degree I can buy into this. ;)

But not to the exclusion of helping others--and the sad truth of the matter is that charities can NOT do enough simply from voluntary contributions to support those who weren't as lucky in selecting their genes, and that means that taxes and government social programs are a necessary part of the moral behavior of society.

As are government rules that protect workers, or that protect the food supply, or that protect the environment, and the other things that libertarianism/objectivism would have us do away with.

She argues for pure, unregulated capitalism, and that's just completely insane. There's too much corporate influence in government as it is, and not enough regulation. Unless you think oil spills are fun, and don't mind the environmental damage that big Ag causes, and think that miners SHOULD be risking their lives for low pay, and on and on...

The reality is that the market spectacularly fails under some circumstances, and that government is necessary to regulate it.

There. I've said it. Let the libertarian downvoting commence...

comment 16y ago · link · parent

Java is interpreted on Android on every version prior to Android 2.2. Lua (clearly a scripting language) also converts to bytecode on load, and runs faster than Java in most cases. I'm pretty sure Python also converts to bytecode.

Objective C has a lot of run time overhead due to its "message passing" paradigm. So any time you need to use a Cocoa API, it's pretty slow. Somewhere I read that, as a result of Objective C overhead, the iPhone ends up about the same speed as Android in typical apps--so that with Android 2.2 getting a JIT compiler, it ends up much faster on similar generation phones.

EDIT: I just realized what you were confused about. Originally Apple said: "NO native SDK. You must use JavaScript on web pages to create iPhone apps." That's what I meant by "Apple started with a scripting language and had to back down." END EDIT

If you're writing code for mobile platforms, then I'm sorry, but it sucks to have to write it all 3-4 times. C# may be better than Java, but it's not relevant to me if I want to write Android/iOS games. If everyone used C++, then even the small-market phones (I'm looking at Microsoft here) would get ports of everything. At least iOS has somewhat native support for C++, which makes it easier to port games to/from Windows/Linux. The Android native support is unfortunately a neglected step-child of Google, though I'm fighting with it to get that compatibility.

And I'd certainly debate that modern phones are overpowered, but then again I write games. My G1 positively crawls--which I submit it wouldn't do if large portions of the OS weren't written in interpreted Java. I would totally agree with you that, on paper, there's plenty of power--but it's all wasted by inefficient code.

You know what really surprises me, though? How much CPU it takes to render a web page. Even when I'm on WiFi, the G1 is unusably slow at rendering web pages. And it's built on C++--and the Google browser, which is supposed to be fast. Opera and Dolphin are also pathetic on the G1.

Not that anyone will see this now that my original comment has been downvoted to oblivion. I guess you can't insult Java on HN and get away with it. No worries, though--the same thing happens on Reddit.

EDIT: See "EDIT" section above.

comment 16y ago · link · parent

Yet another reason why it was a terrible idea to base the Android SDK on Java. What WERE they thinking?

I know, let's force everyone to use a scripting language to write for underpowered phone hardware! We don't need native support! Just because Apple did the same with iPhone to start with, and it came back to haunt them later, doesn't mean that we won't get away with it! And don't forget Microsoft did the same thing with C#--look where it's gotten them! And while we're at it, let's pick a proprietary and patented language that's a laughing stock in language design circles!

I doubt this makes a dent in Android, though, and I would be amazed if this changes their Java strategy in the slightest. In a battle between Oracle and Google, I think the smart money is on Google.

1
4647484950