HNHacker News
TopNewBestAskShowJobs

nawgszy

429 karma · joined April 20, 2017

submissionscomments
nawgszy··on Build your next app with a graph database
> >If it's already running in production you have to hope you don't accidentally corrupt production data

Or you write use a read replica to transform your data into a non-live DB and validate it before you put it into production, with backups of your final old schema available? Plus I really don't think a migration is that hard. Much harder than having a litany of shitty backends you have to glue together in your front-end app, trust me as someone who's done both.

I mean, I hear you, persisting data is hard, but that's not the database's fault, it's because you pick two of three on data: performance, persistence, and flexibility

> a database typically

But that's not the "worst performing" part of the stack, that's the highest latency part of the stack. Is there some specific reason you can not have co-located web & db servers? Also, is there a reason you still reference 2012 disk numbers when SSDs clearly have reduced all "disk" operations by an order of magnitude?

> just extending the data

What I mean by this is if you start with a minimal amount of columns in your database, and someone is like "we need new property x", it's easy to add X outside a migration - adding new columns or new tables does not require migrations if you don't modify existing columns

So this is my approach. Use as few bits as possible to persist your data, and then you can generally add new features migration-free

nawgszy··on Build your next app with a graph database
Well, this was maybe a bit entry level description.

Q: "databases are often the worst-performing part of the tech stack" - compared to what? nginx throughput? I find this to be a bit of a strange view, surely business logic is always the slowest part of the tech stack

Q: "What happens if that int should actually be a float?" - how often do you actually need to run migrations versus just extending the data? From my end, I have a small idempotent database schema-maintaining tool, and if I need a new column or a new table there's no need for a migration, and you know your whole stack will interact with the new schema or old schema identically assuming you set sane defaults etc. I've built a lot of medium-quality low-traffic apps so I'm yet to encounter a real-world case where a migration wasn't just bad planning

nawgszy··on Build your next app with a graph database
Could you say more about some of these times? I'm curious what it means in more concrete terms.

I only say this because I am a UI engineer who has been in some scrappy situations, so obviously I don't get to change the data model. What kind of structures do you find that "hit the database too hard" or otherwise invoke performance penalties?

nawgszy··on Linux Mint drops Ubuntu Snap packages
Just what we all want on our production hosts.
nawgszy··on Brython – A Python 3 implementation for client-side web programming
>What's the matter with publishing to PyPI

This is a succinct guide to publishing a PIP package: https://medium.com/@joel.barmettler/how-to-upload-your-pytho...

An npm publish requires you to run `npm publish`, assuming your `package.json` points to the entrypoint of your code. Remember: `package.json` is pre-populated when you start your project with `npm init`.

Also, I was able to run my own NPM instance with a zero-config tool, I expect Python has parity there.

Anyways, pip... Just the other day, I went to use a Python project I had been regularly using, and without any changes to Python, my OS, pip, or the project, it completely started failing. Some errors that the `ssl` module wasn't available. How can a module not be available? There was no easy solution, all to something triggered by nothing. This install was literally done thru a source-controlled script too. It's a pretty awful situaton.

Anyways, NPM has never so wholly failed me, and in the worst cases where it fails it usually has helpful messages directing the user what to do.

That plus tools `npx` make it pretty clear to me, Python is literally version and dependency hell. NPM has had this all on lock for years now

nawgszy··on The Faces of Microsoft (2017)
A very agreeable comment. I think your edit surmises it pretty well actually. Take care!
nawgszy··on The Faces of Microsoft (2017)
That's exactly the distinction I was making. Do you call Ericsson a tech company? I certainly never hear them in that bundle.

Again, "tech" != "technology" in this domain in my view. It's the double-great-gp or so that says it, but "tech" in my view leans towards companies with humungous software outreach and data ownership, so clearly FAANG but also Microsoft, Palantir, data warehouses, that's the kind of thing I put in this "tech" bucket. It's a type of company that probably knows more than it should about a lot of things.

And again, this isn't the "Wikipedia" definition (which itself has context-based caveats...), but my opinion and experiences involve this being the sphere of companies one calls a tech company today. I apologize for my inflammatory tone in the other comment and hope I have explained my point, even if you hold a different experience

