Live data from Hacker News

Rick Santorum's Fake Donation Meter

ricksantorum.com

91–100 of 100 posts

Re: Rick Santorum's Fake Donation Meter

#92
post #89
post #88

Earlier quoted context omitted.

You being downvoted could also be caused by you accusing the webmaster to be 'barely-competent'. This is an (afaics) unfounded accusation.

Yeah, I figured that was the real reason, the edit is tongue-in-cheek. But I don't think it's unfounded. Just look at all the comments criticizing the coding! (Particularly in Osiris' thread.) I don't consider myself a master programmer but at least I use 'var' by habit. Now one other objection I considered was the use of "barely-competent" as a term, which seems like a strange one since typically people are either c…

Or: You were wrong to judge someone based on this tiny output.

Re: Rick Santorum's Fake Donation Meter

#94
post #53

Earlier quoted context omitted.

As long as it's "single page bound" JS like this, I honestly don't think it matters one bit. Reusable components and utility libraries is something different, of course.

But when writing code, how do you know that it's always going to be "single page bound"? YAGNI is frequently useful poison and nothing more. When it's so easy to do it right the first time, why not?

> When it's so easy to do it right the first time, why not?

a) Because it isn't "right" as such. It's just "better" if the code is going to be reused. Which it isn't.

b) The code style serves as documentation. I can clearly read from this code that it's not a reusable component. It is now easier for me to get an idea of how and where this code is being used in the site.

c) Personally, I'm wary of "pre-emptive generalization". Every layer of abstraction makes the code slightly less readable. Also, unless there exists at least two use cases right now, you're not likely to get the reusability right anyway.

Re: Rick Santorum's Fake Donation Meter

#95
post #86
post #84

Earlier quoted context omitted.

I think he suspended his campaign. Suspending means that while for all intents and purposed but one, the campaign is ended. The exception is that it allows the candidate to raise money (usually to pay off campaign debt). Ending a campaign means you hold the bag, if you're in the red, as I understand it. So, technically, yes, still a candidate.

Actually your candidacy is its own separate legal entity, so you're not legally holding the bag. However your reputation is at stake, if you ever want to run for public office in the future, nobody will lend you money if you've proven to be a bad credit risk in the past. See http://www.businessweek.com/articles/2012-04-19/the-business... for more.

Ah, good distinction. Thanks for the explanation.

Re: Rick Santorum's Fake Donation Meter

#96
post #19

wait, did anybody actually think those donation counters were real ?

Honestly in other cases they are. I had personal experience developing tools used for Howard Dean's 2004 primary campaign (as a volunteer not staff) and in that case it was certainly real. I'd be very, very surprised if the ones used by Ron Paul and Obama weren't real. They have good engineering talent there, and (in the case of Obama at least) good political talent. This runs contrary to both.

[deleted]

Re: Rick Santorum's Fake Donation Meter

#97
post #81

Earlier quoted context omitted.

I was going to check and get back to you, but I can't find one on either of their sites.

They run them during specific fund-raising drives. You can also see them on peoples personal MyBO pages.

Can confirm that the thermometers on Obama fundraising pages (MyBo and others) are real (not simulated and not manipulable). It's a feature of the donation software they use.

(My employer develops it.)

Re: Rick Santorum's Fake Donation Meter

#99
post #30
post #22

Earlier quoted context omitted.

It's the Tab character.

Ah, so it is. Then I'm disturbed that browsers render a tab as 8 spaces.

8 is the traditional size of tabs though, isn't it? Seems like a reasonable default. That's partially why some teams (mine included) discourages the use of tabs in source code - its appearance varies depending on what's rendering it, affecting code readability.

Re: Rick Santorum's Fake Donation Meter

#100

Earlier quoted context omitted.

The defacto standard is to put nothing in an enclosing namespace unless it's needed there. The purpose of functions (especially in a language like JS) is to wrap up everything that's needed to accomplish a given task and leave no mess behind.

Then why oh why are variables global by default ? (this is not meant as an attack on your point, I fully agree, I just find this awfully frustrating about JS. Sane languages have scoped by default and a global keyword, not the other way around)

You'd have to ask its designer. Sloppy programmers do like globals and JS was targeted for them.
Post reply on HN