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

From your linked article:

> But personally, I don't use tell-dont-ask. I do look to co-locate data and behavior, which often leads to similar results. One thing I find troubling about tell-dont-ask is that I've seen it encourage people to become GetterEradicators, seeking to get rid of all query methods.


> Langstroth hive frames can weigh as much as 40 to 90 pounds and must be lifted up out of the hive.

For anyone surprised or unfamiliar, that’s the weight of an entire box with 8-10 frames, not the weight of a single frame—while that’d be delightful in terms of honey production, it’d be miserable when doing hive checks, etc.


I'll second @josevalim's comment, but I also wanted to mention how delighted I am to find out today that a joke[1] I probably spent way too much time 7 years ago has actually served a useful purpose!

1 - https://hex.pm/packages/leftpad


Haha. Thanks for writing it. I appreciate your and every leftpad porter's effort. :-) It makes for a perfect little dependency test with a standardized name. (Standardized up to /left[_-]?pad/i.) When a language doesn't have a leftpad package, I go looking for a concise way to make terminal text bold, which takes more time.

Plus, seeing code like https://github.com/colinrymer/leftpad.ex/blob/8d2230bf094eed... is just fun:

  defmodule Leftpad do
  
    @moduledoc """
    Remembering `String.rjust/3` can be difficult, so Leftpad provides you
    another way to easily left pad/right justify your UTF-8 encoded binaries.
    """
  
    @doc ~S"""
    Provides basically the same functionality as [`String.rjust/3`](http://elixir-lang.org/docs/stable/elixir/String.html#rjust/3)
    ## Examples
        iex> Leftpad.pad("foo", 5)
        "  foo"
        iex> Leftpad.pad("foobar", 6)
        "foobar"
        iex> Leftpad.pad("1", 2, ?0)
        "01"
    """
    @spec pad(string :: String.t, count :: non_neg_integer, char :: char) :: String.t
    def pad(string, count, char \\ 32), do: String.rjust(string, count, char)
  end
Look at that one line doing all the work, and even it delegates it to another function.


why not:

    defdelegate pad(string, count, char \\ 32), to: String, as: :rjust


Ha! I just found this the other day and thought it was for real, lol. I wasn't actually looking for leftpad, of course, but, well done!


It’s really delightful that we’re able to get the thoughts of someone who was there and involved in the genesis of the language.

Thank you for all the time you’ve taken to explain the “why” of Erlang!

(For those unfamiliar, go check out “The Erlang Rationale” and some of rvirding’s posts elsewhere, e.g., on the thread at https://elixirforum.com/t/the-erlang-rationale-by-robert-vir...)


If you want more, from someone else who was there, check out Joe Armstrong's "History of Erlang" paper:

https://dl.acm.org/doi/abs/10.1145/1238844.1238850 -- canonical link and has a video of the related talk (streamable and downloadable).

(Sadly, without ACM membership, the paper itself is paywalled; there are copies of it online though, e.g. https://www.labouseur.com/courses/erlang/history-of-erlang-a... ).


Varroa doesn’t cause deformed bees or slimy comb; it just weakens the bees such that they can’t effectively maintain the health of the hive, especially over winter, causing the hive to die out. While Varroa can also be a vector for other pathogens, it’s the effect on hive population before the winter where it’s most harmful.

(I’m a beekeeper in the US, so Varroa is something I’m unfortunately too familiar with.)

That said, I’d much rather deal with Varroa than AFB any day as it stands today. The current required action for AFB in my area is burning the entire hive including the woodenware. A vaccine to prevent AFB would be fantastic, as it’d remove the one thing that I’m actually concerned about from getting into my apiary.


You're absolutely right - the virus that causes deformed wing is typically carried by Varroa, so the two effects tend to be seen in parallel.

Either way, not something we have a problem with in Australia today, though the most recent incursion on the east coast (middle of 2022) is still being brought under control, with new sightings periodically, resulting in 10+ km radius red zones where, similar to the AFB control, full eradication of hives as well as feral nests, is our only remedy.

And as to slimed comb, yes, my apologies, I was thinking SHB (Small Hive Beetle) which we only got in Australia about 15 years ago. Over-wintering for most beekeepers here isn't anywhere near the problem it is for you guys - our winters are much less severe, of course.


> semantic versioning allows "1.2.3alpha"

Perhaps I missed it, but I thought [Semantic Versioning](https://semver.org/) required a “-“ between the patch number and a prerelease identifier since at least version 1.0.0 (with 1.0.0-beta allowing a “.” instead of a “-“), no?


Pretty excited about some of the stuff that shipped in GA week and what I’ve seen of Birthday week so far (Account WAF and worker queues in particular), but it’d be even cooler if Cloudflare could ship Logpush for Worker’s Trace Events (announced May 5 2022) and the worker service environments, which were “temporarily disabled” in early May as well. Not having those is really hindering our adoption of Workers more broadly, which is a bummer.


Howdy! I just so happened to be working on the logpush system earlier this week: if you wouldn't mind hopping on the discord [0], our PM tanushree#3489 may be able to arrange something for y'all.

[0]: https://discord.gg/cloudflaredev


We get the day off for it at Updater.


What domestic wells currently have non-existent transport? What pipelines has the Biden administration not approved other than the Keystone XL (which TC Energy abandoned plans for nearly a year ago)?


Without pipelines being planned and built, there will not be new wells. As you said, pipelines are being cancelled.


So wages shouldn’t be driven by demand and supply on the market? Seems pretty anti-capitalist, no?


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

Search: