Better HN
topnewbestaskshowjobs
Log inSign up

dhamidi

81 karma · joined Mar 17, 2013 (13y ago) · 56 submissions

https://github.com/dhamidi Email: dario.hamidi@gmail.com

meet.hn/city/ee-Tallinn

Socials: - instagram.com/lendavvaip

Interests: Fitness, Entrepreneurship, Remote Work, Programming, Web Development

---

Submissions

comment 3h ago · link · parent

What you said about the GDP is true, but I don't see how that connects with rule of law, clean environments, and orderliness.

You also ignored Sweden, which has a GDP similar to Germany (also note that Estonia was historically under foreign rule and not resource rich like Germany and Sweden).

How does your argument help Germany get better? How does it help people in Germany think that maybe not everything needs to suck.

Regarding fleeing when Putin comes: speak for yourself.

I gave up German citizenship for Estonian citizenship because it is my chosen home and because I have more faith in Estonian society prevailing through difficulty and staying future-oriented than in German society.

comment 16h ago · link · parent

I'm sorry, but that really sounds like coping :(

There are countries that have all of the benefits you listed, without Germany's drawbacks: Estonia and Sweden at least (those are the ones whose systems I know from personal experience).

Happy to show you around Tallinn and the Estonian system, if you are interested - Germany doesn't have to be the way it is.

Source: born and raised in Germany, emigrated to Estonia before it was cool.

comment 3mo ago · link · parent

> So an engineer who knows your codebase and tests can sneak in malicious code/backdoors because you're high trust.

What is the alternative? Bumping a dependency in a PR and getting a LGTM can also introduce a backdoor.

That's another form of high trust: your trusting the publisher of the dependency.

High trust comes with high responsibility, which is easier to enforce when the trusted party is an individual on your team with generally aligned incentives, rather than an organization or unpaid individual on the internet serving many.

comment 3mo ago · link · parent

Working at Amp

We...just read the commits, and talk to each other.

We're also pretty trigger happy with the Huddle button in Slack.

Nobody on the team would go back to mandatory PRs

comment 3mo ago · link · parent

HTMX is great, Hypermedia and HATEOAS are great, HTML-string-templates are not great.

For some reason they are still popular.

A fun experiment is to use a JS runtime with React but render the component tree on the server onto a Writeable stream.

Very easy to understand, no useEffect footguns, great composability.

comment 3mo ago · link · parent

You can swipe the Termux special ribbon to the left and then get a native text input where dictation etc all work.

comment 4mo ago · link · parent

This:

    node + npm + vitest + vite
Turns into:

    bun
That's the benefit

comment 4mo ago · link · parent

There's vuego: https://github.com/titpetric/vuego

And my own version (I learned of vuego only after): https://htmlc.sh

Not a fan of html/template and tmpl myself, because HTML should be treated as tree and not as strings, but everybody has different preferences.

For routing I now use my own library in all projects: https://github.com/dhamidi/dispatch

It's relatively easy to generate your own nowadays, I mostly go through the Ruby on Rails guides and mix and match the pieces I want for go and turn them into libraries :)

comment 4mo ago · link · parent

I understand the sentiment. Rails was my introduction to hypermedia and it was convenient and easy, so experiencing friction when building with Go/HTMX came as a surprise.

After a few attempts I learned that abstractions are important :D

