HNHacker News
TopNewBestAskShowJobs

bkq

596 karma · joined January 28, 2019

submissionscomments
bkq··on YTMND is down for temporary maintenance
It's a shame this has happened. I wonder to what extent this has been archived, I've taken a quick glance at it on archive.org, and it seems the main page has been well archived but I'd be sceptical if any of the "deeper" pages so speak were archived.

It makes me wonder what will happen with similar online communities as time drags on, and makes me sort of concerned for them too and the content that could be lost due to their disappearance.

With the web going forward, it seems as if similar memetic communities will primarily exist on platforms such as reddit, and possibly tumblr?

bkq··on To ORM or Not to ORM
Personally I think an active record style ORM for Go like gorm is a poor fit for a language that doesn't come across as inherently OOP. Going through some of the documentation for gorm, it seems to rely heavily on method chaining which for Go seems wrong considering how errors are handled in that language. In my opinion, an ORM should be as idiomatic to the language as possible.

I've used sqlx[1] before, and it feels pretty idiomatic to Go. You tag your structs with their respective database columns, write up a query, and hand it to sqlx to perform the deserialisation of the data. I've also come across squirrel[2] too, though I haven't used it, it does look rather interesting.

[1] - https://github.com/jmoiron/sqlx

[2] - https://github.com/masterminds/squirrel

bkq··on Ask HN: What stack is your personal blog built on?
Personal blog/site can be found on my profile, runs on:

- NGINX

- jrnl - (static site generator I made that copies the transformed markdown to the NGINX server)

bkq··on Show HN: Mgrt – Simple SQL Migrations
>I'm also dubious about the "format" used - the python tool we had been using, and the new shell tool I wrote to replace it, both just read regular SQL files in a series of directories (one called `up.sql` and one called `down.sql`).

This is something I considered, whereby the revisions themselves would be stored in `up`, and `down` directories beneath the revisions directory itself. It would make things even more transparent I suppose when it comes to integrating with other SQL tooling, instead of having to rely on some ad-hoc DSL. However, I chose to use the special format because for me, I found it simpler to work with, each revision is its own SQL file, and for the size of the revisions I was writing this suits me fine.

>As with the python tool we had been using, this doesn't appear to support SSL connections for mysql/postgresql?

Yes, unfortunately. I will need to look into testing this, as it was something I overlooked. For my use case specifically I was simply using it against local databases, and yes that does make for a weak excuse as to why SSL is not supported.

>Anyway, good luck with it. Ultimately these tools usually come about to solve some problem or scratch some itch, so I hope your itch is scratched!

Essentially, I wanted something simple that read in plain SQL and kept a log of what had been performed. Though with what you said about using separate `up`/`down` files for the respective directions would make things far simpler than they currently are.

For this to work the revisions would need to be changed from standalone SQL files, to actual directories themselves. Not that big of an issue, but perhaps something I will look into. Ideally I want this tool to play nice with other tools in regards to the data it produces.

bkq··on Ask HN: Show Us Your Personal Website/Blog?
Infrequently blog, never really advertised it anywhere.

https://andrewpillar.com

← PreviousPage 3 of 3