Fredrik Sjöstrand

Fredrik Sjöstrand

@fronkan.bsky.social

Software engineering, ML and data in general, but python in particular! very occasional blogging at: http://fronkan.hashnode.dev. Storing code at: http://github.com/Fronkan.

69 followers142 following66 posts

Obsidian for markdown and support for mermaid together with a coding agent has been absolutely wonderful for creating timeplans. The agent pulling data from multiple excel files and creating a unified plan. Also having it update the mermaid Gant charts as people fire off new things in meetings

While I built multiple applications and packages at home and work, this is the first time I pushed something to pypi!🥳 It was inspired by this episode of @pythonbytes.fm: pythonbytes.fm/episodes/sho... Where Michael said someone should build a package based on a blog post covered. Well here we go!

pythonbytes.fmpythonbytes.fm
Fredrik Sjöstrand@fronkan.bsky.social

Testionary (test-dictionary) is a tiny package that provides a dictionary subclass that allow you to track which keys has been accessed and modified. Available on pypi.org/project/test... github.com/Fronkan/test...

I think this is a really good point from @jamellebouie.net. I find outsourcing the formation of my view on a topic to an LLM a scary proposition. This is also why I'm a bit wary around coding assistants. When am I outsourcing so much of my thinking that it impacts my understanding of the problem?

jamelle@jamellebouie.net

i just find this so bizarre. searching through texts and doing the reading for myself is how i actually think through ideas! trying to put together a sentence is how i figure out what i actually want to say!

I'm currently trying to internalise this:

Simon Willison@simonwillison.net

Oh, I forgot to mention: lower your standards! Waiting until a piece feels as good as you can get it is a recipe for an empty blog and a huge folder full of drafts I try to hit publish while I am still unhappy with what I've written

Thanks to @willmcgugan.bsky.social and the textualize team for this time. Textual seems to be a TUI library that is second to none, python or otherwise. I'm sad that the company didn't work out, but glad that you gave it a go as textual made me fall in love with the terminal applications

willmcgugan.github.ioWhat’s next?Some years ago I had the opportunity to work fulltime on project of mine. This was at a time where I fully intended to take a year off, but being able to make a living off a project of your own creati...

I would generally agree with this perspective on LLMs. To me the aggressive stance against there usefulness looks more like a counter reaction against the hype. Are they as useful as the hype-side tries to tell you, absolutely not. Are they useless, also no.

Hank Green@hankgreen.bsky.social

There are a lot of critiques of LLMs that I agree with but "they suck and aren't useful" doesn't really hold water. I understand people not using them because of social, economic, and environmental concerns. And I also understand people using them because they can be very useful. Thoughts?

Tried out asdf yesterday, mainly to manage erlang and elixir. Feels like it would have been nice if plugins could manage build dependencies for you. Copy-pasting the install commands from the readme obviously wasn't hard, but increased the friction slightly

Beside the changing table we have a box of baby socks. I found 3 socks, non of which where equal to the others. Looking around I found another one, which obviously didn't match the other 3. I gave up and started on a new pair, guess I will find 5 non-matching socks the next time ¯⁠\⁠_⁠(⁠ツ⁠)⁠_⁠/⁠¯

Fredrik Sjöstrand reposted

its amazing how chatgpt knows everything about subjects I know nothing about, but is wrong like 40% of the time in things im an expert on. not going to think about this any further

Fredrik Sjöstrand reposted

🐍 Calling all Python data engineers! I’m looking to chat with Python developers working in data engineering—whether you’re building pipelines, wrangling data, or just figuring things out as you go. Details 👇

Came across a poll on linked-in on how to create private fields and methods in Python. Almost 50% of the over 1100 respondents picked __my_var. The technically correct answer of "private, what do you mean private?" didn't exist 🧐 and _my_var, what I believe is industry practice was way lower 🤔

The leading double underscore will cause name mangling, a feature that is nice for avoiding naming conflicts when doing inheritance. In practice I very rarely see this used. It's slightly more annoying to get to because of it but it's not private in any strict sense.

Day 1 of parental leave and things are going very well. First time having her in the stroller while shoveling snow and it went flawlessly 😄 And with a path cleared, we could take a walk with the stroller for the afternoon nap 😴

This is probably a pretty good tip for me 😅 Although I don't have nearly as much time to write nowadays, that draft folder has been growing. And published content sort of hasn't

Simon Willison@simonwillison.net

Oh, I forgot to mention: lower your standards! Waiting until a piece feels as good as you can get it is a recipe for an empty blog and a huge folder full of drafts I try to hit publish while I am still unhappy with what I've written

It feels quite strange to have only two days of work, this being the last at the office, left before my 7 month parental leave. I also realised I haven't been away from work or education longer than like 2 months since I was 6 🫢

Fredrik Sjöstrand reposted

Legitimate supply-chain attack affecting Python package "Ultralytics" abused multiple levels of GitHub Actions shell injection vulnerabilities in workflows to publish malware to PyPI.

I felt like I was guided through todays #adventofcode. From the start I knew what bart 2 would be, but the problem felt difficult. So I focused on doing that part and when I came to the second part I could see the solution very clearly. Just build out from the checking code and problem solved 😊

I just want to add that this doesn't make me a die hard fan of DRY (Don't repeat yourself). While generally pretty good advice, it can also lead to you implementing the wrong abstractions. This often manifest in functions with different modalities. I personally like WET (Write everything twice)

Fredrik Sjöstrand@fronkan.bsky.social

I will see how many days I will get through this year, I don't imagine it will be that many. But, I did the first day of Advent of code at least 😊

Me in the middle of solving #adventofcode: "I will just copy-paste and change this code, that will be much quicker" Me when debugging my solution: "Damn it, I missed to fix this in both places"

I am experimenting a bit with using #textual for viewing my Bluesky feed. For replies in the feed it shows the top post, the reply, the parent of the reply and ... if the grand parent isn't the root. Textuals links worked great for opening images in a browser using the webbrowser module.

btw, it's Windows 11 screen-recorder that is choppy, not the application. I wanted to try out the one built into the screen grab tool, it didn't turn out great. But, it was quite convenient soooo I don't know ¯\_(ツ)_/¯