Ser ut som ett väldigt bra och lovande verktyg. Det står att det är gratis för “early adopters” men undras hur länge och vad det eventuellt kostar att köra senare. Läs mer på www.webputty.net.
Tag: CSS
Best programming reference sites
On “Ask Slashdot” the readers recently got to answer which their favourite programming reference sites where for different languages. While most of the gems that where posted are quite well known I thought I’d make a quick summery of all the valuable links posted there.
Most languages have recieved at least one link but it’s interesting to see some obscure languages in there while others are not even listed (Visual Basic? educational languages like SmallTalk? and at the time of this writing no reference to either MSDN or Google Code). It’s a good group of links though, many informative pages here for anyone who uses these languages.
These are all the sites that programmers recommended (who else visits slashdot?) in alphabetical order.
Algol
http://www.algol68.org/
C
http://cprogramming.com/
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/
http://www.devshed.com/
C++
http://www.cplusplus.com/
http://www.devshed.com/
http://www.parashift.com/c++-faq-lite/
http://www.sgi.com/tech/stl/
CSS
http://w3schools.com/css/default.asp
FORTH
http://www.phact.org/e/forth.htm
HTML
http://w3schools.com/html/default.asp
Java
http://java.sun.com/
http://java.sun.com/javase/reference/api.jsp
JavaScript
http://developer.mozilla.org/
http://w3schools.com/js/default.asp
Logo
http://el.media.mit.edu/Logo-foundation/logo/programming.html
LUA
http://lua-users.org/wiki/
http://www.lua.org/
http://www.lua.org/manual/5.1/
Lucid
http://www.haskell.org/haskellwiki/Lucid
Pascal
http://www.freepascal.org/docs-html/ref/ref.html
Perl
http://cpan.org/
http://use.perl.org/
http://www.perl.com/
http://www.perlmonks.org/
PHP
http://php.net/
PL/I
http://www.users.bigpond.com/robin_v/resource.htm
Prolog
http://www.logic.at/prolog/faq/faq.html
Ruby
http://ruby-doc.org/core/
http://api.rubyonrails.org/
Python
http://code.activestate.com/recipes/langs/python/
http://python.org/
Scheme (LISP)
http://srfi.schemers.org/
http://www.schemers.org/Documents/Standards/R5RS/
SNOBOL
http://www.snobol4.org/
TCL
http://en.wikibooks.org/wiki/Programming:Tcl
http://tcl.tk/
Multilanguage
http://c2.com/cgi-bin/wiki
http://www.gotapi.com/html
http://www.quickref.org/
http://www.regular-expressions.info/
http://www.rosettacode.org/wiki/Main_Page
Not purely programming but related
http://en.wikibooks.org/wiki/Main_Page
http://mindprod.com/jgloss/unmainprinciples.html
http://www.google.com/ (!)
Not mentioned links, added by me
Google Code
Visual Basic
SmallTalk
MSDN
Google Blueprint CSS tutorial
This is a basic tutorial of the first use of Google Blueprint as a CSS layout.
Download Blueprint CSS
Download the main library att Google Code, at the time of this writing that is the file “Blueprint 0.7.1.zip”.
http://code.google.com/p/blueprintcss/downloads/list
There are three folders in the ZIP-file, first you have the “blueprint” folder which contains the ready to use CSS-files (ie.css, print.css and screen.css). While there are more files in that folder we will only concern ourselves with those in directly in the “blueprint” folder and not subfolders.
I will not go into detail about the two other folders, for your information the “lib” folder contains YAML source for the project and the last folder “tests” contains sample pages you can play around with if you’d like.
Fast reference PDF
There is a nice “cheat page” you can print out from a PDF, this is optional though but I found it very helpfull at least while learning the new classes.
Link the CSS-files
All you need to do is copy the three CSS-files in the “blueprint” folder into a directory of your choice in the main HTTP directory. I assume you put them in a subdirectory simply called “blueprint”. Next you need to link them in the HTML-files where you wish to use them, add the following code:
<link rel=”stylesheet” href=”blueprint/screen.css” type=”text/css” media=”screen, projection”>
<link rel=”stylesheet” href=”blueprint/print.css” type=”text/css” media=”print”>
<!–[if IE]><link rel=”stylesheet” href=”blueprint/ie.css” type=”text/css” media=”screen, projection”><![endif]–>
The first CSS defines how to display the page on normal monitors and projectors. The second file is for printing and the last file, surrounded with an IF condition to only be used by Internet Explorer, is specific instructions for the naughty web browsers that do not follow the standards.
Make a HTML file that uses the Blueprint
I assume you know HTML and CSS so I skip the basics and move straight to the new classes that blueprint offers. Simply put you need an outer DIV of the class “container” that will be the parent object of all others. Inside of this you can decleare HTML code as normal. A real simple first page could look something like this:
<div class=”container”>
<div class=”span-24 last”>
<h1>Hello World</h1>
</div>
</div>
The outer DIV is the container of all objects. The second div defines itself as a “span-24” and “last” class. Span-24 is the max width (950 pixels) and will span the entire area inside the container, last is added to signal this is the final column on this row (it’s also the only so in this case maybe a bit overkill).
Now after this it’s very easy to expand the concept, for example to make a “top headline and under menu + content” layout simply write:
<div class=”container”>
<div class=”span-24 last”>
<h1>Hello World</h1>
</div>
<div class=”span-4″>
The menu
</div>
<div class=”span-20 last”>
The content
</div>
</div>
This still doesn’t solve the more complex aspects of CSS-layout when you need everything to be “just right” but with an overall layout made this easy you can focus on the end tweaking instead of re-inventing the basic wheel everytime you need to make a new design.
Conclusion
The absolute best part about the Blueprint CSS is a “small” feature internally namned “rest.css” which is part of the “screen.css” file. This resets all browser settings to one single setting (Firefox, Internet Explorer etc all have slightly different default values for border, margins, padding etc) making cross platform development much much easier. Secondly, and the acctual main purpose, the ability to easily create new columns and layout modifications really improves start up development time of new designs. While the Blueprint CSS just have very basic settings it’s often these basic settings that screw up every new design I make since I tend to aim a little too high everytime I write a new CSS-class.
CSS layout made easy
While it hurts my nitpicking handcodeing image to admit it, some frameworks are to good to ignore. One of them I found recently in Google BlueprintCSS. It’s a very flexible framework and with a license “you cannot refuse”.
I”ve used to code all CSS and HTML by hand (still!) and it is getting pretty tiresome to stumble over the same defects in every design I make. To pressed for time I’ve never developed a framework of my own, rather just copy and pasted bits and pieces from my old code that I knew was working.
There are many other CSS frameworks out there but somehow I fell for Google Blueprint though I have far from done an extensive testing on them. If anyone have found any other framework very good and flexible please post a comment, I’d love to hear it.