HNHacker News
TopNewBestAskShowJobs

coleifer

2,485 karma · joined November 3, 2009

submissionscomments
coleifer··on Show HN: PugSQL, a Python Port of HugSQL
Mike, you're precious!
coleifer··on Show HN: PugSQL, a Python Port of HugSQL
A simple Python interface ... built atop the most powerful and widely used Python ORM. This is the library equivalent of virtualization!

This is crazy, right? Let's take SQLAlchemy, all the experience and expertise that went into building it, throw that out the window and make the dumbest possible wrapper on top.

coleifer··on Ring: Advanced cache interface for Python
I'd rather have a sane API.

    def configure_ring():
        if DEBUG:
            return Ring(backend='debug')
        else:
            return Ring(backend='memcache', ...)

    ring = configure_ring()
    
    @ring.cache(expire=60)
    def get_url(...):
        ...
Tons of other libraries out there that implement this exact pattern.
coleifer··on Ring: Advanced cache interface for Python
Although this is true, it is terrible from a developer UX perspective.

Yes, you can "dynamically"-decorate your functions at run-time using whatever global conditionals.

Yes, you can re-decorate the ring decorators.

But you shouldn't have to.

This design is guilty of the cardinal sin of being un-pythonic.

coleifer··on Ring: Advanced cache interface for Python
Extremely poor design:

* Not DRY. What if I want to use a cache for production but disable caching in development? And I have 10s or even 100s of functions that rely on the cache? Because the decorators contain implementation/client-specific parameters, I now have to add another entire layer of abstraction over this.

* Implementation is tied to the decorator, e.g. `ring.memcache` -- seriously? Why does it matter?

* What about setting application defaults, such as an encoding scheme, a key prefix/namespace, a default timeout?

I'm sorry but this is over-engineered garbage and good luck to anyone who uses it.

coleifer··on Navy pilots report unexplained flying objects
To wit, there seems to be an intelligent phenomenon going on, and it appears throughout history. He doesn't say anything about what it could be, simply is describing the phenomenon.

Also, I've read his books. Wikipedia quotes don't really give the same impression as his writing.

coleifer··on Navy pilots report unexplained flying objects
Jacques Vallee, a noted computer scientist in his own right, is one of the best reads if you're interested in this stuff. He's not a crackpot and doesn't seem to be pushing an agenda one way or another.
coleifer··on Please don’t theme our apps
The gnome/gtk team introduces breaking changes to the styles and themes all the time. I think this is misplaced outrage.

One of the things I like most about gtk apps is the ability to theme them to achieve a uniform look across all my apps. I would rather use a slightly less functional gtk app than a qt/kde thing for this reason.

Users who care enough to mess with themes by necessity accept that sometimes things may need some tweaking. Most popular themes are on gh and have responsive maintainers who are invested in their themes looking good/uniform. The burden should be placed on the theme maintainers and the users who choose to use non-default configuration, rather than disabling themes on an ad-hoc basis.

coleifer··on Procrastination is not a time management problem, it is an emotion
Here's a similar story:

A guy is standing on the beach and his clothes and hair are all ablaze. Another guy says to him, "dude go jump in the water, you're on fire!" To which he responds, "I know, just a minute tho, I gotta figure out where this damn fire came from."

coleifer··on A Tale of Query Optimization
Unbelievable that this is even getting upvotes. Anyone with a basic understanding of relational databases could see that nested o(n) ilike filter was the problem. I kept reading in the hopes that maybe something actually interesting was going on, besides ineptitude. Disappointing.

When you have a huge list like that in a filter, the answer is to treat it like a table and perform a join. Then the query planner can optimize the ordering of the loops. But this is just mind-boggling ignorance dressed up as a "debugging horror story".

coleifer··on AMD Ryzen Mini-STX: ASRock’s DeskMini A300
Yea I have a ryzen5 and was shocked that it wouldn't boot without a graphics card. No biggie, so I guess this makes sense. No need to buy another card, presumably something akin to the Intel embedded graphics..
coleifer··on AMD Ryzen Mini-STX: ASRock’s DeskMini A300
What would you use this for? Gaming? 4k home media? Bitshekel mining? General purpose computer? I had to Google the term apu and I'm still not sure if I understand (whether it's marketing or something distinct).
coleifer··on Was it an invisible attack on U.S. diplomats, or something stranger?
I'm surprised gulf war syndrome wasn't mentioned in the article. What ever ended up being the consensus on that?
coleifer··on New features planned for Python 4.0
It's a new psf initiative, "blog network 4.0" to juice our Google stats for the big upcoming release.

Remember the new python official motto: what is dead can never die.