Without a component builder and reversible router is indeed pretty painful (and Rails just ships with these things so you didn't have to worry about it).

The biggest benefit for me personally is that computation and data live in one place, which carries you very far. Also, machines like hypermedia: LLMs are great at using and testing hypermedia apps because they are self-contained and the cycle time is lower because you don't need to wait for JS.

And yes, no easy off the shelf component library makes starting harder.

comment 4mo ago · link · parent

Disclaimer: I'm part of the team building it

That's what Amp is built around!

By default conversations are shares in your team (you can also make them private), and the agent has access to them.

So you can do things like "how would $teammate think about this" and the agent will read your colleague's conversations with Amp to get a feel for that and evaluate your work based on that.

Or just figuring out what everyone is doing at the moment is much easier that way

comment 7mo ago · link · parent

I know it's in vogue to bash Bash but I feel that criticism is unfair.

Shell scripting is a victim of its own success: it is _so easy_ to get started that most users get value out of knowing the first one percent and never bother to actually learn the rest.

There aren't many who have read the Bash manual, or know what zsh can do that Bash cannot, etc.

"Shell scripting is a hot, slow mess" is the same hot slow mess that you get wherever the barrier to entry is extremely low (e.g. early PHP, early JavaScript/frontend development, game development with a game engine where you can just click around in the editor, etc).

comment 10mo ago · link · parent

Maybe useful inspiration from TCL: there are many commands that define new variables, which makes modeling the stack unnecessary.

For example:

  lappend responses [dict status 200 body ...]
Appends a new dict to the list held in the variable responses, creating the variable if necessary.

I can see that being an attribute:

  <request-send url="..." as="greeting" />
  <response-text response="greeting" as="text" />
  <selection-set-text text="text" />

comment 10mo ago · link · parent

Feather, a fresh implementation of TCL: https://www.feather-lang.dev

Command languages are underrated, and being able to add a Bash-like REPL for agents and users alike is something I want to see more of.

Feather solves the "rest of the Owl" problem: agents/users get loops, conditionals, online help for free from Feather, as the embedder you only need to add application-specific commands.

Feather itself has no GC (uses the host's), no own data structures (uses the host's, e.g. JavaScript arrays for lists in the js version), and no I/O.

The core is implemented in stdlib-less C

comment 10mo ago · link · parent

Thank you!

> Are you doing a mostly one-to-one port, or something more novel?

Step 1 is a one-to-one port of all the non-I/O, non-OO stuff. I've got it down to a single skill for Opus 4.5 and now it's just a matter of turning the crank and keeping an eye on it.

Step 2: add more functionality for interactive use for humans/agents. Things like defining the syntax of commands, a completion engine, a help system. Essentially all the things you'd expect from a modern shell experience, but with a bring-your-own-UI approach.

> but man is reference counting a pain in the neck or what.

Maybe this is a bit more novel: since the only use case is embedding, and the host language already has dicts, lists, and other data structures, I'm just leveraging those. In the Go version of Feather, dicts are Go maps; in the JavaScript version they are backed by lists of pairs (to preserve insertion order)

15.

Show HN: Feather – a fresh Tcl reimplementation (WASM, Go)(feather-lang.dev ↗)

31 points · by dhamidi · 11mo ago · 5 comments

comment 1y ago · link · parent

Not affiliated, just have been following development closely: Phrasing leverages existing content, e.g. subtitles from your favorite shows.

The quality depends on the source material you choose to give it.

comment 1y ago · link · parent

This is great, I was literally looking for something like this yesterday to embed TCL into a Go application without needing CGo

comment 1y ago · link · parent

That's already the case with https://docs.claude.com/en/docs/claude-code/plugins

comment 1y ago · link · parent

The `source` builtin searches through all directories on PATH, not quite a library system, but useable with a bit of discipline in the to-be-sourced shellscripts.

20.

Show HN: A scriptable text editor for LLMs(github.com ↗)

3 points · by dhamidi · 1y ago · 1 comment

comment 1y ago · link · parent

More tools / toys / sandboxes to play with.

Growing a coding agent as a "game": https://github.com/dhamidi/smolcode. Started with https://ampcode.com/how-to-build-an-agent and then asked the agent to modify itself. It's so much fun and hard to stop!

Since coding is cheap now, I'm building a web framework for myself, using reasonable defaults: built around the transaction log, single binary deploys, sqlite3 for everything, runtime introspection tools to make ops easier.

I want the framework to "compile itself out of the project", so that projects don't have devtime dependencies and can be easily edited by Cursor et al. It should still stick around in the form of a high-level CLI that an AI agent can leverage to fulfill common tasks (e.g. add a new UI component, query, command, etc).

comment 1y ago · link · parent

Modash.io | Senior Product Engineer | Remote (EU) | Full-time

Modash is an end-to-end influencer marketing platform for Shopify stores.

We help every creator earn a living.

Headquartered in Tallinn, Estonia, with engineering distributed across Europe.

60 person team, raised $12M in Series A funding, ARR growing 2x YoY.

We're on the hunt for Senior Product Engineers who love working with AWS, Vue, NodeJS, Typescript and a passion for product: you are eager to talk to customers and anticipate their needs.

If you're all about remote work, and can't wait to make a real impact, we'd love to chat!

Interview Process

Option A: https://www.modash.io/blog/engineering-interviews-at-modash

Use https://apply.workable.com/modash/j/C1507B65C3/ to apply

Option B: showcase your project!

  - It's live somewhere,
  - It has users
  - You built it yourself/you are the main contributor
send us two videos about your project and we'll get back to you

Use this link https://forms.gle/K4GcyxT1zbmHGdsRA to apply.

comment 1y ago · link · parent

So cool to see this here!

I bought a house in Nyland [1] a few years ago and now I'm turning it into a place to retreat to for focus time / being close to nature.

If someone is interested in sharing the space over a longer period of time (as I'm not living in Sweden), hit me up (email on my profile)

[1] https://maps.app.goo.gl/Ww1GHL5rFXdkcdHfA

comment 1y ago · link · parent

It's not much different than with Postgres:

    ssh your-server sqlite3 /tmp/path/to/your/db.sqlite3
Or if you're using Kamal, then the choice of database is completely transparent:

    kamal app exec -i --reuse bin/rails console

comment 2y ago · link · parent

I had the pleasure of meeting Ben in real life and watch him work — he's just really good at what he does, and his experience with ClojureScript is deep and wide.

One thing that sets him apart from myself and other engineers I've seen is *speed*: while I'm still thinking about a problem, Ben has implemented multiple prototypes, learned more about the problem and picked the best solution.

comment 8y ago · link · parent

Actually plain less works quite well when using filters:

  #!/bin/bash
  # ~/.lessfilter
  case $1 in
    *.md) view-md $1;;
    *.json) jq -C . $1;;
    *) pygmentize $1;;
  esac