nawgszy··on The Faces of Microsoft (2017)
What kind of companies do you call "tech" companies then? I can't really understand the objection I'm facing, when people tell you their stock portfolio is heavy in tech do you really think companies other than the one I listed? I live in the Bay Area so maybe things are skewed to "local" companies but I held a similar opinion when I was still in Canada too...

EDIT: Just to hammer it home, search "is faang tech" and weep that "corporatefinanceinstitute.com" is on my side

nawgszy··on The Faces of Microsoft (2017)
I'm not sure if this is intentionally obtuse, but yes "tech" as a slang term doesn't mean "technology", it describes a type of company largely known for the prowess and scale of their user-facing software. This includes such entities as Facebook, Google, Apple, Microsoft, Netflix, and Amazon, but is not inclusive of course.

Tesla, on the other hand, clearly produces technological artifacts - quite impressive ones, at that - but they are not a "tech" company within the colloquial context you've stumbled into

nawgszy··on Brython – A Python 3 implementation for client-side web programming
I guess this might not strictly belong to "the package ecosystem", but I strongly disagree that you can compare the npm packaging story to the pip packaging story. Publishing to npm, hosting your own npm instance, configuring npm to look behind proxies for certain packages, an opinionated `package.json` with real functionality beyond dependencies, a unified entrypoint, wow it actually boggles my mind to hear Python people say pip is even in the same room as npm.

Definitely let's be clear - babel & webpack and the associated ecosystem are a pain, but those are mostly borne of necessity to transpile HTML/CSS/JS from frameworks, and not because node.js itself isn't a decent language.

Finally, I don't really follow all this business about the lack of standard library. Can you explain to me what you mean? What parts of the Python standard library are a part of your everyday toolkit? I've built a lot of web apps over the years and the only time I've ever used lodash is for throttle and debounce.

nawgszy··on US online grocery sales hit record $7.2B in June
Fair enough, that's a good counterpoint, and I do agree seeing all the data from the source without our limited bucketing would be very interesting.
nawgszy··on US online grocery sales hit record $7.2B in June
I agreed with you at first, but I recall the Bay Area having one of the earliest shutdowns in the US, and that started March 17. While some companies were definitely sounding the WFH alarm about a week prior to that, I think the March -> April jump would've been more incongruent with April -> May jump unless COVID wasn't the only driving factor behind the August -> March growth in the first place.
nawgszy··on US online grocery sales hit record $7.2B in June
This article feels a bit "no shit", but there are a few interesting numbers in the table there.

* August 2019, 16.1million monthly users, 1.2billion revenue

* March 2020, 39.5million monthly users, 4billion revenue

* June 2020, 45.6million monthly, 7.2billion revenue

Not sure how best to format on here, but this is apparently a high growth thing both before and during covid.

nawgszy··on Limitations and pitfalls of the job interview
Well, then you can just work out a deal to not monetize it.

Your objection is of course valid - extra workload on top of a normal job probably has its limits. But the fact one is willing to pay those who are willing to be paid for such an interview doesn't suddenly make it a strict requirement ha.

I must say though, I also view the interview standard I've faced - quick phone screen, 1h tech screen, 4-6h onsite (probably online now) - as adding up to a lot of time very quickly, especially as the "onsite" time is of course awkward when it means you take PTO to go to an interview. In this sense, I'd probably rather have an ~8-12h coding task than a 4-6h onsite. Maybe even a higher factor

nawgszy··on Brython – A Python 3 implementation for client-side web programming
Sure, but that's being positioned as a "huge advantage" vs. JavaScript, which I hope I do not need to explain to you the irony of
nawgszy··on Brython – A Python 3 implementation for client-side web programming
>the lack of a standard library in Node.js is one of it's biggest pitfalls

>npm / yarn ecosystem sucks compared to what you get with Python and PyPi

So you claim Python has a better standard library AND a better package ecosystem? That's bold. Care to expand on why you feel this?

I ask because of this. From the perspective of a JS dev who helps Python devs at work, pip seems pretty weak, its publishing story even weaker, and then both languages seem to have all their strength in their package ecosystems (Python: tf, django, dataframes, etc; JS: react, typescript, etc). So now to see you say "npm ecosystem sucks compared to pip" has me wondering what I'm missing.

