Hacker Newsnew | past | comments | ask | show | jobs | submit | mdahlstrand's commentslogin

Better to have lived short and suffered than not to have been born at all?

If it helps with our environmental catastrophe I’m alright with many fewer cows being born, particularly since the lives we bring them into is so full of suffering.


Second code example:

  fileURL = saveFile("export.csv", jsonStr);
(you should be writing csvStr to the file, not jsonStr)


Updated, thanks team! (should show up in a few mins)


I went through the same thoughts as you and went straight to knex for my last project. Turns out knex also has bugs and the limitations from having it support all the databases means some really useful features are not available.

For my latest project I've gone with pg, writing sql directly, and I'm not looking back. It's so nice not having to write sql through the abstraction layer of knex.

Of course if you think you'll swap your database provider down the line, maybe stay with knex. But I really can't see why I'd want to switch away from postgres at a later date.


Have you looked at Hasura?

For some of my latest dev, I've just stopped worrying about writing data plumbing. I have a tool that I can use to update the schema from any arbitrary state to any arbitrary state so long as there are no column modifications, and then Hasura is able to query my entire schema via GraphQL.

You also get row, column, & table-level permissions, an easy auth hook, and the promise of schema stitching (which I must admit I haven't used yet, so I don't know if it's easy or performant).

I can't really speak to performance, but I think the Hasura guys did their best to use Postgres' internals wherever possible. Try it out!

Also, a similar tool is "Xgenecloud", but I didn't like it as much and have only invested time into Hasura.


hey, XgeneCloud creator here. How can we improve ? which parts you didn't like


I don't have great feedback for you, it's just that I downloaded and ran xgenecloud and was exceedingly confused what to do from the UI that it spawned. It didn't seem clear to me how I could get started, and my options were plentiful; I would've been ok to make a new database thru your UI, point your tool at an existing database, or anything else, but I just didn't have a clear path to querying a schema.

With Hasura, I could run it with about 2 docker commands and build a schema thru their web UI, use GraphiQL in their web UI to query the schema, and read docs to get a clear path on how I might use this artifact in production.

I guess I would just use Hasura if I was you and see what the experience is like vs XgeneCloud, maybe it will show you what I saw.


I hear you - thank you for the feedback. I've got similar feedback from devs who are liking XgeneCloud as well. We are in really early days of our journey - I promise to improve this flow by many folds.

The way it currently works is :

* Each new project has a folder in your filesystem where GraphQL API source code is generated on pointing to database! So when we generate APIs, we also generate source code for those APIs (node.js/express.js) behind the scenes. This is a big leap on how easy it becomes to customise APIs or put some business logic in them

* Thereafter, as and when a developer changes schema (add table, add column etc) - the underlying GraphQL code also gets updated automatically.

Here is a demo of generating GraphQL on postgres & GUI based schema design:

https://youtu.be/QEq3Mjbeelg

https://youtu.be/ETEEcY4mmEg

Feel to free reach out on twitter/Discord (in profile). Happy to help you get started.

edit: sentence corrections


I used to have a Scarlett interface and found the software buggy and without much UX thinking having gone into it. Gen 3 might be shipped with better software better but in the end I switched to Behringer UMC404HD (four channels for less than the price of two) and really haven't looked back! Plug and play as well, with physical knobs only, so no confusing software to configure.


That sounds interesting. Do you use any microphone with this interface? Like BEHRINGER C-3 for example. Do you recommend something?


Are there only four products in each category? (Browsing on phone if it's a bug).


In cars having lower weight & volume makes a big difference (your house has more space, and doesn't have to be lugged around). The safety aspect is a big part also - no risk of exploding cars (and already no risk of batteries being pierced when in a house).


Am very interested in hearing more about the methods you used. Did you just take MDMA recreationally and your depression got better, or did you do it together with (or at the same time as?) therapy? How many times/over how long time? Thank you


Recreationally in a pretty stereotypical way. Out in places I was able to meet new people primarily, but it's also very therapeutic to do with a loved one or good friends.

Generally about 200mg in a night, usually at once or 100mg twice an hour apart. That was actually quite alot to start on when you don't have a tolerance (I'm about 60kg), you could definitely start with 100mg and get something out of it. Sometimes I'd do more, sometimes less.

I was able to notice the lowered depression after two or maybe three doses within the span of about six weeks or less. No therapy, except the natural therapy of feeling very comfortable with people and being able to talk to them more honestly. Definitely had some therapy-like conversations while on it.

It felt like I was able to let go of a bunch of stupid stuff and start focusing on things that were more important, especially people. I became less materialistic, started socializing more, and had more confidence in myself and a better outlook on the future. I also seem to enjoy music more even after weeks without drugs, which is nice.


Not the poster, but I did it recreationally and got the benefits the poster is talking about. I've done it since then, each time benefiting, but nothing has really been as noticable as the first two times, the second probably being a couple of months after the first. I was quite shocked at the difference myself - this was a bit before I started seeing research results on MDMA.

And I'd like to clarify: Basically cured. I mean, I'm still a cynical person many times, but I don't have the constant worry (save for once a month, monthly hormones suck). I'm much more positive about life for the most part.


...which didn't use to be a reason for war. I recommend watching Adam Curtis' Bitter Lake. The west has more involvement in shia/sunni split and hate than it'd like to admit.


No, you have to think that you're saying it - using your inner voice, which when used still triggers minute signals to the muscles used for speech.


I don't think your inner voice triggers anything, though. I find it more likely that you have to move your tongue as if you're speaking, but without opening your mouth.


A bit late to the game, but I've really enjoyed reading Musimatchics by Gareth Loy, it explains music theory from a mathematical and historical perspective: https://mitpress.mit.edu/books/musimathics


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: