Modern Website Design: Layout

There have been many books written about website design, and I am not about to take on the challenge of disputing any of them or trying to explain every facet of design. In this short blog, I want to explain what I have come to understand as the modern layout of websites. The term “layout” may have many different definitions, but for this article I am talking about the basic structure of your website, meaning separation of concerns, data transfer from host to client, how to handle changes in data, and when to change your page structure.

Separation of Concerns

It is important when sitting down for the first time to build a website to come up with an outline. Start by making a list of the parts of your website and the functions of those parts. I always start at the base of my web structure and work from there. HTML is always the foundation of a website; it defines the structure and outlines how you will display your data – plain and simple. It doesn’t have to include data or styles, nor does it need to be dynamic … At its essence, it’s a static file that browsers can cache.

Client-side scripting languages like JavaScript will take care of client-side animations and data dispersal, while cascading style sheets (CSS) take care of style and presentation, and server-side scripting languages like PHP or Perl can take care of data retrieval and formatting.

Data Transfer

Where is your data going to come from, and what format it will be in when the client receives it? Try to use a data format that is the most compatible with your scripting languages. I use JavaScript as my primary client side scripting program, so I try to use JSON as my data format, but that’s not always possible when dealing with APIs and transferring data from remote computers. JSON is quickly becoming a standard data format, but XML* is the most widely accepted format.

I prefer to use REST APIs as much as possible, because they sends the information directly on the client, rather than using the server as a proxy. However, if a REST API is not available or if there is a security risk involved, you get the advantage of being able to format the data on the server before pushing it to the client. Try to parse and format data as little as possible on the client side of things, the client should be concerned with placing data.

Changes in Data

In the past, websites were made from multiple HTML documents, each one containing different data. The structure of the pages were the same though, so the data changed, but the code was nearly identical. Later, using server side scripting programs, websites became more dynamic, displaying different data based on variables passed in the URL. Now, using AJAX or script injection, we can load new data into a static webpage without reloading. This means less redundant code, less load on the client, and better overall performance.

Page Structure

It is important when displaying data to understand when to change the structure of the page. I start by creating a structure for my home page – it needs to be very open and unrestricting so I can add pictures and text to build the site. Once the overall loose structure is established, I create a structure for displaying products (this will be more restrictive, containing tables and ordering tools). The idea is to have as few HTML structures as possible, but if you find that your data doesn’t fit or if you spend a lot of time positioning your data, then it might be time to create a new structure.

The Impact of a Modern Layout

Following these steps will lead to quicker, more efficient websites. This is (of course) not a new subject, and further understanding of web layout can be found in Model-View-Controller frameworks. If you find that you spend too much time writing code to interface with databases or place data, then frameworks are for you.

-Kevin

*If you have to deal with XML, make sure to include JavaScript libraries that make it easier to parse, like JQuery.

‘God of Liberty’: The Role of Religion in American Independence – Huffington Post (blog)


Deseret News
'God of Liberty': The Role of Religion in American Independence
Huffington Post (blog)
The spiritual ideas of the Enlightenment rationalists were eclectic and complex, often ambivalent and beguiling; but crucially, they didn't need definite religious doctrines to find common cause with the liberty-seeking evangelists. ...
A closer look at role of faith in America's foundingKansas City Star

all 15 news articles »

Sabotaging Freedom Flotilla II – Aljazeera.net


CTV.ca
Sabotaging Freedom Flotilla II
Aljazeera.net
There are numerous recent reports of curtailed services in Gaza hospitals, cancelled surgeries and closures because of the absence of essential medical supplies. And perhaps, worst of all, no exports of any kind from Gaza are allowed, which means that ...
Flotilla II: Brave Activists, Spineless PoliticiansPalestine Chronicle
KGO Tells Honest Story About Gaza Freedom Flotilla's Plight in GreeceSalem-News.Com
Calls for Israel to explain damage to aid ship 'Saoirse'Irish Times
Toronto Star -Montreal Gazette
all 2,700 news articles »

CPI leader Chaturanan Mishra passes away – Times of India


