HNHacker News
TopNewBestAskShowJobs

ajjenkins

521 karma · joined February 1, 2020

submissionscomments
ajjenkins··on The Case for Abolishing Elections
Can you provide more detail on how this would actually work or somewhere I can read more about this?

Like, if there are two people participating and one’s random number is 01 and the other’s is 11 (binary), and you XOR them you get 10. But that doesn’t match any of the participants’ numbers, so who would win? Or does the number of possible outputs need to exactly match the number of participants? If so, does that mean the number of participants needs to be an exact power of 2?

ajjenkins··on Facebook Suspension
You should add “Ask HN:” to the the beginning of your post title.
ajjenkins··on Ask HN: Help me pick a front-end framework
I agree with the other comments suggesting React. I actually typically recommend just plain HTML and CSS for most projects. But it sounds like you’re building something with a lot of interactivity, so something like React (or Vue or Svelte) is going to make your life a lot easier.

I also agree with other comments that you should postpone worrying about iOS/Android apps for now. Targeting those platforms adds a lot of complexity and will slow you down. So you should avoid them unless your app really only makes sense as a native mobile app.

If down the road you do decide that you want native mobile apps, I recommend using React Native with Expo. Transitioning from React to React Native is relatively easy (from a concepts perspective). But React Native doesn’t use HTML or real CSS (although it’s heavily inspired by it), so you will need to rewrite a lot of your code and change all of your dependencies over to React Native-compatible versions. With React Native, you can have a single code base that targets web, iOS and Android so you don’t need to maintain multiple versions of your code.

If you don’t like React Native for some reason (e.g., it’s made by Meta), you can also look into Flutter which is made by Google.

ajjenkins··on Francis Fukuyama: Paths to Depolarization
I’ve never heard of the author until today, so I don’t have any bias against him, but I think his argument makes a lot of sense.

Personally, my preferred solution to polarization is voting reform (I actually think approval voting would be a better fix than RCV though) but he makes a good point that voting reform is a long term solution to a short term problem. I still think it’s worth pursuing, but there’s no way it will help us with the 2024 presidential election, for example.

The Democratic Party moving to the center could be done much more quickly, and if the strategy was successful in winning elections, might force the Republican Party to similarly adopt more moderate positions.

Another “solution” to polarization in the US is a civil war. This should definitely be avoided at all costs, but would probably eventually reduce polarization when the winning side forces the losing side to adopt their policies (like how the North forced the South to end slavery after the Civil War).

Having a single party dominate politics for a while sounds a little scary, but if they’re democratically elected, I guess that’s what people want, right? And, to me, it’s a much more palatable short-term solution to polarization than Civil War II.

ajjenkins··on “Autistic people can’t acknowledge when they’re wrong”
It’s not clear in the article, but if this is all from the same company, this sounds like a really bad company to work for. The author is probably right that they’re being treated unfairly because of their autism (which is wrong), but I’d bet that the neurotypical engineers at the company also have experiences of being dismissed by management.

The example that stuck out to me was “should we migrate our website to React”. The questions the author wanted to ask seemed like very normal questions to ask, and good questions that any good engineer would ask before answering a question like that (unless they already have a lot of context about the website in question).

I don’t have autism, but I’ve worked with people with autism, and at my job I think they were treated more respectfully than what the author describes. It’s possible that they’re being mistreated but I’m just not seeing it though.

I guess what I’m trying to say is that although I can’t directly relate to the author’s experience, I would still recommend that they try to find a new job with a less toxic workplace culture.

ajjenkins··on Ask HN: What are some cool but obscure data structures you know about?
I recently learned about deques in Python (other languages may have it too) which is like a linked list but it keeps pointers for the first and last elements. This allows you to insert/read/remove elements from the beginning or end of the list in constant time. I’ve never used it, but I could imagine it being useful in certain situations.

https://docs.python.org/3/library/collections.html

ajjenkins··on Ten Percent of the Brain Myth
Left brain vs. right brain thinking is another myth about the brain that seems to be much harder to dispel.

https://en.wikipedia.org/wiki/Lateralization_of_brain_functi...

ajjenkins··on Show HN: Logto, OSS to build sign-in experience and user identity within minutes
This looks cool. I could see myself using this once it’s a bit further along. This looks most similar to Clerk. For me, the best service is the one with the best SDK and documentation. I was excited about Clerk because they have SDKs for Remix and Expo (React Native).
ajjenkins··on Ask HN: What's is your go to toolset for simple front end development?
Definitely agree with other answers that you should look into classless CSS frameworks. You can see a list of popular options here: https://www.designinspiration.info/classless-css-frameworks/

You can get pretty far with just HTML and dropping in any one of those CSS frameworks.

Since you’re using Flask, I would just make some endpoints that serve HTML using Jinja2 templates. Depending on what you’re doing, you might not need JavaScript at all. You can trigger backend stuff using HTML forms with form actions. And with a classless CSS library, the form should look nice too.

If for some reason you want to keep the front end totally separate from the back end, a good framework for building web apps is Remix: https://remix.run/ . It makes it easy to build highly performant websites and has nice helpers for data loading and actions. I also like that it keeps client side JavaScript to a minimum, which keeps things simple and makes your website faster.

ajjenkins··on Show HN: Dethrone.gg – Its time to ditch discord, guilded, and slack
It would be helpful if you had a comparison table that compares Dethrone to the competitors you mentioned. I like Slack and Discord, so I’m not sure why I should be seeking out an alternative. Most of the features highlighted fall under the category of “don’t worry, we have that feature too” instead of “here’s a feature that is unique to Dethrone”.
ajjenkins··on Show HN: Ferris, social network for IRL activities with your closest friends
I really like this idea so I downloaded it and convinced my friend to download it too. But I think it’s broken. I tried adding an activity, but I just get a grey screen that says Activity at the top.
ajjenkins··on Ask HN: Coping with Hair Loss
I tried Rogaine (minoxidil) and it didn’t work for me. I thought about trying oral finasteride, but I read that a small percentage of people experience sexual dysfunction as a side-effect, which didn’t seem worth the risk to me.

But I did some more research and found some early studies on PubMed that suggest that topical finasteride works just as well without the negative side effects.

The only company I could find selling topical finasteride is from ForHims. I’ve been using the spray for about 3 months and my hair is definitely thicker now, but it hasn’t helped with my hairline yet.

I’m not a doctor, so you should definitely do your own research or better yet, talk to a doctor. I don’t work for Hims, but I’ve just been impressed by their products. Definitely cheaper than hair transplant surgery.

https://www.forhims.com/hair-loss/topical-finasteride

ajjenkins··on Show HN: Can you lose at Wordle if you tried?
It would be nice if there was a Give Up button. I got down to 30 possible words but could not for the life of me think of what they could be. I was craving that “Ohhhhh!!!!!” feeling when you see what the remaining possible words are.
ajjenkins··on Ask HN: Simplest stack to build web apps in 2021?
I haven’t used it myself, but Next.js is a popular choice if you want to use React. It’s primarily a front end framework, but can do all of the things you mentioned in your post. But probably not the best if you’re looking for something to build a traditional web app with a database. I think there are comparable frameworks for Svelte if you’d rather use that.

But if you really want a full stack framework or don’t want to deal with fancy JavaScript frameworks, I think you’re better off sticking with Rails/Django/Express or something you’ve probably heard of.

← PreviousPage 3 of 3