Archive for Politics

PLINQO Tackles LINQ to SQL

Wednesday, November 10th, 2010

So, I’ve been using the basic version of CodeSmith’s Generator product and have mixed feelings about the .netTiers template. It apparently does not like uniqueidentifier fields marked as ROWGUID.

Frankly, I’ve been doing LINQ to SQL for long enough now that I am getting really juiced about using the PLINQO framework with CodeSmith.

The thing is, I love the L2S syntax, but do NOT love using VS-generated DBML files for everything, and Entity Framework sucks.

What’s a brother to do? Hand-code data-context-aware data entities? <sarcasm>Tempting, but no, thanks!</sarcasm>

PLINQO

PLINQO project layout screenEnter PLINQO, a framework that represents your data-aware entities in clear form, with partial classes you’ll need to extend them. The class structure allows for easy detachment from the entities’ data contexts so that you can pass your entities off to your presentation layers and they update the database directly, obviating the need for expensive-to-maintain custom data transfer objects.

PLINQO is built into the Professional Edition of the CodeSmith toolset, which is a template-driven source code generation application, in such a manner that you can generate the framework code automagically straight from your database. What’s coolest of all is that you can re-gen your entities from the database at any time, without it touching your custom code.

I have used the PLINQO’s code generated during my trial period for CodeSmith professional, but now that has lapsed, and I miss it dearly.  In the meantime, I am maintaining the framework code previously generated by hand. Kind of blows, but when I get my new dev studio setup at the home office, I will be getting all manner of new tools, and CodeSmith is one of them.

Using the code is a snap, and being able to integrate the classes out-of-the-box took me from database to business logic in one easy step. Granted, you still have to encode some data rules, but having all the basics in place ready to go meant that I was able to take some sketched out requirements, bang out the basic database structure and got me a data access layer right out of the box.

The PLINQO template can also configure your project to use PLINQO with Data Services and Window Communication Foundation (WCF), though I have yet to grok that.

Its integration into Visual Studio is also godsend, allowing you to update objects without having to leave your dev environment.

One item that makes it worth the price of admission though, is the Enum generator, which takes your look up tables (e.g. Product Types, Scanner Settings, etc.) and creates the Enum class for you. OMFG, I’ve been dying for this for years.

Anyway, take a quick look at the Solution Explorer to the right here. It shows a quick overview of how the PLINQO framework looks when generated by the PLINQO template in CodeSmith.

I am moving into using the ASP.NET MVC framework and want to focus on that, not on the data-access-layer.

The google’s code repository is where the PLINQO sample project Tracker is hosted.

PLINQO :: BOTTOM LINE

This framework has already saved me many hours coding and debugging code for data access, code which is so boring I want to gouge my eyeballs out with pencil. The Visual Studio integration is what LINQ to SQL could have been had Microsoft not dropped the ball in favor of that pig of a beast EF4. Detachable entities and Enum objects round out a top-shelf solution, and those are just what I have grokked so far.

What I Want in a Conservative

Tuesday, October 14th, 2008

I want my conservatives to be buttoned up in clean, simple suits. I want them to be stoic, austere, self-assured, calm. Joe Six Pack needs someone to look up to, someone to respect. The GOP has spent all of its energy lately trying dress itself down, to its detriment.

People don’t want Bubba. Even G.W. does his pandering by example, owning a ranch, etc. But every day he wears a suit and tie and makes no apologies for it. The man, goofy as he is, is strictly business, even while torturing the English language.

I disagree with the man’s policies on almost everything, but over the years I’ve learned to respect the man, begrudgingly.

What the GOP has become is just one big BBQ or hoe-down, for the rural folks, but 50% of Americans live in cities, and you can’t run the nations’ government only on the concerns of the rural population. People in cities count, they drive huge swaths of the economy, they matter, they vote.

Joe Six Pack is a nice guy, but he isn’t the only American.

Which brings me to this article in the Wall St. Journal entitled “Obama’s 95% Illusion” which sets out to debunk Obama’s claims that he is providing middle class tax cuts.

Here’s the article.
http://online.wsj.com/article/SB122385651698727257.html

The irony of how well this article is written made me laugh out loud.

The irony is that the GOP has spent so much time telling Joe Six Pack that anything from East Coast City Slickers is a lie, and that all they need are small-town country songs with single syllable words, etc.

So now the GOP leadership cannot point to the one article that every conservative should read, because it’s written in the “Mainstream Media.”

The Wall St. Journal is part of  “The Elite.”

And we all know that Joe Six Pack can’t trust them fat cats on Wall St. much less the media that writes about them.

The bottom line is the GOP has really let itself go.

It’s a shame too, because i think core conservative ideals about cutting taxes, reducing spending, offering people opportunities not hand-out, etc., etc. are noble in their simplicity.

I really miss the days when the GOP presented themselves as the stoic, wiser counterparts to the foolishness that Liberalism can really be.

Oh well, my favorite flavor Conservatives may never return, but I wish they would and clean up their house — it looks like a trailer park at this point.

Tags: , , , , ,

What You Need To Believe To Be A Republican

Thursday, May 18th, 2006

Jesus loves you, and shares your hatred of homosexuals and Hillary Clinton