SamayLive
CPI leader Chaturanan Mishra passes away
Times of India
Born at Nahar village in Madhubani district on April 7, 1925, he plunged himself into the Quit India Movement (1942) and freedom struggle, and then, over the decades, emerged as a CPI stalwart to take position among front-ranking trade union and Left ...
PM condoles passing away of ex-Union Minister Chaturanan MishraDailyIndia.com
Senior CPI Leader Chaturanan Mishra No MoreDaijiworld.com
Nitish condoles Chaturanan''s deathIBNLive.com
NetIndian -Economic Times
all 22 news articles »

Fayetteville woman to open home to veterans as part of medical foster program – Fayetteville Observer

Fayetteville woman to open home to veterans as part of medical foster program
Fayetteville Observer
It also provides them with more freedom and flexibility, as well as a homier atmosphere, Bragg said. The Fayetteville program is one of several already instituted across the nation, she said. While researching the program, Bragg met a World War II ...

and more »

Dominique Strauss-Kahn: Giant Step Closer to Freedom – ABC News


Sydney Morning Herald
Dominique Strauss-Kahn: Giant Step Closer to Freedom
ABC News
"The medical evidence supports the victim's account," Thompson said. The district attorney's office also said that some type of sexual encounter did take place. "We believe we have done nothing but to support her," Vance said. ...
The unravelling case against Dominique Strauss-KahnToronto Star
Dominique Strauss-Kahn and the hotel maid turns into a PR battleThe Guardian
Twist in the case sets Strauss Kahn free from house arrestInternational Business Times
The Citizen Daily -BusinessWeek
all 5,837 news articles »

8000 gather for ABATE rally in Algona – Mason City Globe Gazette

8000 gather for ABATE rally in Algona
Mason City Globe Gazette
Glen and Deserea Scholtus, of Freemont, complete in a "Drive By" game on Friday at the ABATE of Iowa Freedom Rally in Algona. ALGONA - The hot and humid weather has kept emergency medical crews busy as more than 8000 motorcycle enthusiasts have ...
Drive by fun at ABATEAlgona Upper Des Moines
Roar of freedomFort Dodge Messenger

all 5 news articles »

Obama’s got that Minus Touch

2nd company visited by Obama goes out of business

by Clifford F. Thies

Obama has done it again. First, he has a hot dog at a Toledo restaurant and, voila, the restaurant goes bankrupt. Next, he goes to a wind turbine manufacturer in Cleveland and, guess what, it too goes bankrupt.

There's a moral in this somewhere. How about this: Bad things happen when the President breaks wind and when he bites his weiner.

Dr. Thies is a professor of economics in Virginia

Republicans draw another district for a black conservative?

From Clifford Thies:

The North Carolina state legislature, which flipped Republican in 2010, has re-drawn the state's Congressional District lines so as to favor Republican candidates. As a result, three or four seats currently held by Democrats are likely to be represented by Republicans after the 2012 elections. No surprise there. But, what really is news is that one of these new Republican-friendly seats appears to be drawn specifically for Vernon Robinson, a prominent black conservative. The former Winston-Salem city councilman resides in Democrat Brad Miller's re-drawn district. The re-drawn district voted 56 percent for McCain in 2008, whereas the old district voted only 40 percent for McCain. In 2006, Robinson, a founding member of the North Carolina Republican Liberty Caucus, finished first in the Republican primary in a heavily-Republican Congressional district that stretched out to the west. He was edged by then state Senator Virginia Foxx in the run-off, who went on to an easy win in the general election.

Robinson's new district is more urban, which should be to his advantage in the primary, as well as sufficiently Republican, to give him the advantage in the general. Following a defeat in 2006, Robinson announced that he would never again run for political office; but, with re-drawn district lines, conditions have changed. This development, the district in Texas drawn for Michael Williams, and our two incumbents, the Party of Lincoln looks to have at least four African Americans in Congress following next year's elections.

They Said That If I Voted For John McCain Illegal Weapons Would Flow Unchecked Across The Southern Border…

...and they were right!

I continue to suspect that a secret program allowing thousands of guns to go from U.S. gun stores to Mexican crime sites was more than coincidentally related to a gun-control campaign from the same administration that was predicated on . . . statements about the flow of guns from U.S. gun stores to Mexican crime sites.

