HNHacker News
TopNewBestAskShowJobs

allknowingfrog

504 karma · joined February 21, 2019

submissionscomments
allknowingfrog··on We're moving continuous integration back to developer machines
If your developer machines behave differently from your CI environment, how do you reproduce issues? If you can solve one, can't you solve the other?
allknowingfrog··on New startup sells coffee through SSH
I love the idea of TUIs, but I honestly don't have a lot of experience with them. There's a lovely Go library called Wish that I keep looking for reasons to use. https://github.com/charmbracelet/wish
allknowingfrog··on What's Going on with ‘Nonplussed’? (2017)
It's a perfectly cromulent word.
allknowingfrog··on The Lost Worlds of Telnet (2019)
The Wish library for Go tries to provide a similar experience for the modern world (using SSH). It may be worth a look for anyone feeling nostalgic about the decline of telnet.

https://github.com/charmbracelet/wish

allknowingfrog··on Practical Railway-Oriented Pipelines in Ruby
I rather doubt that George is concerned with attribution at this point, but I freely admit that I was probably misquoting somebody.
allknowingfrog··on Practical Railway-Oriented Pipelines in Ruby
I think we're saying the same thing. My intention was to point out the subjective nature of the original comment, not to kill the discussion.
allknowingfrog··on Practical Railway-Oriented Pipelines in Ruby
Have you ever noticed that everyone who drives faster than you is a maniac, and everyone who drives slower than you is a moron? I think code abstraction fits a similar pattern.
allknowingfrog··on SQLite-Web: Web-based SQLite database browser written in Python
I've had success using sql.js (https://sql.js.org) for small, hobby projects. It's just SQLite compiled to WASM. They have a link to an online demo at the top of the homepage, which may be the exact tool that you're hoping for.
allknowingfrog··on Psst: Paper-Based Secret Sharing Technique
Thank your for the explanation! The modulo was a big piece that I was missing.

I still need to spend some time understanding how the math guarantees unique combinations of values, but I did figure out how to generate the series now (in Ruby).

  (0..4).map do |b|
    (0..4).map do |a|
      (0..4).map do |x|
        (a * x + b) % 5
      end.join(" ")
    end.join("\n")
  end.join("\n\n").then { puts _1 }
EDIT: To make this line up with the document, I actually had to offset a by the value of b. I'm still not totally sure why this is necessary.

  (0..4).map do |b|
    (0..4).map do |a|
      (0..4).map do |x|
        ((a - b) * x + b) % 5
      end.join(" ")
    end.join("\n")
  end.join("\n\n").then { puts _1 }
allknowingfrog··on We need technology that is less immersive, not more
"Best minds of my generation" is a pretty specific phrase which appears in the Ginsberg quote and not in the Banksy one. I would argue that famous quote are more often related by structure than context. Most quotes about "the smell of <something> in the morning" are not about the Vietnam war, for example.
allknowingfrog··on Psst: Paper-Based Secret Sharing Technique
Is there a pattern to how the dice grids are constructed? I'm not finding an explanation in any of the documentation. If they are generated in some deterministic way, it would be possible to memorize the pattern and rebuild the grid on-demand. That would create some fun possibilities for passing messages to other people who are familiar with the system.

To be clear, I'm talking about these grids:

  0  0 0 0 0
  0  1 2 3 4
  0  2 4 1 3
  0  3 1 4 2
  0  4 3 2 1
  0  re-throw
allknowingfrog··on Signs that it's time to leave a company
My team of 5 synchronized our hybrid schedules (same two days in the office together). We love the mix of in-person collaboration days and remote "leave me alone so I can accomplish something" days. We're a small startup in the Midwest, so I have no idea how it would scale to FAANG-level problems, but it's the best of both worlds for us.
allknowingfrog··on Does your test suite account for weak transaction isolation?
I'm not surprised to learn that Martin Fowler has a relevant book. Thank you for the recommendation.
allknowingfrog··on Does your test suite account for weak transaction isolation?
Ha. I guess finding your own solution is the joy of software. It's good to know I wasn't way off on my caching instincts.
allknowingfrog··on Does your test suite account for weak transaction isolation?
I briefly dabbled in financial ledgers in a previous job. We made plans to do what you seem to be describing, which is to store the transactions themselves and calculate a balance as needed, but we frankly lacked expertise. I always wondered what would happen if we scaled to millions of transactions in that system.