nawgszy··on No More Coffee
Drug sensitivity is always such a strange thing to me. It strikes me as having characteristics of qualia - to you, going cold turkey on caffeine was apparently monstrous, but I've had the exact opposite experiences. I drink a lot of coffee, 3 cups a day average, but if I stop for a day or three or a week I certainly don't feel any pain, just a different focus.
nawgszy··on Verizon suspends advertising on Facebook, joins growing boycott
So in this case, the enemy of my enemy is or is not my friend?
nawgszy··on Show HN: Switchboard – A mDNS based reverse proxy for personal infrastructure
Ok, I see. I did some reading and it looks like this to me:

* the DB is supported by a backing file

* this backing file supports multiple read threads simultaneously but writes are locked via filesystem locks

* write performance with multiple writers is therefore dangerous

* read performance is good if no one is writing and consistent even if someone is

nawgszy··on How to Rename Your Master Branch to Main
This seems like a pretty disingenuous representation of the progress made under the pressure to use inclusive language.

When I was young, it was really popular to refer to things via homosexual slurs to show how cool you were. Can you imagine how much trauma such an action imparts on someone who is a part of said slurred out-group when it is widespread and socially accepted?

I think that all social change is imparted through pressure, and the pressure to use language in a fashion minimizing slurring, outcasting, and denigrating structures is important. It's true that in this instance, it may not make sense and may be an intrusion on you and what you feel - and that's okay. It's also important to put the same pressure back that says "this piece of language does not have negative connotations and taking it away is policing free speech".

Surely you see how it can be appropriate or not appropriate to push back given the subject material.

nawgszy··on Show HN: Switchboard – A mDNS based reverse proxy for personal infrastructure
That seems dangerous? How can it be so? Surely multiple instances of SQLite shouldn't read the same backing file..
nawgszy··on Show HN: A maximalist CSS framework for full stack developers
Why is this targeting full stack developers? Seems like a quite simple CSS framework.

To be honest, it's also really quite simple. I don't have much feedback - it's basic and it works to that level - except for that "maximalist" and "for full stack developers" didn't register with me, a full stack developer, so you might want to try a different branding

nawgszy··on How and why GraphQL will influence the Sourcehut alpha
I would say that you're also completely ignoring the benefits of typing. It's fair to say JS's lack of typing is a deep flaw, and so tools like TypeScript and GraphQL (which pair magically by the way; free type generation!) are ways to lift the typing from the backend to the frontend and give frontends stories around typing and mocking APIs that greatly improve the testability of the code.
nawgszy··on You can bypass YouTube ads by adding a dot after the domain
Makes sense that they'd use relative to / urls, no? Otherwise how could you handle youtu.be versus youtube.com versus...
nawgszy··on Old Code Gets Younger Every Year
>Upgrading between node releases has been painful to me

This is surprising to me. What kind of deps do you have that are changing? From my view starting around Node 4, only Buffer really went thru big API refactors, and otherwise going LTS -> next LTS is seamless

nawgszy··on Show HN: Grid.js – Advanced table library that works everywhere
This is surely a satirical comment?
nawgszy··on The rise of React
I think there's a couple repos that provide exactly that - a webpackOverrides.js file or something similar.

I also think that next.js might have some of what the gp is interested in

nawgszy··on Everything You Didn't Want to Know About Lua's Multi-Values
Can you unpack tuples in Python? In JS for example you could write

    const [result, errmsg] = do_stuff();
And I guess you would be fine to omit the errmsg, even though I admit the resulting [result] syntax would be dissatisfying
nawgszy··on Boeing, expecting a long slump, will cut 16k jobs
Airplanes are notoriously slow. I would expect turnaround on a new airframe to be over a decade, and on a new design at least 5 years.

That said, I don't think a "new design" ontop of the 737 airframe exists. The whole point of the 737 Max and its failures is that the airframe was old so they tried to make a radical design change and handle the shortcomings in fly-by-wire software, but who on earth is going to trust Boeing with that now?

nawgszy··on California, Oregon and Washington announce western states pact
It's a bit funny to see capitalist corporations making obscene amounts of money violating laws and ethics and trickling a bit of that ill-gained wealth down to software engineers, who then turn around and say everyone should have wealth like them and not need gov't assistance when their own company is one of the drivers of inequality...
Page 1 of 5Next →