Professor Reynolds is not alone in his suspicion, given the Left's long established pattern of creating a problem and then posing as the saviors. The corruption of the original Operation Fast and Furious into a full-blown smuggling operation ("Gunwalker") appears to fit that pattern, as does the minority report's building a case for expanded gun control legislation and regulation.

What is surprising is the reckless, thundering stupidity behind letting thousands of guns into the hands of an enemy and the expectation that the violent, criminal nature of the fall-out would work to political advantage. What were they thinking?

Gunwalker was especially dimwitted given the Government's betrayal of U.S. Border Patrol Agents Ignacio Ramos and Jose Compean in 2006. In the public's eye, the DOJ, DHS and Federal Government's credibility was reduced to near zero by Assistant U.S. Attorney Debra Kanof, Prosecutor "Johnny" Sutton and President G. W. Bush. Compean and Ramos were aggressively punished for doing their job - a fact not lost on every professional and Federal Agent working the borders and not lost on the entire libertarian and right blogosphere.

Now we have the death of U.S. Border Patrol Agent Brian Terry - and suspicion of cover-ups - a situation that expands the ill-will beyond Federal Agents and the blogosphere to the huge constituency of law-abiding gun owners. (Just think of it as... community organizing for dummies.)

If AG Eric Holder is responsible, his impeachment won't be enough to solve the problems on the borders, but it will make an excellent start.

[Posted by Ran for Eric Dondero]

While The Cat’s Away, Other Bloggers Will Play

We have Eric hidden away in a secret location on the west coast and until we want to let him out, Ran, Tim and I will post articles of our choosing on Libertarian Republican. While Eric is away, the other guys will play.

The story that has gotten little play in the news, at least in what I read, is the Mark Halperin Incident. Honestly, who cares if he called Obama a dick. That doesn't even scratch the surface of his Obamajesty's omnipotence at incompetence. Still, Mark had to know in his mind's eye that even calling The One a dick would get him sentenced to journalist's purgatory, he should have gone the full monty and at least fomented a charge of lese majesté. Asshole would have been closer to the truth although F'ing moron would have been more satisfying. I mean, in for a penny, in for a pound, right?

Next off we have Beck claiming he left with his soul. I mean, who gives a flying eff you see kay? While I applaud his success, I am starting to wonder if he is 15 minutes is up. With the money he's made, he could buy a soul if he lost it at Fox News.

Of course what would a crisis be without the philanderer in chief charging to the rescue? Bill Clinton, the evergreen aw shucks boy from deliverance-land, seems to be always at the ready to save the country from Disaster.

Lastly, we have the 4th of July weekend coming up. One has to wonder if Obama will celebrate this great country of ours and all its 57 states? It's actually much worse than that. Barry doesn't even know how old his kids are. Talk about social promotion. How did this guy get into Harvard? A better question which bears an answer is how did he get in the White House? They can sell, he just can't deliver.

Thank you for reading this blog and Eric will return tomorrow evening.

From CNS: U.S. Designates Israel as Country That Tends ‘To Promote, Produce, or Protect’ Terrorists

From Ran for Eric Dondero:

U.S. Designates Israel as Country That Tends ‘To Promote, Produce, or Protect’ Terrorists; Also Calls Israel Anti-Terror Partner
Wednesday, June 29, 2011
By Edwin Mora

(CNSNews.com) - In an implicit admission that Israel is so threatened by terrorism that it is not only surrounded by countries and territories that produce terrorists but also unwillingly harbors terrorists within its own territory in a way that most other nations in the world do not, the Obama administration is currently listing Israel among 36 “specially designated countries” it believes “have shown a tendency to promote, produce, or protect terrorist organizations or their members.”

Before the anti-Israel noise machine begins the Snoopy-dance, they must observe that Mora's report also notes four other countries that fall into the same category. By sheer coincidence all five (including Israel), though not islamic majority "have had internal problems with radical Muslim terrorists, as reported by the State Department." (One might ask why Britain, France, Spain, Germany, Holland, Canada etc. etc. are not also on the list? We could name a very large country with a Muslim extremist problem as well...)

Tip o' the hat to Lonely Conservative & Maggie's Notebook and thanks to CNS.