S.Lott -- Software Architect
  • Other Articles
  • Publications
  • S.Lott Biography

Probabilistic Data Structures

Date Tue 04 June 2019 Tags data structure / algorithm / #python

Interesting data structures with O(n) performance. This can help to unscramble O(n²) problems allowing progress. https://pdsa.readthedocs.io/en/latest/index.html

more ...

Rules for Debugging

Date Tue 28 May 2019 Tags passive-aggressive programmer / Programming Languages
Here's the situation.
Someone wrote code. It didn't do what they assumed it would do.
They come to me for help.
Here are my rules for debugging. All of them.
1. Try something else.


I don't have any other or more clever advice. When I look at someone's broken code …
more ...

Hacker Laws

Date Tue 21 May 2019 Tags Design Principles

Pretty funny: https://github.com/dwmkerr/hacker-laws

more ...

PyCon 2019

Date Tue 14 May 2019 Tags pycon / #python

There are some things I could say.

But.

You can come to understand it yourself, also.

Go here: https://www.youtube.com/channel/UCxs2IIVXaEHHA4BtTiWZ2mQ

Start with the keynotes. https://www.youtube.com/channel/UCxs2IIVXaEHHA4BtTiWZ2mQ/search?query=keynote

For me, one of the top presentations was this https://www.youtube.com …

more ...

Fiction Writers and Query Letters

Date Tue 07 May 2019 Tags #python

See http://flstevens.itmaybeahack.com/writing-world-building-and/ for some back-story on F. L. Stevens and the need to write a *lot* of query letters to agents for fiction. (The non-fiction industry is entirely different; there are acquisition editors who look for technical contributors.)

There's a tiny possibility of a Query Manager …

more ...

PyLit-3 Maintenance, Love and Care

Date Tue 09 April 2019 Tags literate programming / PyLit / #python

The PyLit tool dates from 2009. Here's a historical reference: http://wiki.c2.com/?PyLit It was Python 2. It had some minor problems. I forked it and cleaned it up for Python 3. Then I set it aside for a few years (six or so.) Dusting it off. Rearranging …

more ...

Python and pathlib and Windows -- this problem has been solved -- and yet...

Date Tue 26 March 2019 Tags windows / #python
The Passive-Aggressive Programmer strikes again. A sad story of sadness.
I tell everyone to stop using os.path and use pathlib. Everyone. Here's the link: https://docs.python.org/3/library/pathlib.html
It's essential to realize the semantic richness of OS filesystem paths. They're not simply strings. They have …
more ...

Don't Solve My Problem.

Date Tue 19 March 2019 Tags Design Principles

Two and a half examples of "Don't solve the problem I described. Provide the implementation I dream about."

Can't Use Enums for Constants

I was asked to see this because sometimes there's just too much abstraction https://stackoverflow.com/questions/2668355/how-much-abstraction-is-too-much

The accepted answer links to some useful design …

more ...

Python's multi-threading and the GIL

Date Mon 18 March 2019 Tags dask / #python / multiprocessing / threads

Got this in an email.

"Python's multi-threading module seems not efficient because of the global interpreter lock?"

Yep.

Is the trick is to use "Thread-Local Data"?

Nope.

It Gets Worse

Interestingly, there was no further ask. The questioner had decided on thread-local data because the questioner had decided to focus …

more ...

Python exceptions considered an anti-pattern

Date Tue 05 March 2019 Tags #python / functional programming

https://sobolevn.me/2019/02/python-exceptions-considered-an-antipattern While eloquent and thorough, I remain unconvinced that this is a significant improvement over try/except. It's common enough in some functional languages to have strong support and a long, successful history. I think it replaces one problem with another. It's not a "solution …

more ...

  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • »
  • Social

    • Mastodon
    • Github
    • StackOverflow
    • LinkedIn
    • O'Reilly
    • Amazon
  • Categories

    • Architecture & Design
    • Books
    • FOSS
    • Management
    • News
    • Python
    • Technologies
  • Links

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • October 2024 (1)
    • June 2023 (2)
    • May 2023 (1)
    • April 2023 (2)
    • March 2023 (1)
    • February 2023 (4)
    • January 2023 (3)
    • December 2022 (3)
    • November 2022 (8)
    • October 2022 (1)
    • September 2022 (1)
    • August 2022 (3)
    • July 2022 (4)
    • June 2022 (3)
    • May 2022 (2)
    • April 2022 (1)
    • March 2022 (1)
    • February 2022 (3)
    • January 2022 (3)
    • December 2021 (3)
    • November 2021 (2)
    • October 2021 (2)
    • September 2021 (5)
    • August 2021 (5)
    • July 2021 (4)
    • June 2021 (2)
    • May 2021 (1)
    • April 2021 (2)
    • March 2021 (1)
    • February 2021 (2)
    • January 2021 (1)
    • December 2020 (1)
    • November 2020 (2)
    • October 2020 (3)
    • September 2020 (1)
    • August 2020 (2)
    • July 2020 (1)
    • June 2020 (1)
    • May 2020 (1)
    • April 2020 (3)
    • March 2020 (1)
    • February 2020 (3)
    • January 2020 (4)
    • December 2019 (5)
    • November 2019 (4)
    • October 2019 (3)
    • September 2019 (2)
    • August 2019 (1)
    • July 2019 (2)
    • June 2019 (4)
    • May 2019 (4)
    • April 2019 (1)
    • March 2019 (4)
    • February 2019 (1)
    • January 2019 (7)
    • November 2018 (2)
    • October 2018 (2)
    • September 2018 (2)
    • August 2018 (3)
    • July 2018 (4)
    • May 2018 (3)
    • April 2018 (2)
    • March 2018 (4)
    • February 2018 (2)
    • January 2018 (3)
    • December 2017 (3)
    • November 2017 (3)
    • October 2017 (4)
    • September 2017 (4)
    • August 2017 (4)
    • July 2017 (4)
    • June 2017 (6)
    • May 2017 (6)
    • April 2017 (6)
    • March 2017 (5)
    • February 2017 (4)
    • January 2017 (4)
    • December 2016 (2)
    • November 2016 (5)
    • October 2016 (4)
    • September 2016 (5)
    • August 2016 (5)
    • July 2016 (2)
    • June 2016 (5)
    • May 2016 (1)
    • April 2016 (2)
    • March 2016 (3)
    • February 2016 (3)
    • January 2016 (2)
    • December 2015 (5)
    • November 2015 (4)
    • October 2015 (6)
    • September 2015 (4)
    • August 2015 (3)
    • July 2015 (4)
    • June 2015 (5)
    • May 2015 (3)
    • April 2015 (3)
    • March 2015 (5)
    • February 2015 (4)
    • January 2015 (4)
    • December 2014 (6)
    • November 2014 (2)
    • October 2014 (4)
    • September 2014 (2)
    • August 2014 (1)
    • July 2014 (3)
    • June 2014 (4)
    • May 2014 (4)
    • April 2014 (3)
    • March 2014 (5)
    • February 2014 (3)
    • January 2014 (3)
    • December 2013 (2)
    • November 2013 (2)
    • October 2013 (5)
    • September 2013 (4)
    • August 2013 (2)
    • July 2013 (4)
    • June 2013 (9)
    • May 2013 (8)
    • April 2013 (6)
    • September 2012 (2)
    • August 2012 (1)
    • July 2012 (3)
    • June 2012 (7)
    • May 2012 (8)
    • April 2012 (2)
    • March 2012 (7)
    • February 2012 (7)
    • January 2012 (9)
    • December 2011 (7)
    • November 2011 (4)
    • October 2011 (6)
    • September 2011 (5)
    • August 2011 (1)
    • July 2011 (5)
    • June 2011 (6)
    • May 2011 (8)
    • April 2011 (1)
    • March 2011 (7)
    • February 2011 (1)
    • January 2011 (8)
    • December 2010 (7)
    • November 2010 (7)
    • October 2010 (5)
    • September 2010 (10)
    • August 2010 (3)
    • July 2010 (3)
    • June 2010 (6)
    • May 2010 (5)
    • April 2010 (10)
    • March 2010 (13)
    • February 2010 (7)
    • January 2010 (12)
    • December 2009 (4)
    • November 2009 (7)
    • October 2009 (11)
    • September 2009 (9)
    • August 2009 (8)
    • July 2009 (11)
    • June 2009 (9)
    • May 2009 (14)
    • January 2009 (2)
    • December 2008 (1)
    • November 2008 (1)
    • April 2008 (2)
    • March 2008 (1)
    • February 2007 (1)
    • January 2007 (3)
    • December 2006 (3)
    • October 2006 (1)
    • July 2006 (1)
    • June 2006 (1)
    • April 2006 (1)
    • March 2006 (1)
    • October 2005 (1)
    • February 2004 (2)
    • December 2003 (3)
    • November 2003 (3)

© 2024 S.Lott · Powered by pelican-bootstrap3, Pelican, Bootstrap

Back to top