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

Functional SQL in Pure Python

Date Tue 16 July 2024 Tags SQL / project / functional programming / functional python programming

I've published a framework for doing SQL-like programming in Pure Python -- no database required.

Here: https://github.com/slott56/functional-SQL. See the functional-SQL documentation.

This allows us to transform SQL:

SELECT n.name, v.c2
FROM names_table n, values_table v
WHERE n.code = v.c1

To pure Python:

Select(name …
more ...

Functional Python and Lambdas

Date Fri 09 February 2024 Tags functional programming / functional python programming

I saw a confusing post on https://fosstodon.org.

I won't link to it, but I will quote it because it repeats some common misconceptions.

I have some iterator chain (in reality longer and more complex than this example).
And now in one or more steps, I need to add …
more ...

Functional Programming and Finite State Automata (FSA)

Date Tue 29 November 2022 Tags functional python programming / software design / #python

When I talk about functional programming in Python, folks like to look for place where functional programming isn't appropriate. They latch onto finite-state automata (FSA) because "state" of an automata doesn't seem to fit with stateless objects used in functional programming.

This is a false dichotomy.

It's emphatically false in …

more ...

Generators as Stacks of Operations

Date Tue 15 November 2022 Tags #python / functional python programming / generator functions

See https://towardsdatascience.com/building-generator-pipelines-in-python-8931535792ff

I'm delighted by this article.

I was shown only the first, horrible, example. I think the idea was to push back on the idea of complex generators. I fumed.

Then I read the entire article.

Now I'm fuming at someone who posted the first example …

more ...

Some Functional Programming in Python material

Date Tue 25 October 2022 Tags #python / functional python programming / tail call optimization

This is bonus content for the forthcoming Functional Python Programming 3rd edition book. It didn't make it into the book because -- well -- it was just too much of the wrong kind of detail.

See this "Tough TCO" document for some thoughts on Tail-Call Optimization that can be particularly difficult. This …

more ...

A Python Roadmap

Date Tue 06 July 2021 Tags object-oriented programming / functional python programming / #python

An interesting tweet. The roadmap has three sections. I'm not sure this is actually complete, or even grouped correctly. It is a very good list of topics.

https://twitter.com/prasoonpratham/status/1408435475426254849?s=11

"Here's a complete roadmap of topics to master Python."

The thread, however, seems no longer …

more ...

"Python doesn’t do tail recursion" -- wait, what?

Date Sat 07 November 2020 Tags #python / functional python programming

Yes, that's what the email said.

I was -- well -- shocked. Too shocked to be polite. Content Warning: much snark follows.

BLUF: Tail Recursion is not Tail Recursion Optimization.

Eventually, it became clear they were worried about tail recursion optimization. Maybe I'm too focused on words, but I think words matter …

more ...

Patreon Book Idea

Date Tue 07 January 2020 Tags functional python programming / #python

See "Additional, Related Content". It's one of the posts here: https://www.patreon.com/slott.

I think there's space for a Building Skills in Functional Python title next to the Building Skills in OO Design.

more ...

Plannng a Linked-in Learning Course (and using the := walrus operator)

Date Tue 17 December 2019 Tags #python / functional python programming / Data Science

I've recorded two courses for LinkedIn Learning https://www.linkedin.com/learning/me

Let me emphasize that their production values take a lot of work. While I think I'm a pretty good live presenter, a few days in the recording booth with a producer, reveals all my weaknesses. so. um …

more ...

HumbleBundle -- Functional Python Programming -- Through July 1

Date Thu 20 June 2019 Tags #python / humblebundle / packtpub / functional python programming

See this https://www.humblebundle.com

This is amazing to me.

Humble Bundle sells games, ebooks, software, and other digital content. Our mission is to support charity while providing awesome content to customers at great prices. We launched in 2010 with a single two-week Humble Indie Bundle, but we have …
more ...

  • «
  • 1
  • 2
  • 3
  • »
  • Social

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

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

    • Pelican
    • Python.org
    • Jinja2
  • Archive

    • July 2024 (1)
    • February 2024 (1)
    • November 2022 (2)
    • October 2022 (1)
    • July 2021 (1)
    • November 2020 (1)
    • January 2020 (1)
    • December 2019 (1)
    • June 2019 (1)
    • May 2018 (1)
    • October 2017 (1)
    • July 2017 (1)
    • May 2017 (2)
    • January 2017 (1)
    • October 2016 (2)
    • August 2016 (1)
    • March 2016 (1)
    • July 2015 (1)
    • April 2015 (1)

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

Back to top