Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Chris Warburton (warbo)

  1. Chris Warburton Chris Warburton

    Of course, using strings as functions is giving in to PHP's braindamage. Much better to just use nice higher-order functions.

    about 18 days ago from Emacs Identica-mode
  2. Chris Warburton Chris Warburton

    How about "if (in_array($f, array('foo', 'bar', 'baz'))) return call_user_func($f);"

    about 18 days ago from Emacs Identica-mode
  3. Chris Warburton Chris Warburton

    Code smell of the day: "switch ($f) { case 'foo': return foo(); case 'bar': return bar(); case 'baz': return baz(); }"

    about 18 days ago from Emacs Identica-mode
  4. Chris Warburton Chris Warburton

    Really nice 64K demo "Turtles all the way down" http://ur1.ca/diqwk Probably won't run on my A1200 though :P

    about 24 days ago from Emacs Identica-mode
  5. Chris Warburton Chris Warburton

    For example I can assert a page's title is foo by "$this->assertTitle('foo')" or bar by "$this->assertTitle('foo')" but not 'foo or bar' :(

    about a month ago from Emacs Identica-mode
  6. Chris Warburton Chris Warburton

    Found myself wanting higher-order assertions just now; then realised that's just Boolean logic on the conditions. Give me the conditions!

    about a month ago from Emacs Identica-mode
  7. Chris Warburton Chris Warburton

    TFW security updates break your unit tests

    about a month ago from Emacs Identica-mode
  8. Chris Warburton Chris Warburton

    I find it ironic that !PHP has strlen/count, strpos/array_search, etc. while !Haskell has length, elemIndex, etc. :P

    about a month ago from Emacs Identica-mode
  9. Chris Warburton Chris Warburton

    Mocking SimpleTest with Drupal's SimpleTest, so I can use SimpleMock. I'm having quite a meta day :P

    about a month ago from Emacs Identica-mode
  10. Chris Warburton Chris Warburton

    EShell has just become even more fantastic

    about a month ago from Emacs Identica-mode
  11. Chris Warburton Chris Warburton

    Just figured out how to "ssh user@host" then "sudo -u root" using TRAMP in Emacs. Tweaked "recommended for Ubuntu" from http://ur1.ca/dfelo

    about a month ago from Emacs Identica-mode
  12. Chris Warburton Chris Warburton

    Annoyed that this API requires my array indices to include the string "indexes" >:(

    about a month ago from Emacs Identica-mode
  13. Chris Warburton Chris Warburton

    Compiling is definitely the most tedious thing to do on my XO-1 :P

    about a month ago from Emacs Identica-mode
  14. Chris Warburton Chris Warburton programming

    Why is the world full of 'setTimeout("x();", y);' and 'function() { return x(); }' but not 'x = parseInt("10")' or 'x = 10 * 1' !programming

    about a month ago from Emacs Identica-mode
  15. Chris Warburton Chris Warburton

    Trying to fix an app which overwrites its database on every request, but gets data from OAuth. Every user is clobbering everyone else! #WTF

    about a month ago from Emacs Identica-mode
  16. Chris Warburton Chris Warburton PHP

    Except for list(), probably the worst set of answers I've ever seen on StackOverflow http://ur1.ca/d9i4q !php

    about a month ago from Emacs Identica-mode in context
  17. Chris Warburton Chris Warburton programming

    Just had a look at rust-lang.org . Seems like a modern ML dialect, with C-like syntax. Pretty nice. !programming

    about a month ago from Emacs Identica-mode
  18. Chris Warburton Chris Warburton

    PHPdoc -> "@return string HTTP Response Code." method body -> "return (int) $this->responseHttpCode;" #DocFail

    about a month ago from Emacs Identica-mode
  19. Chris Warburton Chris Warburton

    Pet peeve: Negative conditionals which have "else" branches: "if (!a) { ... } else { ... }".

    about a month ago from Emacs Identica-mode
  20. Chris Warburton Chris Warburton Python , Todd Howe

    @tehowe Javascript is pretty nice, if you steer clear of exceptions, switch, new, for, with and globals (functions are your friends) !python

    about a month ago from Emacs Identica-mode
  • Before

User actions

  • Subscribe
  • List
Chris Warburton

Chris Warburton

Sheffield, Yorkshire, UK

http://chriswarbo.net

I'm a Free Software hacker & developer at WANdisco Inc.

Tags
  • #freesoftware
  • #jabber
  • #php
  • #python
  • #rdf
  • #sheffield
  • #uk
  • #xmpp

Site notice

Identi.ca is converting to pump.io on 1 June 2013

Following 42

  • One Laptop per Child olpc
  • Arne Babenhauserheide arnebab
  • tony dobson metaltony
  • Steve Jarvis stevejarvis
  • Martyn Eggleton stretch
  • Tim Berners-Lee timbl
  • Open Rights Group orgnewsupdates
  • Open Rights Group openrightsgroup

Followers 117

  • David Chiles netiquette
  • occhris occhris
  • boneidol boneidol
  • Manchester Open Rights Group orgmanchester
  • Samuel Schmid weltenschmid
  • Jonathan Samsone feelgoodtime
  • Luis Scalfani luisscalfani81
  • Anaokulu anaokulu

Groups 44

  • XMPP and the XSF xmpp
  • Ubuntu users ubuntu
  • Debian debian
  • Manchester Free Software mfs
  • Git git
  • Python python
  • Linux linux
  • KDE kde

Lists 8

    xmpp , uk , sheffield , rdf , python , php , jabber , freesoftware

Statistics

User ID
38451
Member since
5 Feb 2009
Notices
2038
Daily average
1

Feeds

  • Activity Streams
  • RSS 1.0
  • RSS 2.0
  • Atom
  • FOAF
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by E14N. It runs the StatusNet microblogging software, version 1.1.0-release, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal