the Education Posse
  • FAQ
  • Login
  • Public

    • Public
    • Groups
    • Recent tags
    • Popular
    • Directory

Conversation:

Notices

  1. Stephen Sekula (steve)'s status on Wednesday, 12-Oct-2016 15:13:07 EDT Stephen Sekula Stephen Sekula
    Remote profile options...
    Some fun tips for writing python code. https://blog.michaelckennedy.net/2016/10/10/pythonic-code-by-example-in-5-videos-video-series/
    Wednesday, 12-Oct-2016 15:13:07 EDT from chirp.cooleysekula.net permalink
    1. Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:15:43 EDT Joshua Judson Rosen Joshua Judson Rosen
      Remote profile options...
      He's a pythonaut after my own heart, but be careful not to follow his examples too literally: a number of them are either counterproductive by the metrics used in the others, or contrary to modern #Python standards.
      Thursday, 13-Oct-2016 23:15:43 EDT from status.hackerposse.com permalink
      1. Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:20:10 EDT Joshua Judson Rosen Joshua Judson Rosen
        Remote profile options...
        @steve, I ♥ !lambda, but they can kill your performance in #Python because there's so much overhead in Python's procedure-call implementation. So #Guido would say you're supposed to use list comprehensions for that stuff at this point.
        Thursday, 13-Oct-2016 23:20:10 EDT from status.hackerposse.com permalink
        1. Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:32:50 EDT Joshua Judson Rosen Joshua Judson Rosen
          Remote profile options...
          @steve, #Guido actually *really* wanted to drop !lambda in #Python 3: https://www.artima.com/weblogs/viewpost.jsp?thread=98196
          Thursday, 13-Oct-2016 23:32:50 EDT from status.hackerposse.com permalink
        2. Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:57:51 EDT Joshua Judson Rosen Joshua Judson Rosen
          Remote profile options...
          @steve, I liked the `don't use lists, use dicts' lesson, but the next step after that for many algorithms is actually `don't use dicts, use sets' ☺ https://www.python.org/dev/peps/pep-0218/
          Thursday, 13-Oct-2016 23:57:51 EDT from status.hackerposse.com permalink
        3. Joshua Judson Rosen (rozzin)'s status on Wednesday, 19-Oct-2016 16:42:33 EDT Joshua Judson Rosen Joshua Judson Rosen
          Remote profile options...
          !lambda: the Ultimate #GOTO: Debunking the 'Expensive Procedure Call' Myth, or, Procedure Call Implementations Considered Harmful http://dspace.mit.edu/handle/1721.1/5753
          Wednesday, 19-Oct-2016 16:42:33 EDT from status.hackerposse.com permalink
        4. Joshua Judson Rosen (rozzin)'s status on Wednesday, 19-Oct-2016 16:46:02 EDT Joshua Judson Rosen Joshua Judson Rosen
          Remote profile options...
          !lambda: the Ultimate #GOTO: Debunking the 'Expensive Procedure Call' Myth, or, Procedure Call Implementations #ConsideredHarmful http://dspace.mit.edu/handle/1721.1/5753
          Wednesday, 19-Oct-2016 16:46:02 EDT from status.hackerposse.com permalink
      2. Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:50:19 EDT Joshua Judson Rosen Joshua Judson Rosen
        Remote profile options...
        @steve, the lambda in things like "lambda w: w.lower()" is also typically superfluous, because you can just pass the *class method* directly, e.g.: sort(…, key=str.lower)
        Thursday, 13-Oct-2016 23:50:19 EDT from status.hackerposse.com permalink
    2. Joshua Judson Rosen (rozzin)'s status on Friday, 14-Oct-2016 12:44:54 EDT Joshua Judson Rosen Joshua Judson Rosen
      Remote profile options...
      Hmm. @steve, I think Chirp dropped all of my responses to you last night: http://status.hackerposse.com/conversation/105211
      Friday, 14-Oct-2016 12:44:54 EDT from status.hackerposse.com permalink

Feeds

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

the Education Posse is a GNU social hub. It runs version 1.1.3-beta3, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All the Education Posse content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.