Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
epr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
epr
3y ago
> Putting in time to learn the product as a user of it before trying to develop for it is time well spent This should always be priority #1 when you first arrive. Not only is it beneficial for understanding your work, but you can never g
62.
▲
by
epr
3y ago
> How do you suggest one might fix that issue? Also pin the cache to a hash of all dependency versions? Pretty much. Recursively collect dependencies by analyzing the AST of the code. > And then if one minor update And let's say
63.
▲
by
epr
3y ago
def hash_code(code): return hashlib.md5(code.encode()).hexdigest() Be warned. The above function is used as part of the hash. The ostensible purpose is to prevent using cached values of functions who's code has changed, b
64.
▲
by
epr
3y ago
> We call it "prompt caching" No, that's something completely different than what bravura is talking about, which is why he made a comment to say explicitly that he still thinks you're missing the point. From your roa
65.
▲
by
epr
3y ago
I have a recurring nightmare where web developers create a one world government where they enforce a law requiring all data be converted to JSON before transmission. Existing network protocols are replaced with JSON-compatible versions, and
66.
▲
by
epr
3y ago
Pretty ironic, right? The entire article is the process of the author making the same mistake he's complaining about. For anyone reading the comments looking for more helpful guidance, the most generally helpful advice you will get is
67.
▲
by
epr
3y ago
> you'll describe something and you'll get a full 3D scene, with 3D models, source of lights set up, etc. I'm always confused why I don't hear more about projects going in this direction. Controlnets are great, but th
68.
▲
by
epr
3y ago
This is not random, as many are suggesting. 100% winrate static injection strategy (survived 20+ times): calmly composed carefully expertly safely successfully luckily ingenious fortunately survived
69.
▲
by
epr
3y ago
Well, I suppose what's trivial for me might be advanced for you :)
70.
▲
by
epr
3y ago
Most stemming use cases are trivially solved with a regex. That's the point he was making. The difference between a beginner and expert with regexes is quite a lot.
71.
▲
by
epr
3y ago
Please don't do that! Good reasons to borrow ideas from make would be familiarity for those coming from make, but definitely not because make is ergonomic. The entire reason you must put in tons of mental effort to grok this one true m
72.
▲
by
epr
3y ago
>> Isn’t that just Make? > Yep! But what if we add mappings and collections? These are called pattern rules in make: https://www.gnu.org/software/make/manual/html_node/Pattern-R... This is the b
73.
▲
by
epr
4y ago
The creator of this library (antirez) is a regular here on hn. I believe this is used by Redis. https://github.com/antirez/sds
74.
▲
by
epr
4y ago
Glad I'm not the only one. Honestly, whenever bash comes up in any context, 10 different people feel compelled to express this whole replace all bash scripts with python sentiment and I just have no clue what the fuck they're talk
75.
▲
by
epr
4y ago
The lack of mentioning the original htmx is incredibly confusing considering that it does support at least some of the exact same functionality, down to the hx- attribute prefix. Questions relating to this are probably going to dominate thi
76.
▲
by
epr
4y ago
> It winds up teaching you that the needs of people are irrelevant, and only the needs of the market matter. The market is simply people's wants+needs in the aggregate
77.
▲
by
epr
4y ago
This adds c style for loops to hy, which runs on the normal cpython vm, and therefore can make use of the thousands of open source python libraries available. My reply to the post was tongue in cheek. The point is that you can add on arbitr
78.
▲
by
epr
4y ago
Some people have a lot of time on their hands. (defmacro cfor [initialize condition advance #* body] `(do ~initialize (while ~condition (do ~@body ~advance)))) (cfor (setv i 0) (< i 10) (+= i 1) (print i)) This r
79.
▲
by
epr
4y ago
4. Copyright protection does not apply to recipes themselves, but does apply to the fluff. IANAL
80.
▲
by
epr
4y ago
> a pure capitalism based farming community would optimize for producing just in time and just enough to maximize profits which would lead to a complete fucking collapse next time a drought came around I'm not sure where you got thi
81.
▲
by
epr
4y ago
What? Wasn't ANSI CL standardized in 1994? Besides incremental performance and security improvements, what needs to change? Compare this to other popular languages from C++ to Python, which surely generate tons of additional work by co
82.
▲
by
epr
4y ago
Bug report: Sound permanently on after hitting next button once on Chromium 104. Next button does move to next video, but also enables sound. Additionally, this breaks internal state, and the button still shows the muted symbol (despite the
83.
▲
by
epr
4y ago
PowerShell and Python have very little in common
84.
▲
by
epr
5y ago
Oh, believe me, I would if I wasn't already using alt as my modifier key for navigating my window manager
85.
▲
by
epr
5y ago
Although I'm a vim user, I took inspiration from the many emacs users who swap left control and caps lock. For me, it's worth having for ctrl-l alone. After getting used to it, I can never go back. setxkbmap -option ctrl:swa
86.
▲
by
epr
5y ago
Not worse, worser
87.
▲
by
epr
5y ago
> Coding is not fun. Unlike writing, which can be a very creative endeavour, coding is not. Coding formulates algorithms into logical instructions for a machine. This statement is completely at odds with how I view _coding_. I cannot thi
88.
▲
by
epr
5y ago
Chatting with my gf, we came up with a new section (mostly her): === General Inquiries === - Answer a question other than the one being asked. Feign misunderstanding. - Give incomplete answers. Do anything you can to almost but not complete
89.
▲
by
epr
5y ago
> 1. We don't want to delete old data so we just use a "deleted" column and do that instead. Now every single time you have to filter out those results. 2. You just made this thing a relationship now every time you have to
90.
▲
by
epr
5y ago
cron does that for me, and it's already installed
More ›