Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
javcasas
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
181.
▲
by
javcasas
1y ago
More logs: #### /ask What would you refactor from main.py? #### What would you refactor from main.py? Based on the provided `main.py` file, here are some potential areas for refactoring: 1. \*Separation of Concerns\*: The
182.
▲
by
javcasas
1y ago
I cannot post the link to the repo, as it contains sensitive stuff. The code is mostly a bunch of classes with interleaved dataclasses, and a bunch of main() and run() functions at the end. Some of the logs: #### /add main.py &
183.
▲
by
javcasas
1y ago
I have tried with qwen2.5-coder:3b, deepseek-coder:6.7b, deepseek-r1:8b, and llama3:latest. All of them local, yes.
184.
▲
by
javcasas
1y ago
Good luck with that. I have been exploring local AI tools for coding (ollama + aider) with a small stock market simulator (~200 lines of python). First I tried making the AI extract the dataclasses representing events to a separated file. I
185.
▲
by
javcasas
1y ago
And will be fired/thrown under the bus the moment firing you is barely more profitable for the CxO than having you around.
186.
▲
by
javcasas
1y ago
This is dedicated to the people in the other thread about forbidding swearwords in code. Take this!
187.
▲
by
javcasas
1y ago
It's great that you can do/lead and write professionally. But, in any case, writing professionally shouldn't take priority over doing/leading. Otherwise we wouldn't have the Linux kernel; and I bet the swearing guy
188.
▲
by
javcasas
1y ago
There are two types of people: the ones that write the code, find the bugs (including hardware ones), find the bad design decisions (including the ones they wrote themselves)... and the ones that complain that they found a swearword in the
189.
▲
by
javcasas
1y ago
I have never worked on a big corporation. But I find interesting about corporations forbidding swearwords in code. I mean, the people responsible for forbidding swearwords rarely read code. And if they read code with any frequency and are s
190.
▲
by
javcasas
1y ago
Are we allowed to say "sex" or "kill"? Or do we have to start s*lf-c*nsoring everything? Anyway, my last search to how to un-alive children processes gave me nothing. I wonder if those m*n pages are actually wr*tten by p
191.
▲
by
javcasas
1y ago
> It would be crazy if in an auto factory people were measuring to make sure every angle is correct That cannot be any furthest from the truth. Take a decent enterprise CNC machine (look in youtube, lots of videos) that is based on servo
192.
▲
by
javcasas
1y ago
Find me an ORM that can do: * window functions * SELECT FOR UPDATE * row-level security Prepared statements and query builders are the better ORM.
193.
▲
by
javcasas
1y ago
Everyone that drives slower than me is a slowpoke, everyone that drives faster than me is a maniac. Nah dude, your intolerance is the menace here.
194.
▲
by
javcasas
2y ago
I have been looking for an Erlang thing akin to Apache Airflow or Argo Workflows. Something that allows me to define a DAG of processes, so that they run one after the other. How would you implement something like that?
195.
▲
by
javcasas
2y ago
Is that the RTO mandates because we have so many unused 5 year office leases? I see, it's part deux.
196.
▲
by
javcasas
2y ago
"Oligarchs" is the word you are looking for.
197.
▲
by
javcasas
2y ago
Those two letters are Greek! Tariff them! Substitute them with superior American letters, like... you know what you have to do!
198.
▲
by
javcasas
2y ago
But new types are wonderful! They can be used to prevent you from adding speed and and fuel left. Yes, both speed and fuel left are floats, but adding them will only produce nonsense.
199.
▲
by
javcasas
2y ago
They usually know, but they also know that their opposing party is willing to use bad faith tactics or outright violence to defend their position, and they are scared to some level.
200.
▲
by
javcasas
2y ago
Perverse incentives. Someone didn't think about it, or maybe they did.
201.
▲
by
javcasas
2y ago
We already have more ads. The "promise" is that, by paying, we will get no more ads. For now. I didn't ask for that content. I don't understand why I have to pay it.
202.
▲
by
javcasas
2y ago
"Might" is misleading. "Will" is more realistic.
203.
▲
by
javcasas
2y ago
You know who is the best target demographic for selling stuff? People with money. So that's who you want to show ads to. And do you know a proxy for "have money"? Paying for premium, when there is free. Therefore, every time
204.
▲
by
javcasas
2y ago
A Jira version. Children look under the bed afraid of finding monsters. Monsters look under the bed afraid of finding you.
205.
▲
by
javcasas
2y ago
We old timers read the source code, which is a good proxy for what runs on the computer. From that, we construct a mental model of how it works. It is not "walking uphill 10 miles both ways". It is "understanding what the cod
206.
▲
by
javcasas
2y ago
What sucks and is painful is in the eye of the beholder. Enjoy your kinks, but don't force them upon others
207.
▲
by
javcasas
2y ago
Oh, are you talking about Ecuador? Or maybe it's most of latam at this point. I am living now in Portugal (has its own defects, won't hide it) after 10 years in Ecuador. Here, people park their cars in the street and expect them t
208.
▲
by
javcasas
2y ago
> The problem with reviews is that on Reddit, it’s almost guaranteed that you’re reading a PR company’s post. Sure. But, in the comments, you will find out that if you press both control and m and backspace at the same time, the keyboard
209.
▲
by
javcasas
2y ago
Well, it depends on how you measure competitive programming. I think for measuring it in O() terms - as every paper out there on data structure does -, Haskell is quite good for the task.
210.
▲
by
javcasas
2y ago
> Monads are abstraction layers... So is everything. BTW, read the article. No monads in there, unless you believe monoids are monads.
More ›