Better HN
topnewbestaskshowjobs
Log inSign up

aacanakin

271 karma · joined Sep 3, 2012 (14y ago) · 23 submissions

open-source enthusiast, developer & gopher.

@aacanakin https://github.com/aacanakin

Submissions

comment 7y ago · link · parent

"While async and await are not available yet, lots of improvements to the language itself have been made over the past years"

It's 2019 guys. Please.

2.

Qb: a call for vote(github.com ↗)

1 points · by aacanakin · 10y ago · discuss

comment 10y ago · link · parent

In the early days, qb has only the builder api. However, I also wanted to have a table builder from structs. Currently, the builder has completely separate implementation from session. The session is the structural composition of builder, engine, metadata, etc. You can see more examples in https://qb.readme.io/docs/the-builder

Feedbacks & Contributions are welcome about the builder.

comment 10y ago · link · parent

There is a table api in qb much like yours. See https://github.com/aacanakin/qb/blob/master/table_test.go. The session api converts tags into table object. I really like the column definitions. Maybe I can convert the definition implementation like you.

comment 10y ago · link · parent

I'm also not happy to add tons of tags in struct fields. Can you provide an example on how to do that? What I understand is to have a function inside the struct namely like "map" and define the constraints there. I think we can do this in the next milestone of qb. Can you open an issue about this? The github repo is https://github.com/aacanakin/qb

comment 10y ago · link · parent

The struct tags are grouped like type, constraints, etc. The groups of struct tags is more Gorm currently can't auto migrate keys with foreign keys. There is an issue I've commented but the issue is open for a long time.

There are also some missing features qb doesn't have and gorm has. For instance, you can define relationships in gorm while in qb, you can only define foreign keys using `qb:"constraints:ref(col, table)"`.

Moreover, I am not entirely sure but I don't think enforcing types is possible in gorm. In qb, consider this struct;

type User struct { id string `qb:"type:uuid; constraints:primary_key"` }

qb understands this as a uuid type although it has string definitions. These are the main reasons why I created qb.

The relationship feature is not clear in my mind. I'd like to have feedback on relationships.

comment 10y ago · link · parent

it's like an orm but you can also build queries using builder api. It's like sqlalchemy.

8.

Qb: Database toolkit for Go(qb.readme.io ↗)

90 points · by aacanakin · 10y ago · 26 comments

comment 10y ago · link · parent

Please watch this. https://www.youtube.com/watch?v=5kj5ApnhPAE

comment 11y ago · link · parent

In a golang conference, the presenter talking about youtube's vitess said: "If vitess servers are down, then youtube is down. That's how golang is crucial for youtube"

comment 11y ago · link · parent

I'll put source code on github.

12.

A material design hacker news client for android(play.google.com ↗)

2 points · by aacanakin · 11y ago · 3 comments

13.

Go 1.5-rc1(github.com ↗)

2 points · by aacanakin · 11y ago · discuss

14.

The ReadMe.io Manifesto(readme.io ↗)

2 points · by aacanakin · 12y ago · discuss

15.

glim – a modern python framework for the web(aacanakin.github.io ↗)

3 points · by aacanakin · 12y ago · discuss

16.

What do we do? (Orkestra.co)(medium.com ↗)

2 points · by aacanakin · 12y ago · discuss

comment 12y ago · link · parent

there exist a cross platform solution namely spotflux (a free vpn service). also, tor browser could be a way

18.

Twitter is blocked in Turkey

236 points · by aacanakin · 12y ago · 98 comments

19.

The reason why Cassandra is not good for ETL(aacanakin.svbtle.com ↗)

2 points · by aacanakin · 12y ago · discuss

20.

Ariba - the lightweight php framework[alpha](github.com ↗)

1 points · by aacanakin · 13y ago · discuss