HNHacker News
TopNewBestAskShowJobs

jitans

15 karma · joined March 17, 2018

submissionscomments
jitans··on Simplest C++ Callback, from SumatraPDF
Why don't use fu2? https://naios.github.io/function2/
jitans··on How Discord Stores Billions of Messages (2017)
I would have used CockroachDB, it has all the requirements listed and you don't need to know in advance the queries you will perform when deciding the database schema.
jitans··on Best practices for writing SQL queries
not even all the "traditional" databases, each Engine has his own peculiarities.
jitans··on Facebook Downgrades WikiLeaks Article Page
And why don't you make a FB account?
jitans··on Delta Chat – decentralized chat via email
So basically what we needed was a different email client?
jitans··on Delta Chat – decentralized chat via email
Do you realize WhatsApp privacy hasn't changed?
jitans··on Delta Chat – decentralized chat via email
And leaking a mail (with real names) is much better?
jitans··on Delta Chat – decentralized chat via email
Just because this is the new trend (for no reason) ?
jitans··on PostgREST
This should have been: PostgGRPC
jitans··on New In Postgres 12: Generated Columns
Why your application doesn't use a view? Or even better a table function?
jitans··on New In Postgres 12: Generated Columns
This is one of those features to not use ever, unless you have another problem that is an application touching directly a table instead of a view.
jitans··on Ask HN: What is your best advice for a junior software developer?
If you use a compiler do not ignor ever ever the warning messages. Aim, from day 1 to have a compilation warning free. Write code to be read by humans, and do not ignore writing testing code, more or less you should have twice code in testing than real code under test.
jitans··on Postgres 11 – A First Look
There is who cares about his data and who uses MySQL
jitans··on CockroachDB 2.0 released
They haven't any custom driver, CRDB is binary compatible with postgresql drivers, are marked as beta because "maybe" there is feature they haven't implemented. So far using pqxx (C++ driver) I haven't seen any issue.
jitans··on CockroachDB 2.0 released
In postgres you can choose if the replication is synchronous or asynchronous. For cascade replication (a slave uses as a master for another slave) the replica is always async.
jitans··on Rust 1.25 released
Instead to improve the "use" they had to remove it and enable only namespace renaming
jitans··on Probabilistic Filters By Example
well the demo then is broken indeed it shows still an "a" inside the multiset. Having say that I would never use a cuckoo in a multiset, indeed it becomes a bounded multiset. Also about the K-hashing for a bloom filter is not exact. You just need need a K-bit hashing function. If the goal is to support deletion then I would go for a Counting Bloom filter
jitans··on Probabilistic Filters By Example
Add five "a", now remove four "a" Cuckoo claims there are no "a" in the multiset...
jitans··on Show HN: Makesite – A static site generator in 125 lines of Python
That's not the point. Trying to squeeze the code in less lines as much possible is not the way to go if you loose clarity. Python coders keep repeting the mantra "less line of code" but in the mean time they keep typing: self. self. self.
jitans··on Show HN: Makesite – A static site generator in 125 lines of Python
As you can see we are the only one thinking this is absurd :D
jitans··on Show HN: Makesite – A static site generator in 125 lines of Python
how stupid is to measure code in terms of lines?

Make all that a library then you can claim:

A static site generator in only 3 lines of Python

Measuring lines of codes is completely wrong. See the Scala trend were people race to find the shortest way to express something generating hard to understand code. 1) Code has to be written to be maintenable. 2) Code has to be written to be read by your coworkers. 3) The bottleneck while coding is not the keyboard.