coleifer··on How to Join a Social Network in 1998
Ah, it was a simpler time..
coleifer··on Why what we think we know about schizophrenia is wrong
This type of belief is exactly what I was referring to when I said that one of the main features of his illness is that it resists anything that we would consider rehabilitating. Attitudes like this add to the sense of shame: "why don't you get out more and try to be normal like us. Everyone thinks it's a good idea for you." Makes me sick.
coleifer··on Why what we think we know about schizophrenia is wrong
Extreme agoraphobia, social anxiety, very little to talk about... Most 31 year olds are working, raising children, etc., and don't live in their parents house. Don't underestimate the shame he feels when around others. Outside his family, I think it is overwhelming for him.
coleifer··on Why what we think we know about schizophrenia is wrong
I should have clarified, those groups are organized by a local psych facility, and are for people with mental illness.
coleifer··on Why what we think we know about schizophrenia is wrong
My youngest brother has schizophrenia, which started when he was 19. He just turned 31, and were it not for his family supporting and caring for him, I'm sure he would be homeless or worse. He's one of the most sensitive, gentle people I have ever known. My wife and others who have gotten to know him would agree.

Although he's "stable", thanks to an injection every 3 weeks, he's not going to ever get better. In fact he continues to retreat further and further away from the world and life. Why don't you go to the bowling group, movie night, job placement, etc, I used to ask him (events organized by a local psych facility for their patients, etc). Those people are crazy, he said.

It's a baffling disease. Besides his hallucinations and delusions, the defining feature seems to be that it resists treatment of any kind that would lead to what you and I would call a normal life.

coleifer··on We Can Do Better Than SQL
And thus a new SQL dialect was born.
coleifer··on A 72-year-old French man has crossed the Atlantic in a giant orange barrel
Shoot that's nothing, I flew across the Atlantic in a giant barrel with wings plenty of times.
coleifer··on To ORM or Not to ORM
Ha! Glad to see Peewee mentioned. In two bullet points: predictable apis, compostable pieces...or, learn once, apply anywhere. Or jOOQ but python. Take your pick!

If code is your thing, Peewee has quite a few examples:

https://github.com/coleifer/peewee/tree/master/examples

coleifer··on JupyterHub 1.0
When would someone use jupyterhub? I've been running my own notebook server for years, but it's single-user, single machine. Is hub for like providing separate jupyterlab instances for a bunch of different users/different machines?
coleifer··on Silicon Valley Is Not a Fad
Nice read, thoughtful.

Another thoughtful read, from the other side: https://nplusonemag.com/issue-25/on-the-fringe/uncanny-valle...

coleifer··on Search Benchmarking: RediSearch vs. Elasticsearch
How silly to emphasize things like "built as a C extension" and "uses modern data-structures" as if these were useful criteria for choosing a search engine.

It's about minimizing the effort needed to find what you're looking for. Speed of index construction time, unless we're talking orders of magnitude, isn't really meaningful. I don't know if this is just a really clumsy attempt at "marketing" or what, but I can't imagine this is going to convince anyone to drop es for this thing.

coleifer··on Amazon ‘flooded by fake five-star reviews’ – report
I bought some cologne from Amazon, (seller was listed as "Amazon") which turned out to be fake. The scent was wrong, the bottle... except the box which seemed authentic but had the barcode excised with a razor and covered up with a sticker.

When I left a straightforward review, it was taken down with no explanation and no recourse. I called and got a refund, but the fake 5-star reviews are all still up.

coleifer··on Phone Addicts Are the New Drunk Drivers
You do what you want, but I don't think that's a helpful way to act. It might give you a rush, a little feeling of control, but if you come at someone aggressively like that and they think theyre just minding their own business, now you've just riled them up for no reason. Just adding more anger into the world.
coleifer··on The key to loving your job in the age of burnout
Yeah, I have had similar experiences. Besides just "making physical objects", there's also the camaraderie of working with others directly. Working directly with other people I was laughing, talking, listening all day and those were really fulfilling relationships.
coleifer··on Phone Addicts Are the New Drunk Drivers
Motorcyclist as well, and yes, I watch for the characteristic head-bob and try to take extra care around people on their phone. I've once or twice made a "hang-up" gesture but who am I kidding, it doesn't make a difference.

Now, the worst part: about a month ago I got pulled over for texting and driving. I wasn't even thinking about it. The cop said, "were you texting?" And I said, "I don't think so, let me check"... pulled up my phone.. yeah a half-written text to a friend. I got a ticket and have kept my phone in my pocket since then.

Something funny happens. I would think, "ah I'll just check that message, maybe it's important?" Or, "I've got to tell someone something" and out comes the phone. Mindless. Or maybe I think I can drive and text, it's those other clowns that are the dangerous ones. I'm glad I got the ticket. I deserved it. I think it helped me connect my actions to real life consequences. Glad it was just a ticket and not a wreck.

coleifer··on Prisma – Database tools for modern application development
Docs are pretty horrible to read on my phone, chrome on Android. Panels are getting put side-by-side and the text inside is smashed to like 8 characters across. Too much whitespace. It's like ok ok you've gone and designed the fuck out of your page, but why'd ya have to do it to the docs? Unreadable. Since it sounds like the devs are watching this thread I figured I'd mention it.
← PreviousPage 5 of 17Next →