Simon Willison’s Weblog

Subscribe

Items tagged webdevelopment in 2013

Filters: Year: 2013 × webdevelopment × Sorted by date


Is it worth it for an aspiring web developer in NYC to attend the San Francisco Startup Jobs Fair in November? What I mean is what are my chances that a company would be interested in me, allowing that my code skills are up to snuff, if I don’t live ...

Not being in SF already is no problem at all—demand for talented developers is crazy high, so provided you are a great developer the fact you would need to relocate won’t be a barrier.

[... 142 words]

What is the most succinct definition of a JavaScript callback, being more elaborative than simply “A function that calls another function.”?

A way of saying “once you’ve finished doing this, do that”.

[... 38 words]

How can I get access to the PHP script of websites like Dropbox?

If a website doesn’t deliberately publish its server-side code (some sites like reddit do this, but it’s pretty rare) then you won’t be able to see it. You can search for an open source clone but these will often be pretty low quality—the smartest open source developers tend to work on libraries that solve common problems rather than putting their efforts in to building complete clones of existing sites.

[... 175 words]

What are the best ways to get traffic to my SAAS project management app?

At your stage you won’t be able to get meaningful paying customers from regular web traffic. You need to be building up your customer base manually, one at a time, through a high touch sales process.

[... 233 words]

What is the best service for web hosting and buying a domain? Is it better to have both under one provider?

No, it’s not better to have both under the same provider. Good web hosts do not necessarily make good DNS hosts and vice versa.

[... 51 words]

Should you start with planning the view, the model or the controller?

My preference is to start by designing the URLs, then roughing out the first version of the database models. Everything else tends to evolve from there.

[... 44 words]

How does a career progresses for a web developer?

A web developer is a software developer, so you should look in to how software development careers work.

[... 207 words]

What are some techniques, workflows, thought-processes etc. you would do as an experienced web-developer (front-end/back-end) that a new web developer might benefit from?

Learn the Chrome Developer Tools inside out, and live in them—especially the interactive JavaScript console, which can be a huge boon to your productivity.

[... 56 words]

Should a beginner to web development start out with Node.Js?

Maybe. One of the things I like about Node.js is that the raw abstraction it provides over HTTP is much closer to how the actual protocol works than the abstractions provided many of the more widely used frameworks such as PHP, Django or Rails. That might actually make it an effective learning tool—I’d be interested in hearing from some web developers who learnt Node.js as their first server-side technology.

[... 87 words]

Which tools top technology companies use to create complex web pages e.g Amazon Home Page, Facebook etc? Do they create it manually or use some tool like Dreamweaver ?

The code (HTML/CSS/JavaScript) will be written by hand, usually by a large team of people who have evolved it over several years. They’ll be working with some kind of server-side technology as well, usually involving a templating language.

[... 110 words]

How can you run image processing in cloud code (Parse) ? If parse is not the best

There are dozens of web-based image resizing APIs that could help with this. Check out http://www.imgix.com/ for example.

[... 42 words]

Is there a way for a user of a site (no database) to add their own notes to a webpage, so when they return (regardless of the device), their notes are shown?

There have been plenty of attempts at building web annotation systems like this in the past—I actually built one for my final year university project a decade ago—but they all suffer from the same problem: web pages change, and once they have changed the annotations may no longer be attached to the right place in the document.

[... 180 words]

What are good ways to rewrite a social network and still keep old users?

Don’t rewrite. If you’re going for a major overhaul, do it in as many small steps as possible. Massive rewrites are a great way to completely kill all forward motion on your product.

[... 53 words]

How long should I budget for an experienced designer to design a responsive ecommerce store?

There’s no single answer to this—it depends on the scope of the project. A one-page store selling 3 items is quicker to design than a thousand page store with dozens of category homepages etc.

[... 87 words]

How are you gonna solve when the user has a gender issue?

Don’t ask for gender at all, or if you do make the field optional or provide a text field that the user can put anything they like in.

[... 46 words]

Can I pitch my app idea to google?

You could pitch it to Google Ventures, but you’ll need a lot more than just the idea.

[... 31 words]

Are there any alternatives to CGI for web servers?

