mg's Avatar

mg

@morng.bsky.social

Developer of 18XXc & BankBuilder

49 Followers  |  149 Following  |  160 Posts  |  Joined: 28.08.2023  |  2.323

Latest posts by morng.bsky.social on Bluesky

Post image

When the AI bubble bursts, and all the VCs are pondering their life choices, they can take some comfort in that at least they helped build a tool that saves me from my mild dyslexia again and again

08.08.2025 13:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I hate python's Significant Whitespace soo much. I have now spent an hour debugging and the cause was that a break statement was indented once to many, and so it broke out of the wrong loop.

Its not like python doesn't already mark blocks; every block starts with a ":". Just add an "end" plz.

08.08.2025 11:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

fantastic, gj

07.08.2025 08:07 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Finally they do something with this IP, after 39 years of absolutely nothing!

05.08.2025 22:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Surfacing the Ash sections as an LSP document symbol would be great. Dont know enough about how LSP works to know if that would be simple or hard

04.08.2025 11:55 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

...will get me quickly the rest of the way. Now I wonder how my personal computing enviroment will look like in 6 months. How far will I go in scripting things at work and in personal projects? How will codifying my various know-hows lessen my daily/weekly/monthly cognitive burden?

/fin

01.08.2025 09:53 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

For me it is becoming increasingly clear that the economics of this @xkcd.com charts are changing. I am finding that automation that is not in the small rectangle in the upper right is almost always worth doing; if I understand the problem and what the solution might look like, an llm model...

01.08.2025 09:53 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...not building a system that will be evolved in the future with ever increasing complexity. I dont forsee me doing anything else with this script; if I need to change it in the future I will probably just throw it away and generate a new one.

01.08.2025 09:52 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...pasted the contents of the nix-profile file into the context) it solved the write-a-python-script-to-do-this part like a champ for me.

But isnt this just creating a mountain of techinal dept for future me to worry about? Dont think so, cause this is just a script with a single purpose; I am...

01.08.2025 09:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...wanted to stop after I found the first instance of the .direnv folder. I knew I wanted to look through a file that fitted the pattern of .direnv/nix-profile-* because that would contain the location of the binary. Claude did not have to figure this out for me. But once I explained it (and...

01.08.2025 09:51 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...and connected to the database I was using in the project.

To be clear, I knew the general shape of the possible solution. I knew I wanted to search for the .direnv folder in a reverse recursive order. I knew I wanted to stop after I found the first instance of the .direnv folder. I knew I ...

01.08.2025 09:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...after pasting in the actual contents of the nix-profile file; after actually making my self clear on what I wanted beyond just find the binary (and no claude, I do not want to search through the entire /nix/store); we had a script that launched the psql with the correct arguments...

01.08.2025 09:49 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...already connected to the database I am working with, is the workflow I am going for here.

So I started Claude Code in my home-manager folder where I keep my scripts and started iterating with it on possible solutions. After a few tries, after asking it to put in various print statements; ...

01.08.2025 09:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Why this workflow? Because I like to start tools from my editor session (eg lazygit), do what I want in it, exit the tool, and be back in neovim. So I want the opening of the tool to be as friction-less as possible. And to be looking through some db code, quickly opening a db tool and be...

01.08.2025 09:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...I use a nix shell to install postgres per project (via direnv) but the other two are globally available on my system. So while psql was in path if I opened a new pane and started it from there, it wasnt in path when starting it via tmux shortcut.

01.08.2025 09:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

...the selected script. The script looks for a file named .db.json in the current directory, and uses the information in that file to launch the selected client and connect it to the database I am using in the project.

This worked fine for DuckDB and Rainfrog but not psql. The problem was that...

01.08.2025 09:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Video thumbnail

I have a tmux workflow for working with databases in a project. I am in neovim and I press Prefix D. That opens up a tmux menu where I can choose between three terminal db clients: duckdb, rainfrog, and psql. When I select one, tmux opens a new window in the current session and executes...

01.08.2025 09:45 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

copied!

30.07.2025 17:49 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

roger, misread it in the book, validations with before_action? option set run after the hooks

30.07.2025 12:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

ty!, that is helpful

30.07.2025 12:29 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

btw claude is as dyslexic as I am, no judging

30.07.2025 12:28 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

🎁

30.07.2025 11:37 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Claude almost had me compiling Postgres from source in my nix shell setup to enable the pg_trgm extension, before I noticed I had referenced it as pg_tgrm in the Ash extension list.

Still mildly dyslexic after all these years, when will I learn

#ElixirLang

30.07.2025 11:36 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image

My current understanding of the flow in Ash actions with validations, identity, hooks, etc. I am sure there are more pieces to this machinery.

#ElixirLang

30.07.2025 08:28 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

poor things. no sleep for days it seems. why so cruel mr designer.

30.07.2025 07:57 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I am only 2 chapters in, but I feel the Ash book from @pragprog.com is teaching me to write really good Phoenix code along with all the Ash stuff. As an Elixir beginner I really appreciate that.

ty and gj @sevensea.cat and @zachdaniel.dev

#ElixirLang

28.07.2025 20:42 β€” πŸ‘ 18    πŸ” 4    πŸ’¬ 2    πŸ“Œ 0

I have. I would recommend it over NWET if you are only reading one Ecto book

25.07.2025 18:59 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I finished it last week. I would describe it as a long heavy Ecto practice project. Lots of writing and the. rewriting code; especially building and refactoring joins in Ecto.

It is good, but time consuming. It shows that no editor touched it.

25.07.2025 18:15 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

godspeed

24.07.2025 20:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

this season of ew has been a series of non stop bangers. gj everyone involved

#ElixirLang

24.07.2025 15:02 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@morng is following 20 prominent accounts