Profile cover photo
Profile photo
Jeff Dickey
Profoundly Eclectic Technical Generalist, Lead and Writer
Profoundly Eclectic Technical Generalist, Lead and Writer


A year or so ago, I came across how to add ActiveModel `has_secure_password` to a non-ActiveRecord class. Now I can't find it again; does anyone have any pointers I can use?



I knew it was easy; I didn't remember it as being that easy. Mea culpa here:

And why TF doesn't G+ have decent formatting and linking in comments like the rest of the civilised technological planet?!?

Post has shared content
It would explain a great many things.
Add a comment...

Post has shared content
Add a comment...

Post has attachment
An instance of this model-ish class works exactly as you'd expect; a "bare" object augmented using `class_eval` and friends does not. I'd really like to understand why.

Post has shared content
Add a comment...

Post has attachment
Reading his book and then seeing this prezi drives home the points.

I've been doing OO for 20+ years, in a dozen languages, and most of the time I was making life harder for myself than it needed to be. You have, too. I've been on teams whose projects have failed in a way that, looking back, would have been far less likely had we done thing this way. If you've been on at least three teams, you probably have, too.

This isn't a silver bullet, but it's a damned fine can of bug spray.

Post has shared content
We had how many decades of clear and verifiable warning and then we got here?

For evil to succeed, all that is required is for good people to do nothing. The most efficient way to ensure that happens is apparently indoctrinating people from young to not pay attention to unapproved things.

#fascism   #today  
Some lessons we need to relearn. And some situations call for doing something truly new and different.

Back in 1982-83, I worked for a U.S. Senator and opened all his mail as part of my job. Did you know that the mail of a U.S. Senator makes it rain money? Lots and lots of checks with a little note.

There is a website called and an app, which has lots of things people will do for $5. 

Senators are like Fiverr workers, only they do things for $5,000 rather than $5.

So the idea that a government whose elected senior legislative officials can legitimately regulate the people and business who hire them just like very expensive ("but worth it") Fiverr workers is, in truth, naive and has been tried and has failed, because when you buy someone, they do what you tell them to do, and the U.S. Senators and U.S. Representatives have been told to do all sorts of things that are antithetical to the U.S. public interests.

The problem is one of scale: the government needs to leverage its size to make it just too damn massive to be able to buy enough influence for “state capture" or “regulatory capture."

How do we make the U.S. government "unaffordable" to anyone and everyone, and even every conceivable collection of malefactors acting in concert? 

Is there a way to do this? Yes, and thank you for asking.

There is another way that has not been tried. I have been talking about it off and on since I saw it rain $5,000 checks 32 years ago: By taking America public and giving at least 49% of the shares to America's citizens, that's how.

And that's what I call "equitocracy" — government by owners. 

Take every government entity public and let people vote their shares.

America, Inc. would be worth $60 to $100 trillion, and in aggregate the states, counties, and cities would be something like $30 to $50 trillion.

Bill Gates' $76 billion would not buy him much influence in entities worth $110 to 150 trillion, and he'd have to sell everything, which would collapse the prices, to put all his money into government equity.

It would be especially difficult to have disproportionate influence because every citizen and resident would own voting shares.

Those who wanted more votes would buy the shares of those who didn't care. Prices would go up right before an election and down right after, enabling each purchase to enrich everyone.

If a large corporation were misbehaving, America, Inc. could simply buy 51% and replace the board of directors.

Americans would trade places from people on average about $200,000 in debt each to people with wealth of at least $200,000 each.

If you've read this far, thanks for the gift of your time and attention.
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Post has attachment
Wait while more posts are being loaded