Skip to content

Instantly share code, notes, and snippets.

@ChristinaMeno
Created July 12, 2011 17:39
Show Gist options
  • Save ChristinaMeno/1078512 to your computer and use it in GitHub Desktop.
Save ChristinaMeno/1078512 to your computer and use it in GitHub Desktop.
>>> thing = type('name', (object,), {'hello':'hello world'})()
>>> thing.hello
'hello world'
class name(object):
hello = 'hello world'
@datagrok
Copy link

  • (Is he a hardliner unable to adapt?) Do you have any particular patterns or styles that you just can't live without and think everyone should use?

  • Can you describe how you approached the project, any design decisions that you had to throw out?

  • What's something that really excites you, or bothers you, about the state of software, or software development, or emerging trends in technology these days?

  • What does this do? Or: "rewrite this in a more traditional way using 'class', 'def', and 'return', and without using 'lambda' or 'type'"

    type('blah', (object,), {'foo': lambda x, y: '%s %s' % (x, y)})().foo('bar')
    
    class blah(object):
        def foo(self, y):
            return '%s %s' % (self, y)
    blah().foo('bar')
    

@ChristinaMeno
Copy link
Author

What is clean code?

How do you debug code?

What is the hardest bug you've ever solved?

How would you estimate the number of cups of tea consumed on our office per day?

@ChristinaMeno
Copy link
Author

Tell me about you choice for TTT state representation.

What don't you like about your TTT implementation?

If you had more time what would you change?

How would you write a test to prove that your TTT never loses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment