Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bvrmn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
271.
▲
by
bvrmn
2y ago
Did you try to convert any mid-complexity ansible role into toml? It was very interesting exercise for me and vastly conclusive.
272.
▲
by
bvrmn
2y ago
If you have public GH contributions you could show examples of PRs with stories told by commits and my anecdata would be invalid :)
273.
▲
by
bvrmn
2y ago
For more than 15 years of Git usage I've never seen a well crafted commit history for a single PR. It either a series of well crafted multiple PRs with separate reviews or a brain dumpster fire of multiple commits trying to make it wor
274.
▲
by
bvrmn
2y ago
Squash and merge is another source for beginners confusion. Now they have two different histories (main and local feature branch) with the same content. It's often case they want to base following work on feature branch (staled history
275.
▲
by
bvrmn
2y ago
There is EXPLAIN QUERY PLAN which outputs usual high level plan description. But there is no easily reached disk/cache usage stats.
276.
▲
by
bvrmn
2y ago
Also it greatly helps to not overuse nouns and try to forcefully model verbs with resource entities.
277.
▲
by
bvrmn
3y ago
Prior art is hard to find and touch in-person. There is real reason the only easy searchable leftovers are academic papers.
278.
▲
by
bvrmn
3y ago
I argue strview (non-owning) is almost always what is needed. Most of string operations are searching and slicing.
279.
▲
by
bvrmn
3y ago
It's really great. Shear amount of work is huge. It seems difficulty level is on par with introducing fat pointers/array views into stdlib and C standard.
280.
▲
by
bvrmn
3y ago
I hope you equally fill bad for tens of thousands of civilians dying without any consent because some "leader" decided to play a war.
281.
▲
by
bvrmn
3y ago
Github issues for pyenv show a slightly opposite picture.
282.
▲
by
bvrmn
3y ago
It's inherit problem for all languages based on some runtime. Java, PHP, Ruby, whatever have the same issue. And TBH it's not very major issue to start with. No other solution besides fixed OS (containers, nix) could solve this pr
283.
▲
by
bvrmn
3y ago
It's inevitable for non-dead interpreted languages.
284.
▲
by
bvrmn
3y ago
python -m venv myenv . myenv/bin/activate <install reqs> <your program> Ensures you have the same python environment. The other part is OS state.
285.
▲
by
bvrmn
3y ago
Hm. Solution could be expressed semantically like this (python): max((w for w in words if len(set('aioue').intersection(w)) <= 2), key=len) But author's solution clearly contains more semantic elements.
286.
▲
by
bvrmn
3y ago
It's my biggest concern as well. For real world application I tend to use out of line filters: filters = [q.field == value1, q.field2 > value2] sql = f'SELECT * FROM table {WHERE(*filters)}' It's a little
287.
▲
by
bvrmn
3y ago
It's not obvious how to make SQL with nested queries with own WHERE in Norm. One of design goals of sqlbind was an ability to write complete high level structure of a big query. And to eliminate `if` statements as much as possible. No
288.
▲
by
bvrmn
3y ago
Unfortunately straightforward code leads to spaghetti mess in my domain: big reporting queries. API solves an issue of binding a value in exact place of raw SQL query.
289.
▲
Show HN: Sqlbind a Python library to compose raw SQL
(github.com)
69 points
by
bvrmn
3y ago
|
57 comments
290.
▲
by
bvrmn
3y ago
I'm not a PRQL fun. But TBH I can't write this SQL from my head. I have thousand lines of written SQL.
291.
▲
by
bvrmn
3y ago
It could be an argument, but no politician inside Russia call people to the streets either. Navalny abroad had more influence than all other opposition personas in sum.
292.
▲
by
bvrmn
3y ago
> In the eyes of Russian public opinion, a politician who fled abroad - opposition or not - is not a politician anymore Public gives no shit where politician sits unless they have influence on politics.
293.
▲
by
bvrmn
3y ago
Sad times began in 2012. Since then opposition has no a single chance to win elections.
294.
▲
by
bvrmn
3y ago
You are right about conflicting changes. They are hard to manage as order independent changes with any tool. In stgit context I often split big change into multiple ordered patches and yes I know what piece (incremental edit) should be adde
295.
▲
by
bvrmn
3y ago
Spec was a huge pain. For our project it contained around 50 directories to fetch from. Directory per component with own versioning. Only a few persons know working combinations you could use.
296.
▲
by
bvrmn
3y ago
As usual couldn't recommend stacked git [1] enough. If you prefer CLI it greatly reduces cognitive load about branches/rebases especially if your work with review server allowing to see changes between force pushes (gitlab, gerrit
297.
▲
by
bvrmn
3y ago
It would be great to know how you start Keycloak. In our CI it takes 40s-1m to start and consumes 500Mb. We use default docker image.
298.
▲
by
bvrmn
3y ago
Each operation has uniq id. Each node has own log with autoincremented op counter. According to topology rules. Each node tries to fetch new parts of remote logs with new ids from other nodes and apply to local state. Domain allows to expre
299.
▲
by
bvrmn
3y ago
PR line count is such a silly metric. For example my recent PR +600/-900 lines. What you can deduct from that? Is it complex? Changes were quite simple. 600 common lines are about rearranging big module into multiple smaller modules. 3
300.
▲
by
bvrmn
3y ago
> everyone is scared to change because of how much of a mess it is As a rule messy code a way more easier to cleanup in one big chunk. Teams with CR limit prefer not to touch such nests.
More ›