Better HN
topnewbestaskshowjobs
Log inSign up

pythonaut_16

1,567 karma · joined Nov 23, 2016 (10y ago) · 686 submissions

Submissions

comment 2y ago · link · parent

Editorializing this with an implied stutter really detracts from the points you're trying to make.

comment 3y ago · link · parent

Didn't the 14 inch M1 Macbook Pros start at $2000 with 16GB of RAM?

So you now have the option of a $400 cheaper 8GB version or a $200 cheaper 16GB version.

comment 3y ago · link · parent

This comment thread kinda proves the point though.

Instead of discussing the merits of 8GB vs 16GB commenters are incredulous that Apple would even offer an 8GB laptop in 2023.

comment 3y ago · link · parent

I know multiple people coming up on their 3rd year with an 8gb base-model Macbook Air with no complaints or thoughts of upgrading.

comment 3y ago · link · parent

Thank you for proving the parent's point. The base model is insufficient for your use case.

You know Apple's base models have a history of being insufficient for your use-case and that upgrades are pricier than you'd like.

You see the cost of the base model and are upset when you find that you will need to spend more than that base cost to get the model you want.

Apple devices and upgrades are costly, without a doubt. But there is clearly a market for whom the price and capabilities of the base model is more than enough.

comment 3y ago · link · parent

Worktrees are super useful to avoid interrupting your work in progress when you need to load another branch to help someone debug something.

comment 3y ago · link · parent

Which alternatives have you found to be better?

Zoom isn’t great but Teams is worse.

comment 3y ago · link · parent

In my experience, the documentation is great for most of the major libraries and the common path.

Once you get away from those things get sparse. Several really common libraries have glaring omissions (or entirely missing) module docs, and others just barely cover the common web use case.

It’s not uncommon for me to have to open the source code to try and understand what some function actually does.

Elixir is still my language of choice and has a better docs ecosystem than most languages but the community demonstrates a bit of a blind spot also.

comment 3y ago · link · parent

Have you seen Elixir list comprehensions?

  iex> for n <- 1..4, do: n*n
  [1, 4, 9, 16]
