3

Me: 'if you can, favour code that reads like prose. It is easier to understand and maintain'

Junior: myMethod(x.method()) << 5

Comments
  • 0
    The prose of code can really help beginners learn as well. I've found Python really allows for prose with it's English like syntax and lack of variable declaration. You can literally throw out a

    for each_list_of_lists in big_list:
    #these are spaces, not a tab
    this_func(each_list_of_lists)
  • 1
    @sheeponmeth for sure. Same with method chaining in most languages, I.e the jQuery Ajax syntax..

    $.get('/something').done(successHandler);

    Just so immediately obvious what's going on. Another is with Groovy DSLs which I'm a huge fan of when done correctly. Syntax depends on your preference but you can code it to do something like:

    fetch FOOTBALL between '2006-12-10' and '2006-12-30'
Add Comment