Yes. CGI stopped being relevant around the turn if the century! Many languages can be embedded in web servers now (mod_php, mod_python, mod_perl for Apache etc), there’s the FastCGI protocol which allows web servers to communicate with external processes without needing to start a brand new process for every request, and it’s also common these days to run an HTTP server written in the same language as your application and proxy requests to it—Unicorn, gunicorn, Jetty are all examples of this.

[... 98 words]

What are the different ways in which web sites can be developed?

There are a few languages that provide an alternative syntax that compiles to HTML (Haml is quite a popular one) but generally you need to have a very good understanding of HTML in order to do any web development at all, no matter what server-side technology you use. Likewise for CSS—Sass and LESS provide alternative syntax that compiles to CSS, but they are no replacement for understanding how CSS actually works.

[... 94 words]

Why aren’t there any popular web frameworks in C/C++ even though they are more performance intensive languages?

Because it’s very hard writing secure code in them due to the way they handle memory management, and web applications have an enormous number of potential paths for malicious input. It’s much easier to write secure web application code in a higher level language (which isn’t to say it’s easy at all even then).

[... 77 words]

What is the difference between Windows and Linux for web hosting, in other words, what are the pros and cons of each, each’s limitations, performance development environment and deployment between Windows and Linux?

Any and every operation you perform on a Linux server can be trivially automated by copying the commands you ran in to a text file. I haven’t managed a Windows server in years and I hear PowerShell is pretty great these days but an OS based around a GUI is always going to be harder to automate than one based around a command line.

[... 156 words]

Do I need to change something on my LIVE website to do Remote usability testing? Am I needed to create a duplicate copy of my website?

You should be able to run a working copy (potentially with fake data or a subset of your production data) on your laptop, for development purposes. You can use the same setup for usability testing new features.

[... 96 words]

Does creating a zip file with php use more RAM then CPU? Or vise versa? Also, is it faster to use a system call, or the php zip library? Exec (zip filename.zip) vs. $zip =new ZipArchive().

You can find out the answer yourself using a very simple benchmark—just call time() before and after each option and loop them a few thousand times to calculate an average.

[... 74 words]

How do professionals build and maintain their websites?

The HTML and CSS for large, professional websites is usually written by hand, in a text editor. Tools like Dreamweaver are avoided by most skilled web developers.

[... 69 words]

I have an idea for a website, with an idea for eventually having cashflow out of it? However, my skills are insufficient to build it and I have no money at all to hire someone—what’s my best starting point?

You either need to learn some skills, or you need to earn some money. Sadly, having a good idea is not enough—you need to be able to execute it as well.

[... 80 words]

What are the good practices to design responsive emails compatible with all email clients?

The biggest challenge for any kind of email design is definitely testing. We’ve had great experiences using Litmus for testing—it shows you what your email looks like in dozens of different webmail providers and mobile devices.

[... 59 words]

What technologies were used in developing web applications in the ’90s?

Perl. Lots of Perl. There was a site called Matt’s Script Archive which was full of terribly written Perl scripts for things like hit counters and form emailers and guest books. It was very popular.

[... 59 words]

Is there an alternative to media queries for responsive design?

Yes: use percentage measurements for your layout components. That way you can build a website that works on a much larger range of screen sizes. You can combine this approach with media queries—for example, you could specify that your site has a 25% wide navigation menu and a 75% wide content area on devices that are wider than 400px, but any smaller than that and it collapses to a single column layout with the menu hidden and accessible only through a menu bar icon.

[... 102 words]

What advice would Simon Willison give to a beginner Python/Django developer?

Build something and put it on the internet. Make sure you have an easy way to deploy new versions (Heroku is a good bet if you don’t want to figure out Fabric). Pick a project that’s useful to you—a simple blogging engine is often a good bet, or maybe something that aggregates together your posts from Twitter and Instagram and so on. Or come up with something a bit more creative!

[... 109 words]

How is Web engineering related to Software engineering?

I’d describe it as a subset of software engineering that deals with issues relating to the web—web application development, web protocols, browsers and so on.

[... 41 words]

What are useful tools for building out web app Infrastructure?

First, make sure you know your way around a command automation tool, such as Fabric (Python) or Capistrano (Ruby).

[... 63 words]