We’ve written a book about learning to code
It's 440 pages long and we’ve aimed it especially at people who work in the creative industry but anyone can read it. We called the book “Learn To Code Now” and we really hope you enjoy it.
What’s in the book?
- Foreword by Frank Chimero
- What are all the different programming languages?
- How to pick the right code language for the right job
- Five common mistakes when learning to code
- How to make a website
- Recapping front-end web development
- But how do you write code?
- Wait? The internet and the web are different?
- So why not just build an app?
- Let’s talk about HTML
- Images + file types
- White space + indentation
- Connecting HTML + CSS
- Typography using CSS
- Search engine friendliness + meta tags
- Styling with color
- Blurry backgrounds and retina screens
- CSS parallax effects
- Background gradients
- Hover states + transitions
- Classes in HTML and CSS
- The box model — borders, paddings and margins
- Rounded corners with border radius
- Photoshop-style filters
- Multi-column layouts with floats
- Transparency with opacity and rgba colors
- Drop shadows
- Mobile-friendly designs with media queries
- CSS displays — inline, block and inline-block
- Positioning — fixed, absolute and relative
- Cursors and mouse pointers
- Transforms: rotations, scaling and skews
- Vertical alignment
- Head tags
- Flexbox – complex layouts made easy
- CSS animations with keyframes
- Using steps to animate images
- Forms and inputs
- Audio, video and media
- Video backgrounds
- Web fonts using @font-face
- For loops
- Adding your scripts to your pages
- How to work with jQuery and why?
- jQuery animations
- Fade and transitions with CSS and jQuery
- Timers, intervals and delays
- Progress bar scroll
- Ajax — get and send data after page load
- What is JSON?
- Mouse + touch movements
- Make your own light box
- jQuery plug-ins
- Fixing your own code
- Integration with back-end code and 3rd party services like Squarespace, WordPress and Tumblr
Get the table of contents and three samples
“Hover states and transitions”, “positioning” and “timers and intervals”
Read the book’s foreword
The house where I was raised was an ideal place for our family, except for one serious flaw: the house did not have my parents’ fingerprints on it. So began a constant construction project that lasted almost a decade. Bathrooms were moved and walls knocked down; skylights were installed, had their leaks fixed, then uninstalled for the trouble they caused. My parents removed the attic, raised the ceilings, bought a larger Christmas tree to take advantage of the new vertical clearance, then celebrated the New Year by re-tiling the bathrooms.
One day after arriving home from school, I saw my father hovering over a giant stockpot with wooden strips fanned out over the rim like uncooked spaghetti. He was boiling the planks, he said, to soften them. He’d then slowly form each strip along the curved edge of our built-in bookshelf to use as trim for the semi-circular shelves at the end. My father was taught this method by my grandfather, another amateur furniture maker, and now it was my turn to learn the process. “Pay attention to the wood, follow the grain, and if you take care, the wood will bend and not break,” he said. This was clearly intended to be a life lesson as well as a lecture in woodworking, the kind of practical inheritance that fathers like to provide their sons. Be patient. Be gentle. Got it.
Carpentry didn’t take. Ten years of growing up in a construction zone made me swear off woodworking. (Also, we got a computer the year after my lessons in woodwork. How could I resist?) Instead I design and build software, which has its own methods and tricks, but I still find myself returning to my dad’s lesson. All materials, whether wood or pixels, have a grain, and that grain suggests the best way to work. Go with the grain and one will find sturdiness combined with tremendous flexibility — a natural and exciting give that grounds decisions and excites with possibilities. Work against the grain and the work becomes precarious, difficult and fragile. Instead of the elegant bending that software requires to adjust to different screens, uses, and situations, the work breaks because it cannot adapt.
“Good work is grounded in attention to detail, and knowledge of and respect for the materials.”
This idea of a grain, however, flies in the face of our expectations for technology. Software is often presented as a wide-open, infinitely malleable material. We expect technology to help us overcome limitations, not produce more of them. Can’t I do what I want? Only to an extent.
We use teak for outdoor furniture because it is weather resistant. We use white pine for wood carving because it is soft. These kinds of rationale also go for designing software. On screen, we use flat colors and simple gradients, because they’re lightweight, easy to programatically draw, and can scale for areas of varying proportions. Sites have horizontal stripes of content stacked vertically, because that is how we read, and it is easier for most users to scroll vertically than horizontally. All of these design choices come from a knowledge of the materials at hand. What is the grain of software? It has to do with fluidity. People who work on software create flexible systems that can deal with variability: content of varying lengths, connections of different speeds, users with many kinds of ability and attention span. What does the page look like if it is empty? If it is full? And every possibility in between on a mobile device? Working with software is never designing towards a fixed artifact like a chair or book. Instead, it is defining and designing conditions for a whole set of possibilities.
You will make mistakes. Things won’t work. But you will be in good company. We all get it wrong on the first, second, even third tries, no matter how much experience we have. Getting your hands on the materials is a learning process for all of us. We feel the grain and discover the contours of the problem we are to solving, and revise when our efforts don’t work quite as expected. Luckily, code and pixels are free, so your trials and errors should be less expensive than the considerable amount of lumber I’d waste if I ever took up woodworking.
My father never fully understood what I did for a living, but we could always find common ground in craftsmanship. Good work is grounded in attention to detail, and knowledge of and respect for the materials. The more experience I gain, the more this proves itself. Pay attention, respect the material, listen to how it guides you, and be gentle. You’ll be surprised by what you can do and how flexible it all can be.
Everything you need to build a website from scratch…
Introducing the SuperHi Editor — an intelligent code editor, designed to make coding easier.
At SuperHi, not only do we teach people how to code. We design and create products that rethink how people should code.
The SuperHi Editor is a code editor, designed from scratch, that hosts all your files in one place and publishes your sites to the web with the click of a button. Get quick tips like spellcheck and color selection while you type. Any questions? Ask Wilson, our AI-powered assistant, and get answers right in the editor.