Is there a standard strategy for optimizing balance queries against a series of transactions? I assumed that we would eventually have to cache some kind of snapshot for each account to avoid the overhead of totaling every transaction on every balance check.

allknowingfrog··on Everyday performance rules for Ruby on Rails developers
Oh sure, it's all about knowing your requirements. I write raw SQL when performance or complexity call for it. My intention was to argue that both have merits, not that ORMs are the one true solution.
allknowingfrog··on Everyday performance rules for Ruby on Rails developers
I don't want to live in a world where I can't pop into a Rails console and run something like `Foo.joins(:bars).any?`.

More concretely, performance is on my list of "good problems to have". Businesses die in the time it takes to write raw SQL.

allknowingfrog··on Writing documentation for your house
You extrapolated "I will just be pickier about who i sell it to" into an argument about regulations. If your contention is that sentiment obstructs progress, it seems totally fair to argue that the opposite is also true. Accusing someone of "whataboutism" isn't doing much to move the conversation forward.
allknowingfrog··on For RoR, see every method call, parameter and return value in production
Well, if you never get around to releasing the feature, you'll never have production issues. Ruby embodies "perfect is the enemy of done" in a way that I tend to appreciate.
allknowingfrog··on Tigerbeetle's Storage Fault Model
The "Storage Fault Model" section is about halfway down the page.

https://github.com/tigerbeetle/tigerbeetle/blob/main/docs/DE...

allknowingfrog··on Revolt: FOSS Discord Alternative
It took slightly longer than expected for me to track down an explanation of their business model. I think it boils down to "run cheap until we have one". https://developers.revolt.chat/faq/monetisation
allknowingfrog··on Unexpected downsides of UUID keys in PostgreSQL
That's not a very constructive response. UUIDs do provide global uniqueness, which can occasionally make mistakes more obvious. Do you have a counter argument to support your strong objection?
allknowingfrog··on The Surprising Power of Documentation
ROI should always be a consideration. It's reasonable to argue the merits of documentation. It may even be reasonable to argue that most projects would benefit from increased documentation. Without knowing how long it will take to write it and how many people will use it, you cannot reasonably insist that writing more documentation should be a priority for every project.

Much like automation, the question should be phrased in terms of how long it will take and how much time it will save. https://xkcd.com/1205/

allknowingfrog··on Switching from QWERTY to Colemak and Back
I switched to Dvorak a couple of years before I learned VIM. I made the decision not to remap anything in VIM, because it seemed like every key already had a job, and I was afraid of upsetting the balance. I'm still a Dvorak/VIM user 10 years later. My directional navigation keys are in strange places, but it's just muscle memory at this point.

If I had learned VIM first, I'm not sure how the switch to Dvorak would have gone. My fear of breaking an unfamiliar editor may have accidentally steered me into success.

allknowingfrog··on Sold a Story: How Teaching Kids to Read Went So Wrong
Oh, it's not a stated set of requirements. I would describe it as more of a culture. The review board didn't hand me a standardized test or anything. They just asked a lot of questions about my personal outlook on the field of education. I already mentioned this in another comment below, but what they really want to hear is "it's a mission".
allknowingfrog··on Sold a Story: How Teaching Kids to Read Went So Wrong
Yeah, pretty much this. It's all part of the "it's a mission" mentality that leads to teachers being over-worked and under-paid. Everyone else has a job. You have a calling!
allknowingfrog··on Sold a Story: How Teaching Kids to Read Went So Wrong
This was exactly my experience. I had to pass a review board before I began my senior year, and it was essentially an "ideological indoctrination" examination. I said what they wanted to hear. What else was I going to go with the 3 years of education that I had already purchased? I was fortunate to study at a college that emphasized field-based experience, because it was the only degree-related value that I left with.

In the end, I spent more hours earning my degree than using it. I work in software now.

allknowingfrog··on Brainstorm questions not ideas
I don't personally need a lot of pressure to keep me focused on delivering business value...but I think that's how I ended up managing people who do. Finding that "motivation without urgency" balance is both difficult and necessary.
allknowingfrog··on More than half of YC startups don't have a dot com
Possibly, although the official explanation is that it's "just a word with no phonetic pronunciation". There's a "What does XKCD stand for?" section on the About page. https://xkcd.com/about/
allknowingfrog··on ChatGPT is a bullshit generator but it can still be amazingly useful
Did you read the article? It's a fairly balanced evaluation of the strengths and weaknesses of LLMs in general, and ChatGPT in particular.
← PreviousPage 5 of 7Next →