Hacker Poesy
  • 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
    • Joshua Judson Rosen likes this.
    • Joshua Judson Rosen repeated this.
    • Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:15:43 EDT Joshua Judson Rosen Joshua Judson Rosen
      • Stephen Sekula
      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 permalink
    • Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:20:10 EDT Joshua Judson Rosen Joshua Judson Rosen
      • Stephen Sekula
      • The λ-Calculus
      @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 permalink
    • Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:32:50 EDT Joshua Judson Rosen Joshua Judson Rosen
      • Stephen Sekula
      • The λ-Calculus
      @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 permalink
    • Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:50:19 EDT Joshua Judson Rosen Joshua Judson Rosen
      • Stephen Sekula
      @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 permalink
    • Joshua Judson Rosen (rozzin)'s status on Thursday, 13-Oct-2016 23:57:51 EDT Joshua Judson Rosen Joshua Judson Rosen
      • Stephen Sekula
      @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 permalink
    • Joshua Judson Rosen (rozzin)'s status on Friday, 14-Oct-2016 12:44:54 EDT Joshua Judson Rosen Joshua Judson Rosen
      • Stephen Sekula
      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 permalink
    • Joshua Judson Rosen (rozzin)'s status on Wednesday, 19-Oct-2016 16:46:02 EDT Joshua Judson Rosen Joshua Judson Rosen
      • The λ-Calculus
      !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 permalink

Feeds

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

Hacker Poesy 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 Hacker Poesy content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.