Saddam was a good guy when Reagan armed him, a bad guy when Bush’s daddy made war on him, a good guy when Cheney did business with him, and a bad guy when Bush needed a “we can’t find Bin Laden” diversion.

Trade with Cuba is wrong because the country is Communist, but trade with China and Vietnam is vital to a spirit of international harmony.

The United States should get out of the United Nations, and our highest national priority is enforcing U.N. resolutions against Iraq.

A woman can’t be trusted with decisions about her own body, but multi-national corporations can make decisions affecting all mankind without regulation.

The best way to improve military morale is to praise the troops in speeches, while slashing veterans’ benefits and combat pay.

If condoms are kept out of schools, adolescents won’t have sex.

A good way to fight terrorism is to belittle our long-time allies, then demand their cooperation and money.

Providing health care to all Iraqis is sound policy, but providing health care to all Americans is socialism. HMOs and insurance companies have the best interests of the public at heart.

Global warming and tobacco’s link to cancer are junk science, but creationism should be taught in schools.

A president lying about an extramarital affair is a impeachable offense, but a president lying to enlist support for a war in which thousands die is solid defense policy.

Government should limit itself to the powers named in the Constitution, which include banning gay marriages and censoring the Internet.

The public has a right to know about Hillary’s cattle trades, but George Bush’s driving record is none of our business.

Being a drug addict is a moral failing and a crime, unless you’re a conservative radio host. Then it’s an illness and you need our prayers for your recovery.

Supporting “Executive Privilege” for every Republican ever born, who will be born or who might be born (in perpetuity.)

What Bill Clinton did in the 1960s is of vital national interest, but what Bush did in the ’80s is irrelevant.

Support hunters who shoot their friends and blame them for wearing orange vests similar to those worn by the quail.

more fun in american politics

Monday, May 15th, 2006

conservatives can reconcile some pretty weird things, case in point — people in the current administration let leak that valerie plame was cia agent and conservatives behave as though it was no big deal to out one of it’s soldiers in war time.

but get this http://blogs.abcnews.com/theblotter/
a secret source told the reporters over at abc news to “get new cell phones now” because the govn’t is trying to find confidential sources.

so what is it, republican big guys? is it okay to leak confidential information to the press or not? make up your mind, you’re waffling worse than john kerry.

it just never stops, does it?

Tuesday, March 28th, 2006

http://www.fortwayne.com/mld/journalgazette/news/nation/politics/14177032.htm

my thought:
every conservative i have ever spoken with at some point explains to me that the constitution is not a living document; that it is to be interpreted precisely in its words; and that judges who set precedents that conservatives don’t like are ‘activist judges’

odd, then that conservatives can so casually overlook this egregious disregard of the cornerstone of the republic.

my, how quickly the conservative congressmen and women roll over and play dead for the president, abdicating their role within our government, forever eroding the importance of elected representation of the american citizenry.

this behavior is both cynical and shameful, and if you don’t feel like you’ve been slapped in the face, then you really need to re-read the constitution, and re-evaluate what it means to be an american.

if bill clinton had pulled this stunt, every conservative in america would be in the streets with pitchforks and torches, and to believe otherwise is flagrant equivocation.

What I want in a Conservative

Wednesday, December 31st, 1969

I want my conservatives to be buttoned up in clean, simple suits. I want them to be stoic, austere, self-assured, calm. Joe Six Pack needs someone to look up to, someone to respect. The GOP has spent all of its energy lately trying dress itself down, to its detriment.

People don’t want Bubba. Even G.W. does his pandering by example, owning a ranch, etc. But every day he wears a suit and tie and makes no apologies for it. The man, goofy as he is, is strictly business, even while torturing the English language.

I disagree with the man’s policies on almost everything, but over the years I’ve learned to respect the man, begrudgingly.

What the GOP has become is just one big BBQ or hoe-down, for the rural folks, but 50% of Americans live in cities, and you can’t run the nations’ government only on the concerns of the rural population. People in cities count, they drive huge swaths of the economy, they matter, they vote.

Joe Six Pack is a nice guy, but he isn’t the only American.

Which brings me to this article in the Wall St. Journal entitled “Obama’s 95% Illusion” which sets out to debunk Obama’s claims that he is providing middle class tax cuts.

Here’s the article.
http://online.wsj.com/article/SB122385651698727257.html

The irony of how well this article is written made me laugh out loud.

The irony is that the GOP has spent so much time telling Joe Six Pack that anything from East Coast City Slickers is a lie, and that all they need are small-town country songs with single syllable words, etc.

So now the GOP leadership cannot point to the one article that every conservative should read, because it’s written in the “Mainstream Media.”

The Wall St. Journal is part of  “The Elite.”

And we all know that Joe Six Pack can’t trust them fat cats on Wall St. much less the media that writes about them.

The bottom line is the GOP has really let itself go.

It’s a shame too, because i think core conservative ideals about cutting taxes, reducing spending, offering people opportunities not hand-out, etc., etc. are noble in their simplicity.

I really miss the days when the GOP presented themselves as the stoic, wiser counterparts to the foolishness that Liberalism can really be.

Oh well, my favorite flavor Conservatives may never return, but I wish they would and clean up their house — it looks like a trailer park at this point.

Tags: , ,