Paul M. Jones

Don't listen to the crowd, they say "jump."

On Project Structure; or, The Framework/App Is Not Special

(I apologize for the hasty writing here; this subject makes me impatient.)

Reading this post from Code Rabbi makes me reflect on project structure and organization. Frankly, most project structures (as from CodeIgniter, Cake, and all the popular frameworks since then) strike me as misdirected. They're examples of why the project maintainers think their code is somehow special and different, and that the application built from it is also somehow special and different.

Your framework and application code are not special. Their code does not go in a special place. There's no need for a top-level "app" directory with its own special subdirectories. There's no need for a special naming convention to keep your different application-specfic code in specific places.

We had PSR-0, and now have PSR-4, and the Composer autoloader, to handle all that for you. Just use namespaces. All you need for code at the top level of your project is a "src" directory, where all your app code goes, just like all your library code goes in a "src" directory in a library package.

Instead of /app/controllers and /app/models, you have /src/Controller and /src/Model, or however else you want to organize your namespaced code. Then there's no need for a special autoloading system or for hard-coded paths just for your application-level code. Add one single line to Composer that points to the src directory and voila, everything inside it loads for you.

That's it. Nothing special. Just like every other library in your system.

(Again, this was hastily written. Please ask for clarfication if you feel you need it.)



Jock/Nerd Theory and Income Redistribution

(Lightly edited for streamlining purposes; all emphasis mine)

According to the Jock/Nerd Theory of History, most historical human societies bore a striking resemblance to K-12 education. In primitive tribes, for instance, the best hunters are on top. If the village brain knows what's good for him, he keeps his mouth shut if the best hunter says something stupid. The rise of civilization gave the nerds a better deal, but as long as almost everyone worked in agriculture, brawn continued to pay well.

But then something amazing happened: Nerds got enough breathing room to develop and implement amazing wealth-producing ideas. The process fed on itself, devaluing physical ability and elevating mental ability. Nerds built the modern world - and won handsome financial rewards in the process.

Notice: For financial success, the main measure where nerds now excel, governments make quite an effort to equalize differences. But on other margins of social success, where many nerds still struggle, laissez-faire prevails.

It's suspicious - and if you combine the Jock/Nerd Theory with some evolutionary psych, it makes sense. When the best hunter in the tribe gets rich, his neighbors will probably ask nicely for a share, if they dare to ask at all. But if the biggest nerd in the tribe gets rich, how long will it take before the jocks show up and warn him that "You'd better share and share alike"?

Punchline: Through the lens of the Jock/Nerd Theory of History, the welfare state doesn't look like a serious effort to "equalize outcomes." It looks more like a serious effort to block the "revenge of the nerds" - to keep them from using their financial success to unseat the jocks on every dimension of social status.

via Redistribution: Blocking the Revenge of the Nerds?, Bryan Caplan | EconLog | Library of Economics and Liberty.


Fluid Experiments Support Deterministic “Pilot-Wave” Quantum Theory

This idea that nature is inherently probabilistic -- that particles have no hard properties, only likelihoods, until they are observed -- is directly implied by the standard equations of quantum mechanics. But now a set of surprising experiments with fluids has revived old skepticism about that worldview. The bizarre results are fueling interest in an almost forgotten version of quantum mechanics, one that never gave up the idea of a single, concrete reality.

The experiments involve an oil droplet that bounces along the surface of a liquid. The droplet gently sloshes the liquid with every bounce. At the same time, ripples from past bounces affect its course. The droplet’s interaction with its own ripples, which form what’s known as a pilot wave, causes it to exhibit behaviors previously thought to be peculiar to elementary particles -- including behaviors seen as evidence that these particles are spread through space like waves, without any specific location, until they are measured.

Particles at the quantum scale seem to do things that human-scale objects do not do. They can tunnel through barriers, spontaneously arise or annihilate, and occupy discrete energy levels. This new body of research reveals that oil droplets, when guided by pilot waves, also exhibit these quantum-like features.

To some researchers, the experiments suggest that quantum objects are as definite as droplets, and that they too are guided by pilot waves -- in this case, fluid-like undulations in space and time. These arguments have injected new life into a deterministic (as opposed to probabilistic) theory of the microscopic world first proposed, and rejected, at the birth of quantum mechanics.

via Fluid Experiments Support Deterministic “Pilot-Wave” Quantum Theory | Simons Foundation.


Demilitarize the police – and stop flinging false racism charges

I join my voice to those of Rand Paul and other prominent libertarians who are reacting to the violence in Ferguson, Mo. by calling for the demilitarization of the U.S.’s police. Beyond question, the local civil police in the U.S. are too heavily armed and in many places have developed an adversarial attitude towards the civilians they serve, one that makes police overreactions and civil violence almost inevitable.

But also note an uncomfortable truth:

... a young black or “mixed” male is roughly 26 times more likely to be a homicidal threat than a random person outside that category – older or younger blacks, whites, hispanics, females, whatever. If the young male is unambiguously black that figure goes up, about doubling.

26 times more likely. That’s a lot. It means that even given very forgiving assumptions about differential rates of conviction and other factors we probably still have a difference in propensity to homicide (and other violent crimes for which its rates are an index, including rape, armed robbery, and hot burglary) of around 20:1. That’s being very generous, assuming that cumulative errors have thrown my calculations are off by up to a factor of 6 in the direction unfavorable to my argument.

