What they didn't tell me about Python...

What they didn't tell me about Python...

Data model and other concepts

I've been programming Python for a few years, and during the last month of my Pythonic journey, I've come across many high-points.
Some of these begin with popping the hood and looking in.
While Python acts very differently from statically-typed compiled languages (I'm thinking C/C++ or Java), the basic mechanisms are all there.
Here are some of my recent favourites:

  • So you know to override __init__(self), but there are so many other special methods that tutorials never really cover!
    __new__, __del__, __lt__, __eq__, __hash__,  __str__,  __getattr__, descriptors, type emulation (e.g. __call__) and on and on...
  • I constantly use Closures in Python, without even thinking about it. This is the kind of thing that makes Python arguably the most intuitive programming language for it's power.
  • I think James Powell should revive his blog of two years ago, where he stopped in the midst of a wonderful series on implicit 'self' in Python. Who's with me?
  • Thousands of code recipes, hosted by ActiveState. Who needs the book?

Application

You know that "acts very differently" I mentioned? Here's what it's useful for -- making fantastically complicated computation look ridiculously straight-forward.

  • @Michael Halls-Moore of @QuantStart.com uploaded an amazingly accessible article which exemplifies the ease of use of Python to scrape and store market data.
    I highly recommend it for anyone looking to fool around with such things, or just as another Pythonic tour de force.
    This is a couple of years old, mind you.
  • @Eli Bendersky puts out some amazingly easy-to-follow pieces like this one, about harnessing the GPU. Dated 3 and a half years ago, but very relevant.
  • SciPy 2015: Scientific Computing with Python Conference
    playlist courtesy of @Enthought

If any of these help anyone, I'd love to hear it!

Yuval Herziger

Senior Consulting Engineer at MongoDB

9 年

I had some time to play with Django recently, and I find it so much stronger than other WebDev frameworks I've tested. Combine it with NodeJS and you've got a beast, can't wait to dive deeper into Python.

回复

要查看或添加评论,请登录

Inon S.的更多文章

  • A periodic path through leadership development

    A periodic path through leadership development

    So great to be hands-on again! After a turbulent first half to 2019, with equal parts development leadership and…

    2 条评论
  • Not falling victim to some of the classic blunders

    Not falling victim to some of the classic blunders

    I recently came across an article by Navot Volk called "How to filter marketing fluff from startups' AI promises"…

    2 条评论
  • Data Science Summit 2018

    Data Science Summit 2018

    (Originally an L4B Automotive company blog post) It's apparent that Deep Learning (DL) has reached a level of maturity…

    2 条评论
  • Autonomous car benchmarks

    Autonomous car benchmarks

    I'm composing a non-comprehensive list of autonomous car benchmarks. I'll be glad to hear of any relevant ones I'm…

    7 条评论
  • ML diagnostics (stolen from a thief)

    ML diagnostics (stolen from a thief)

    The broad subject of machine learning diagnostics has already been heavily promulgated by Andrew Ng, for example in his…

  • Joel's Test for Data Science Teams

    Joel's Test for Data Science Teams

    I came across this HN post from nearly a year ago. It stems from a "thinly veiled sales pitch for a 'data science…

    6 条评论
  • Only choice positions left to work with me at YouAppi!

    Only choice positions left to work with me at YouAppi!

    @YouAppi is the fastest growing start-up company is Israel, according to the last @Deloitte ranking. Now after series…

  • Practical lessons in applying Data Science & Machine Learning (HTML5 presentation)

    Practical lessons in applying Data Science & Machine Learning (HTML5 presentation)

    A few days ago I published an HTML5 presentation I made of some of the Practical lessons in applying Data Science &…

  • Where will Spark MLlib head next? Ask AMPLab

    Where will Spark MLlib head next? Ask AMPLab

    How much of Apache Spark MLlib is just parts of AMPLab's Berkeley Data Analysis Stack (BDAS)? Of whatever's left, how…

    4 条评论
  • Come work with me at YouAppi!

    Come work with me at YouAppi!

    @YouAppi is the fastest growing start-up company is Israel, according to the recent @Deloitte ranking. Now after series…

社区洞察

其他会员也浏览了