Simon Willison’s Weblog

Subscribe
Atom feed for programming

151 items tagged “programming”

2012

What are some more glamourous careers a computer programmer can pivot into?

I don’t really know how you would define “glamorous”—personally I prefer a career that’s rewarding, exciting and helps make a difference. On that basis, I’d suggest looking in to data journalism. Computer Programming is most rewarding when you combine it with another discipline. Personally I think using programming to help journalists discover and explain deep truths hidden within large data sets is a fascinating way to make use of those skills.

[... 106 words]

If you were to build homeaway or vrbo from scratch, which software would you use?

HomeAway and VRBO are user-submitted content marketplaces, not traditional content management systems—using a CMS such as Drupal or Joomla would in my opinion be a mistake, as you’ll find yourself spending most of your time writing custom code. The benefits of a CMS will mostly be irrelevant for this application, and you’ll spend a bunch of time coding around their limitations and disabling default functionality that doesn’t fit your purposes.

[... 139 words]

What is a good programming language to learn after bash scripting?

Python is a good natural progression from bash in my opinion. It has an interactive prompt which supports bash-style exploratory programming, and it has libraries that mean it can be applied to an enormous range of problems—everything from game development to scientific computing to web applications.

[... 65 words]

Is there a method to programmatically clear browser cache in JavaScript?

No.

[... 18 words]

Is there any reason for a new programmer to choose C# over VB.NET (or vice versa)?

My understanding is that VB.NET was mainly created to help make existing Visual Basic programmers more comfortable with the transition to .NET

[... 65 words]

2011

Would having a maths degree put you at that much of a disadvantage against a CS student when it comes to jobs?

No. Plenty of the great programmers I know have maths, physics or even literature degrees. Read a couple of classic computer science text books and get some programming projects under your belt and you’ll be fine.

[... 64 words]

What is a good video series on learning Python?

It probably won’t teach you the basics, but we’ve collected 190 videos from conference talks about Python here: http://lanyrd.com/topics/python/...

[... 35 words]

Does one still need to learn C/C++ if one just wants to build web applications?

No—you don’t need any knowledge of C or C++ to get started building web apps—I know plenty of extremely smart and talented web developers who have never written a line of production C in their while careers.

[... 122 words]

What’s the difference between a software engineer, developer and programmer?

Absolutely nothing. Job title differences like those only really matter when working for a large organisation that sets compensation based on title—in which case you want to figure out which title gets you the best deal at that particular company.

[... 58 words]

What are good 2012 Technology Conferences in US for Programmers?

It would help if you were more specific about the kind of programmer you are—there’s a big difference between C++ game developer conferences, Ruby on Rails events, Agile methodology conventions etc. Each developer ecosystem has its own flagship events (for Microsoft developers it’s the BUILD conference, which hasn’t been announced for 2012 yet—for iPhone/Mac developers it’s Apple’s WWDC, Oracle have Oracle OpenWorld, the Rails community has RailsConf, for Django people it’s DjangoCon US and EU, etc).

[... 200 words]

Can someone improve their knowledge of programming in Ruby or PHP by using a framework like Rails or Zend, or does the framework just do a lot of the work for you without giving you an opportunity to learn from it?

Read the source, luke.

[... 82 words]

What programming conferences are in Romania in 2011?

How To Web looked like an excellent conference last year. They haven’t announced dates for 2011 yet but I’d keep an eye on their Twitter account:

[... 79 words]

What conferences should a programmer working in the industry follow?

If I had to pick just one programming-related conference a year, it would probably be OSCON. The maintainers of pretty much every piece of software I use on a daily basis go there.

[... 49 words]

2010

What are some of the best quotations on programming/programming languages?

“There are only two hard problems in Computer Science: cache invalidation and naming things”—Phil Karlton

[... 33 words]

How do you successfully outsource a web application project that is a copy of another website?

You may find that the quality of developers you can hire depends on the quality of the project. Copying another website doesn’t sound like a very interesting project.

[... 50 words]

Why is Java perceived as not cool for startups? We seem to be getting a lot of feedback lately that a startup should be using Ruby on Rails, PHP, Python, etc., if they want to be agile and iterate quickly.

You should re-evaluate your beliefs. Dynamic language programmers spend a great deal of time thinking about code quality and maintainability. TDD (and BDD), which I believe was first popularised within the Ruby community) are extremely widespread, and profiling and debugging tools are widely used and constantly improved. A strong test suite provides far more effective protection against bugs than static typing and an IDE.