Where view-md is just a thin wrapper around tty-markdown[1]:

  #!/usr/bin/env ruby
  
  require 'tty-markdown'
  
  puts TTY::Markdown.parse(ARGF.read, colors: 256)

[1]: https://github.com/piotrmurach/tty-markdown

comment 8y ago · link · parent

Is anybody here aware of any TUI/CLI tools that bring UX patterns/ideas from other programs to the terminal?

Examples:

- bash/zsh/fish bring suggestions/autocompletion

- fzf brings fuzzily-matching selections to the terminal,

- https://github.com/ericfreese/rat brings the idea of "widgets" or "layouts",

- https://github.com/mrnugget/fzz brings "preview as you type"

I'm looking for more patterns like that, mainly to explore how to make them work in the terminal and see whether that actually has an impact on everyday actions people perform in the terminal many times per day.

The goal is not to save time, but to reduce mental friction.

comment 8y ago · link · parent

> It is not a good idea to use the backslash as the trigger key since it is the traditional line continuation and escape character on UNIX.

Well it is also the default key binding for VIM's leader key and placed on the home row on US keyboards which makes it really accessible.

What is not shown in the demo screencast is that leader detects whether the cursor is inside a quoted string and in that case doesn't present a menu but tells the shell to insert a literal backspace at the current cursor position.

For continuing lines on an interactive shell the user would have to press Ctrl+V followed by a backslash to insert a literal backslash. In my experience this is rarely necessary in an interactive terminal so the extra utility gained by having leader on the home row outweighs the extra key press necessary for continuing a line.

> Furthermore it is not a good idea to replace the command line with a menu since that limits what is possible in UNIX.

That is true. Leader is not _replacing_ the command line, the command line still works as usual, the only difference is that you can launch a menu by typing backslash to quickly run a command.

29.

Show HN: Leader – VIM's leader key for your terminal(dhamidi.github.io ↗)

5 points · by dhamidi · 8y ago · 2 comments

comment 10y ago · link · parent

Why should basename accepts its argument on stdin? It doesn't act as a filter, processing a stream of data, but rather as a plain function.
12