Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
diegojromero
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
diegojromero
10d ago
Something I've learned is that your specification is as solid as your validation harness. If you have added strong e2e tests, with the critical scenarios covered, then you are safe. If not, sometimes it's rolling dices.
2.
▲
by
diegojromero
1mo ago
On what dataset was the AI trained?
3.
▲
by
diegojromero
9mo ago
Sure, in my workflow I make use of mypy and ruff extensively (but ruff does not allow plugins). So I decided to create several plugins with the intention of improving the developer experience and understanding of the code. Now, what I am as
4.
▲
Ask HN: What's stopping us from having full static validation of Python code?
2 points
by
diegojromero
9mo ago
|
2 comments
5.
▲
by
diegojromero
1y ago
Well, I was so worried about boilerplate that I created a Python decorator for avoiding polluting the code with so much of that ( https://github.com/diegojromerolopez/otelize ). About the cost, AFAIK it is not prohibitiv
6.
▲
Ask HN: When it's too much observability?
2 points
by
diegojromero
1y ago
|
2 comments
7.
▲
by
diegojromero
1y ago
Thanks for your comment! It has given me an idea for a project: a simple library that provides a Python decorator that can be used to include basic telemetry for functions in Python code (think spans with the input parameters as attributes)
8.
▲
by
diegojromero
5y ago
Interesting, maybe adding a decorator @freeze_final could be a good idea? I'll take a look at it later. Thank you for your input!
9.
▲
by
diegojromero
5y ago
I knew about dataclasses when I started writting gelidum, but I wanted to make the immutable objects be from any classes, those under my control or not. Having said that, I think dataclasses are a better solution for making immutable object
10.
▲
by
diegojromero
5y ago
I'd really love if that could checked statically. Performance is bad, I mean, all params are deep-copied because I assume frozen then "inplace" is not intended as they could be objects used by other parts of code.
11.
▲
by
diegojromero
5y ago
Yes, you're right with your concerns. I added this feature yesterday. Note the default value is "exception". With "nothin" I was thinking in passing some frozen object through a pipeline of unsafe/inherited
12.
▲
by
diegojromero
5y ago
Exactly my main issue. I see this code as something that asserts that an object is not modified by that "bad" code, but I fail to see more use-cases. I've been thinking about doing some kind of dictionary datastore with these
13.
▲
by
diegojromero
5y ago
Interesting idea, instead of a deep clone, would it be something similar to the copy-on-modify pattern?
14.
▲
by
diegojromero
5y ago
Per advice from Daniel from HN (thank you!), I have reposted this Ask HN I made earlier about immutability. [1] I was thinking the other day about my days working with Ruby On Rails and how the strings are mutable in Ruby and the freeze met
15.
▲
Show HN: Gelidum – My Python library to freeze objects
(github.com)
43 points
by
diegojromero
5y ago
|
27 comments
16.
▲
by
diegojromero
5y ago
Thank you, going to take a look to that talk!
17.
▲
Ask HN: Thoughts on immutability in programming languages?
2 points
by
diegojromero
5y ago
|
3 comments
18.
▲
by
diegojromero
7y ago
Could you expand on why do you prefer ActiveRecord over Django ORM? When I started with Rails I was so frustrated with ActiveRecord that I develop some of the Django QuerySet API as a gem[0]. [0] https://github.com/diegojrom
19.
▲
by
diegojromero
8y ago
'The future of Programming' by Bret Victor ( https://www.youtube.com/watch?v=8pTEmbeENF4 ). Seems a pun about OP title but it really is related with his/her question. Take a look and you will be amazed of how g
20.
▲
by
diegojromero
8y ago
I'm working in a Django's Queryset port to Ruby on Rails: https://github.com/diegojromerolopez/babik I really miss Django and its way of making queries and I think it could be a good add-on for Rails.
21.
▲
Show HN: Djanban, a Django open source Kanban board with development stats
(github.com)
1 points
by
diegojromero
9y ago
|
0 comments
22.
▲
by
diegojromero
9y ago
Besides what others have commented, I'd like to point some more metrics that help you model your board: - Task classes. - Lead time. - Cycle time. - Number of backward movements for any list. - Cumulative card evolution. There are some