via Demilitarize the police – and stop flinging false racism charges.


DRY is about Knowledge

From Matthias Verraes:

“Don’t Repeat Yourself” was never about code. It’s about knowledge. It’s about cohesion. If two pieces of code represent the exact same knowledge, they will always change together. Having to change them both is risky: you might forget one of them. On the other hand, if two identical pieces of code represent different knowledge, they will change independently. De-duplicating them introduces risk, because changing the knowledge for one object, might accidentally change it for the other object.

This is a great observation, one I had not considered before. It makes me feel a lot better about the very few and very minor duplications of code in the various independent and decoupled libraries in Aura. In short, DRY is not a reason to couple code libraries with similar behaviors; instead, it is a reason to have a single canonical source of knowledge within a system.


Only Stupid People Call People Stupid

Calling people stupid is simply a performance for the fellow travelers in your audience. It’s a way that we can all come together and agree that we don’t have to engage with some argument, because the person making it is a bovine lackwit without the basic intellectual equipment to come in out of the rain. So the first message it sends -- “don’t listen to opposing arguments” -- is a stupid message that is hardly going to make anyone smarter.

The second message it sends is even worse: “If he’s stupid, then we, who disagree with him, are the opposite of stupid, and can rest steady in the assurance of our cognitive superiority.” Feeding your own arrogance is an expansive, satisfying feeling. It is also the feeling of you getting stupider.

via Only Stupid People Call People Stupid - Bloomberg View.


Most Federal Housing Subsidies Do *Not* Fund The Poor

The bulk of homeownership expenditures go to the top fifth of households by income, who typically could afford to purchase a home without subsidies.  According to estimates by the congressional Joint Committee on Taxation, more than three-fourths of the value of the mortgage interest and property tax deductions goes to households with incomes of more than $100,000, and close to a third goes to families with incomes above $200,000.

Yet another reason to start stripping back entitlements, including things like mortgage interest deductions. Via Chart Book: Federal Housing Spending Is Poorly Matched to Need -- Center on Budget and Policy Priorities where there is a pretty chart. Hat tip to Arnold Kling where the comments are enlightening.


Women Are Bullies, Too -- They Just Use Authorities As Weapons

I think middle school was always h*ll on Earth, but I didn’t know how bad it could be until eighteen girls bullied my son by using the school authorities as weapons.

If the rule is “don’t fight” and “if I feel uncomfortable, I’ll go to the authorities” clever bullies are always capable of running to the authorities with stories, real, invented or exaggerated. In the case of my son they were wholly invented, and to boot these girls were perpetrating violence on him out of sight of the authorities. (Which I only know because I accidentally observed it.) BUT the authorities believed it was possible to completely suppress violence, and that the physical side of it was the only violence, and that a big, strong male must be at fault, always.

We’ve seen what the “don’t fight” and “use the authorities as whips instead” has done in our society at all levels. The male is always guilty and always suspect, but women can make up things out of whole cloth and no one questions it, because “they’re not violent.”

This puts power in the hands of women and men of a certain stripe: the weasels, the tale bearers, the plausible liars, the yellow streaks of sh*t, who would never face another man (or woman) in the full light of day, but who will lie and connive their way to the top.

This way, anti-bullying initiatives become bullying. Someone was discussing on FB how the Goodreads “anti-bullying” groups come down like a ton of bricks on any author trying to defend his book, or anyone else trying to protect himself from group evisceration.

Same as it’s ever been. Take away physical weapons, and people will use the authorities as physical weapons. (And psychological ones too, which is worse.)

So let's stop thinking of the ladies as being above reproach, and above being questioned about their stories. Via Bullies Knights Savages and Komissars | According To Hoyt.


Cut the crap about the gender pay gap

A gender pay gap, albeit one that is rapidly decreasing, still exists; but the good news is that when occupation, contracted hours and most significantly age are taken into account, it all but disappears. In fact, the youngest women today, even those working part-time, are already earning more each hour than men. We need to ask why this is not more widely known and question the motives of those who seem so desperate to cling to a last-ditch attempt to prove that women remain disadvantaged. We should be telling today’s girls that the potential to do whatever job they want and earn as much money as they please is theirs for the taking, rather than burdening them with the mantle of victimhood.

via Cut the crap about the gender pay gap | Feminism | spiked.


Abolish The IRS And Replace With A Consumption Tax (Not VAT)

Neither the income tax nor its oppressive bureaucratic collector can be fixed. It cannot be reformed. It must be thrown into history’s dust heap of failed legislative experiments and replaced with the Fair Tax Act of 2013, or HR 25/S 122.

The Fair Tax is a simple, fair and transparent national consumption tax that treats everyone the same -- no loopholes, exemptions or exclusions -- not even for Congress.

As such, this legislation represents the largest transfer of power back to the people since the writing of the Constitution.

And the Fair Tax is the only tax replacement plan with 85 cosponsors committed to disbanding, defunding and forever eliminating the IRS.

Benjamin Franklin once said, “the ordaining of laws in favor of one part of the nation, to the prejudice and oppression of another, is certainly the most erroneous and mistaken policy.”

It’s time to end the most prejudicial, oppressive, erroneous and mistaken policy ever forced upon the American people. It’s time for the Fair Tax.

via No, the IRS cannot be fixed --- it must be abolished and replaced with the Fair Tax | WashingtonExaminer.com.