Or for your example:

  iex> l = 1..3 # equivalent to [1,2,3]
  iex> Enum.reduce(l, fn item, acc -> acc + item end)
  # or
  iex> Enum.reduce(l, &(&1+&2)
  # or the built in
  iex> Enum.sum(l)
  # all return:
  6
https://elixir-lang.org/getting-started/comprehensions.html https://hexdocs.pm/elixir/1.12/Enum.html#reduce/2 https://hexdocs.pm/elixir/1.12/Enum.html#sum/1

None of which take away from your point though: it's definitely a different mental model than you use for Python/Go/Javascript.

comment 3y ago · link · parent

Also a risk of polyglot environments. You can easily end up with teams that lack deep knowledge of the languages and libraries you're using.

comment 3y ago · link · parent

Thanks for sharing!

We could certainly debate the objective merits of Elixir vs other languages (which seems to be the primary discourse in this thread and elsewhere) but hearing subjective developer experiences is also critical.

It doesn't matter if Elixir is objectively better or not, if lots of devs who are exposed to it are having a hard time it's worth asking why.

In addition to developers not wanting to expend additional effort to learn a new language or paradigm, I believe there are gaps in the ecosystem especially around medium-advanced topics.

comment 3y ago · link · parent

Could you expand on what you mean by this?

Module design doesn't seem any harder than class design in JS or Python.

Do you mean the language is generally harder for non-developers? Or that Elixir is harder for JS/Python developers to pick up and write good code? Or something else?

Writing well designed Elixir code does seem to require a fairly different approach from most common OO languages, at least at a surface level. (Although IMO that's more because you can copy OO patterns you've seen before without thinking much about why they're good patterns than because good design in Elixir is much different from OO)

comment 3y ago · link · parent

Do blue collar workers require healthcare from college educated people? Do they benefit when American industry is competitive on in the international marketplace?

We shouldn’t be leaving people behind but the idea is that we all benefit from an educated workforce.

There’s plenty of arguments to be made over the details but let’s not miss the big picture here.

comment 3y ago · link · parent

My recollection of the details is fuzzy, but I think a common solution to this is connection draining. You set up your deploy to bring up the new instance and direct all new traffic to that one and then hold the old one open until all sessions/connections end.

Can't remember if/how that routing was accomplished in the BEAM (Erlang/Elixir VM). It's definitely possible but you might have to implement it yourself.

comment 3y ago · link · parent

Wonder the Apollo dev or one of the other Reddit 3rd party apps would be willing to migrate or create one.

comment 3y ago · link · parent

Do you have any recommendations for more resources like this?

I've had a hard time searching for patterns and tips for modeling common data/features for web applications.

comment 3y ago · link · parent

However, be aware of potentially leaking your company's private or sensitive information when doing this.

Nothing you said negates the potential for leaking your company's private or sensitive information by submitting it to a third party.

comment 3y ago · link · parent

Were the unhelpful docs written by ChatGPT? Otherwise your story doesn't support your conclusion.

It's more likely LLMs will result in better docs for some projects and worse docs for others.

comment 3y ago · link · parent

I really hate how the wealthy benefit from my washer, dryer, dishwasher, Internet, air conditioning, access to a huge variety of food... When will the wealthy start passing the benefits of progress on to the rest of us?

We've got big problems in our economy and income inequality is certainly one of them, but it's asinine to pretend that most individuals in society have not benefitted from technological progress.

comment 3y ago · link · parent

Unequivocally yes. Not every usage of a screen in education is beneficial.

But there are absolutely numerous use cases where being able to display graphics on a screen (or even better interactively) is a massive benefit. Think of any sort of science that's better shown with animation than just a static image on a page for example.

comment 3y ago · link · parent

And yet the proliferation of screens capable of displaying information and graphics has been an absolute boon to education.

comment 3y ago · link · parent

This is sort of what HTTP codes get at though.

The server doesn't know what you want to do with a 400 but it knows that the problem is with the request for example.

comment 3y ago · link · parent

I don't disagree, but I don't think it's fair to lump AWS in with the rest of Amazon's side projects.

If we're comparing Amazon and Google you almost have to compare AWS to Google search since AWS is driving a huge part of their profits.

comment 3y ago · link · parent

"Having engineering problems to solve is proof that you shouldn't try to do anything."

Why can't we just appreciate a creative solution to a problem?

comment 4y ago · link · parent

What about a system where only some fraction of the ticket sale has to present matching ID?

Example 1: Limit of 6 tickets per purchase. I buy 6 tickets, I invite 5 friends. I show ID at the door and it doesn't matter which 5 friends I bring with me.

Example 2: Same deal, but instead we're allowed 1 "flex" ticket in case someone backs out. Or some proportion allowed as flex.

Obviously this still allows scalping, but it seems less attractive for a scalper to have to attend with the people they're scalping to. Especially if you make 50% of the group show ID.

comment 4y ago · link · parent

Imagine saying this 80 years ago about any number of technologies that are cheap and commonplace today.

comment 4y ago · link · parent

> the power of numbers

Maybe I'm misunderstanding you, but isn't that the point of democracy? If enough people agree with your view then that's what gets implemented. The point of the parent is that you can't let people with the loudest voices and most free time abuse the system.

comment 4y ago · link · parent

That's more of a NIMY - Not in My Yard kind of thing.

I think the parent post is referring to the library example. At a certain point you don't get to keep the land around you from being used in any way other than it was exactly when you moved in.

Eminent domain is a different issue that should have a much higher barrier to use, and has likely been abused historically.

comment 4y ago · link · parent

Google Takeout will let you export all of your data, mostly as JSON. There are some parsers for it on the web.

comment 4y ago · link · parent

I thought it was fair given their oversimplification of what delivering messages at scale requires.

The point isn't that the Earthquake Detection isn't impressive. Why do we have to deny Google any credit here? Is it just because they're a big tech company?

IMO it feels like another "I could build Dropbox in a weekend" comment.

1
456
23