's Avatar

@dfg.codes.bsky.social

programmer musician currently building: https://postgres.garden blog: https://dfg.codes github: https://github.com/DanielFGray Personal alt: @dfg.rocks

314 Followers  |  1,117 Following  |  97 Posts  |  Joined: 01.09.2024  |  1.9825

Latest posts by dfg.codes on Bluesky

I also strongly recommend a good understanding of SQL before picking up either an ORM or query builder.

27.02.2025 21:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Some mistakenly think they need an ORM when they really just want type safety and the ability to abstract over SQL without manual string concat. A query builder is more suitable in that case.

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

I think first it's worth exploring what you need an ORM for. When you can specify those needs you'll have an easier time picking tools because it's more obvious when they fulfill the needs (or not).

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

Idk of any bsky client that will actually render any arbitrary html (which could be disastrous if the previous poster left an unclosed tag in their post, the entire feed would be broken..)

But I think there are some 3rd party clients experimenting with markdown support

27.01.2025 15:38 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Learning HTML is the easy part
Making it look pretty with CSS is where it gets tricky

19.01.2025 22:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I remember trying to make a 3D game [many, many] years ago and finding and running a template that I could start with was a nightmare.

18.01.2025 18:28 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I started dipping my toes into #gamedev this week, tinkering with Unity.
It's pretty wild how easy it is to get up and running with a 3D game now, today within 30 minutes I had a player that can move around and jump on things thanks to the Unity asset store

18.01.2025 18:28 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Building Postgres.garden has been helpful for building itself
The database parts at least (which aren't wired up to the frontend yet)

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

I built postgres.garden
I don't think there's any possible way for it to work without JavaScript

16.01.2025 22:41 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The preview window is also one of the selling points, for example I could add `--preview='ls -lt {}'` and it would list recent files from each folder when you select it.. which I might now have to add

16.01.2025 06:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

For whatever it's worth the difference between the zsh tab-complete picker and the fzf version is that the fzf version narrows the list while you type

16.01.2025 06:05 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The Router component still works, I'm pretty sure?

16.01.2025 00:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

What issues did you have migrating? I've migrated a few apps successfully (though they were pretty simple)

16.01.2025 00:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I just realized you need my `has` function to use this as-is, which is really just an alias for `command -v` to see if a command exists, but I'll leave it to the reader to remove or adapt as needed πŸ˜…

15.01.2025 21:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GitHub - junegunn/fzf: :cherry_blossom: A command-line fuzzy finder :cherry_blossom: A command-line fuzzy finder. Contribute to junegunn/fzf development by creating an account on GitHub.

I really like fzf a lot for these small quality of life improvements, to be able to take a static list from any program and make it interactive by picking lines and executing commands with the output
github.com/junegunn/fzf

15.01.2025 21:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
if has zshz; then
  unalias z
  function z {
    local dir="$*"
    if [[ -z $dir ]]; then
      dir=$(
        zshz |
          sed "s|$HOME|~|" |
          fzf --with-nth=2.. --tac |
          awk '{print $2}'
      )
    fi
    zshz "$dir" 2>&1
  }
fi

if has zshz; then unalias z function z { local dir="$*" if [[ -z $dir ]]; then dir=$( zshz | sed "s|$HOME|~|" | fzf --with-nth=2.. --tac | awk '{print $2}' ) fi zshz "$dir" 2>&1 } fi

here's a bit from my #dotfiles using #fzf over the z directory picker for #zsh

this wraps github.com/agkozak/zsh-z to show an interactive list of directories you can jump to sorted by frecency (frequency+recently)
at least, if you dont give it any arguments, or it's bypassed to regular z

15.01.2025 21:13 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0

Not really, in my opinion
Much better case for bun over npm

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

Have you considered MDX?

15.01.2025 02:37 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I really liked lazyvim for how accessible it made getting going up and running
I ended up going back to my own config in the end it's a great jump off point

15.01.2025 01:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Would you be willing to share your shell script? I'd love to fork it for my own use

14.01.2025 20:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

You should attach a link to the article

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

Yeah I'm definitely in that camp myself
I'm happy that it's made so much progress but I've yet to come across anything that's made a compelling case to give it another shot.. but maybe one day

14.01.2025 03:36 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

It's one of those things that seems daunting and overwhelming until you do it and then you realize it's not so bad

14.01.2025 03:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

That's not quite true
It's a data serialization format that allows two disparate programs to share data, borrowing a subset of the syntax used in JavaScript

You could use nested arrays to structure the data, but that would be a choice not a requirement

13.01.2025 20:01 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Clickbait title aside, having a different build tool for dev and prod has caused problems for many folks

12.01.2025 14:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Learn testing sooner, it'll save a lot of time

12.01.2025 14:03 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Intl.ListFormat - JavaScript | MDN The Intl.ListFormat object enables language-sensitive list formatting.

Does this not cover it?

developer.mozilla.org/en-US/docs/W...

11.01.2025 03:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

A raspberry pi will not in any way help with a custom handle
You can host a PDS on it, but those are different things

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

Despite all the cutesy uwu shenanigans, Elysia really has the nicest API of any js/TS backed

10.01.2025 09:44 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You may be interested in my latest project Postgres.garden

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

@dfg.codes is following 17 prominent accounts