[... 152 words]

Why does Python load imported modules separately for different files, unlike C or PHP? Isn’t that inefficient in terms of memory usage?

It doesn’t—you’re misunderstanding how Python’s module system works. If two different places have “import os” in them, the os module is only imported and executed once—it’s cached in the sys.modules dictionary so you can see it happen if you want to. The key thing to understand is that “import os” attaches the os module to the “os” symbol within the current file’s scope, loading it only if it hasn’t been loaded already.

[... 104 words]

What is the best way to maintain a API wrapper class across multiple languages?

1. Use JSON for your API. That takes away a lot of the necessity for an API wrapper, since it means you’re automatically returning native data types (hashes, lists, strings etc) for most programming languages.

[... 175 words]

What are the main weaknesses of Ruby as a programming language?

Ruby still has a cultural tendency towards monkey-patching, aka action-at-a-distance. There are plenty of gems which modify existing classes—sometimes in ways that can break working code.

[... 45 words]

What companies are using Node.js in production in Texas?

There’s a list on this page: https://github.com/joyent/node/w...

[... 23 words]

Is there a way to learn Ruby in one hour?

Not unless you already know a bunch of other languages and are well versed in programming language theory. Even then, that might be long enough to get your head around Ruby syntax and semantics but it will still take weeks or months of study to get truly comfortable with the language idioms.

[... 76 words]

Why do so few companies use the Dojo Toolkit?

Dojo is fantastic software, but it does a lot more than the other libraries and consequently has a much higher learning curve. It’s advanced features may serve as something of a disadvantage for achieving more widespread adoption—most developers don’t need the more advanced abstractions provided by Dojo when they start their projects, and by the time they DO need that stuff they’ve already written a ton of code using another library!

[... 88 words]

What company had the first API?

They weren’t the first to have an API, but Flickr were the first consumer web site that really pushed the concept in my opinion. They originally promoted it as “you can always get your data back if you want to”, but they then greatly benefited from the ecosystem that grew up around it.

[... 65 words]

What is a painless way for a non-Unix programmer to get started learning Unix or GNU/Linux?

I’d suggest getting yourself an Ubuntu virtual machine running on your own laptop—VirtualBox is free, so that’s a good starting point. That way you can play with Linux all you like without fear of breaking anything, since you can always delete the image or roll back to a snapshot.

[... 73 words]

Is it important for modern programmers to know how to use Unix? Why?

I’d say yes. If you do any kind of server-side development, Linux/Unix etc UNIX (links to: /topic/Unix), etc., is where most of the exciting innovation is happening. Tools like HadoopApache Hadoop (links to: /topic/Apache-Hadoop), RedisRedis (links to: /topic/Redis), MongoDBMongoDB (links to: /topic/MongoDB), nginxnginx (links to: /topic/nginx), git etc Git (links to: /topic/Git-version-control-1), etc., all come from a Unix UNIX culture, and not knowing your way around a command line makes it much harder to get to grips with them.

[... 110 words]

Will Redis support per-database persistence configuration?

I don’t know if that’s on the roadmap (you’d need to ask antirez on the mailing list or Twitter), but it should be easy enough to run multiple Redis instances with different settings—especially on a multi core machine.

[... 52 words]

Good design in computer programming consists of inventing abstractions that don’t leak.  Good programming consists of implementing those abstractions in such a way that they don’t leak.

Mike Taylor

# 26th April 2010, 5:42 pm / mike-taylor, abstractions, programming

grammar.coffee (via) The annotated grammar for CoffeeScript, a new language that compiles to JavaScript developed by DocumentCloud’s Jeremy Ashkenas. The linked page is generated using Jeremy’s Docco tool for literate programming, also written in CoffeeScript. CoffeeScript itself is implemented in CoffeeScript, using a bootstrap compiler originally written in Ruby.

# 8th March 2010, 7:27 pm / compilers, javascript, coffeescript, documentcloud, jeremy-ashkenas, docco, literateprogramming, programming, selfhosting, ruby

2009

I think it's really important to know the whole stack even if you don't operate within the whole stack.

Brad Fitzpatrick

# 25th December 2009, 11:31 pm / brad-fitzpatrick, programming

dustin’s gomemcached (via) A memcached server written in Go, an experiment by memcached maintainer Dustin Sallings.

# 13th November 2009, 3:13 pm / dustin-sallings, memcached, go, programming, concurrency