Better HN
topnewbestaskshowjobs
Log inSign up

codesections

2,587 karma · joined Jul 5, 2018 (8y ago) · 324 submissions

Free software developer working primarily in Raku and Rust. Former attorney at Davis Polk & Wardwell LLP; current member of the Raku Steering Council and The Perl & Raku Foundation board. My professional interests include web development, open source, and making things as simple as possible.

  website:     www.codesections.com
  public key:  codesections.com/pubkey.txt
  email:       daniel@codesections.com
  mastodon:    fosstodon.org/@codesections
  github:      github.com/codesections
  discord:     discord.com/users/555470786677440524
I am also the 'codesections' user on: gitlab, github, stack overflow, libera.chat, reddit, tildes, lobste.rs, and probably other sites
Submissions

121.

Numbering should start at zero (1982)(cs.utexas.edu ↗)

1 points · by codesections · 5y ago · discuss

comment 5y ago · link · parent

> They explicitly call out the summer [and winter] holidays effect above the first graph

Given that this is a measure of "Desktop clients active in the past 28 days", that means that there are people tech-savy enough to be regular users of Firefox on a desktop – but who go an entire month without using Firefox because it's Christmas. And enough of those people to show up on this graph.

That blows my mind a bit. I don't doubt it, but wow.

comment 5y ago · link · parent

> Microsoft supported a model with pluggable scripting engines which was supported both on Internet Explorer (for client side scripts)

So what happened? Given that we lived through an era of Internet Explorer dominance, and Windows/IE was apparently shipping with a variety of scripting languages built in, how did that not lead to options for client-side scripts? (This all took place before my career change into programming, so I didn't really notice as I was living through it – sorry if that results in some ignorant questions).

comment 5y ago · link · parent

> This suggests either that the negative results were truncated out, negative results have been hacked to positive ones, or there is some confounding factor at play.

Here's a potential confounding factor: maybe the cluster of very weak positive effects includes some studies that initially showed very weak negative effects but that had their methodology tweaked to avoid showing an "impossible" result. (I don't think anyone argues that atmospheric lead _decreases_ crime rates.)

If so, that would mean that there are some "missing" negative studies, but that there are also "too many" zero/very low result studies. If corrected for that, I suspect that the meta-analysis would show a positive effect size, though lower than 0.33.

comment 5y ago · link · parent

That's good to know, thanks.

But Joel was talking about C rather than C++, where your comments about std::string wouldn't apply, right?

comment 5y ago · link · parent

Related question: how, if at all, did Windows Scripting Host fit into this history? Is there a plausible alternate history where browsers used WSH or some similar technology to execute client-side code in any supported language? Or am I confused about what WSH was/that period of history?

comment 5y ago · link · parent

> There's also the option of using both a length AND a null terminator.

I first encountered that idea in this classic Joel on Software post, which rather put me off the idea of using them in production:

> Notice in this case you’ve got a string that is null terminated (the compiler did that) as well as a Pascal string. I used to call these fucked strings because it’s easier than calling them null terminated pascal strings but this is a rated-G channel so you will have use the longer name.

https://www.joelonsoftware.com/2001/12/11/back-to-basics/

comment 5y ago · link · parent

Did you tell this story on On the Metal? It sounds familiar, and I'm pretty sure I haven't looked at that AMA.

(I hope the podcast comes back, by the way!)

comment 5y ago · link · parent

> Google "cm! 5 inches" or "cm 5 inches", or even "5 inches to cm" or "5 inches cm" and you get exactly the same result in all cases. The exclamation point isn't a feature, it's irrelevant.

That appears to be correct, and I added a comment to the quoted answer to that effect. Thanks!

On the broader point, you are also correct – and, in particular, the calculator/unit syntax is documented at https://support.google.com/websearch/answer/3284611

I was mistaken; Google provides better documentation of their search than I thought. I appreciate the correction.

comment 5y ago · link · parent

> Many, if not most, people would not call any of those fields hard unless they were forced to practice it.

That's interesting – and very different from my experience. As I said in the GP, among people I know, pretty much no one would bat an eye at any of those statements; I'd expect more responses of "well, of course" than of "I disagree".

Maybe that's (sub?) culturally specific, though? I reside in the US – do you mind saying where you've lived when observing that people would not call those fields hard?

comment 5y ago · link · parent

This would be the only reason I'd need to pay for a safe deposit box. It might be worth it, just for that, but I haven't made that leap yet.

comment 5y ago · link · parent

> Nit: Not the entire 3 days is interest in this analogy because you are also paying down principal.

I didn't read the GP as saying that they were paying down principle. They don't say what the hypothetical feature is, but my assumption was that it's a feature that they could implement without a database layer but that would be faster if they had a database layer. That is, I assumed that even after the 4 days of development for the new feature, they still won't have a db layer – which is why the extra three days is pure "interest".

comment 5y ago · link · parent

I question the premise of this article:

> Why does it seem routinely acceptable—arguably fashionable—to make such a general and definitive statement [as "programming is hard"] ?

The implicit premise in ^^^^ is that people call programming "hard" more often than they call other fields "hard". I disagree.

Consider the following statements:

* teaching school is hard

* practicing law is hard

* playing the piano is hard

* playing baseball is hard

* painting is hard

* accounting is hard

* working retail is hard

* writing is hard

*none* of those statements strike me as less likely than "programming is hard". Pretty much everything (done decently) is fairly hard, and thus saying so does not seem remarkable.

comment 5y ago · link · parent

> I suppose they do this because it makes it easier to change features.

Yeah, and for a scrappy startup trying to achieve feature parity despite having far fewer employees, that might make sense.

But it's not like Google is a nimble startup without the luxury of hiring dedicated technical writers.

comment 5y ago · link · parent

> It appears that Google search uses the following syntax for conversions between different units or currencies: target_unit! <expression> (Though I can't find any documentation for this).

I've always been baffled by why Google search — the flagship product by the world's largest tech company — has so many totally undocumented features.

I understand having some easter eggs (the question "did you mean 'recursion'?" when googling "recursion" ), but even the sort of basic features noted in TFA seem totally undocumented.

comment 5y ago · link · parent

Previously discussed when episode 0 was posted https://news.ycombinator.com/item?id=27209093 (138 comments)

(They now have 6 episodes)

137.

How large is interpersonal variation in programmer productivity really? (1999) [pdf](page.mi.fu-berlin.de ↗)

2 points · by codesections · 5y ago · discuss

comment 5y ago · link · parent

I suggest changing the title to clarify that "SF" refers to San Francisco, which is currently unclear. (I initially read it as "speculative fiction" aka "science fiction")

139.

Monty Hall Problem and Variations: Intuitive Solutions(untrammeledmind.com ↗)

3 points · by codesections · 5y ago · discuss

comment 5y ago · link · parent

I was born slightly outside (after) the official years for this generation, but the description for this generation seems to fit my childhood memories much more closely than many "Millennial" descriptions.

Does anyone else born in the mid/late 80s share that feeling?

comment 5y ago · link · parent

Results: The study shows ~1 IQ point decline for non-hospitalized Covid patients.

Full table:

  Covid, no respiratory difficulty: 0.4 IQ point loss
  Covid, respiratory difficulty, no home assistance: 1 IQ point loss
  Covid, respiratory difficulty, with home assistance: 2 IQ point loss
  Covid, hospitalized, without ventilation: 4 IQ point loss
  Covid, hospitalized, with ventilation: 7 IQ point loss

142.

Functional fixedness, lateral thinking, and the barometer question(en.wikipedia.org ↗)

2 points · by codesections · 5y ago · discuss

comment 5y ago · link · parent

This is pointed out in the first two words of the "Feynman" answer ("They're not.")

comment 5y ago · link · parent

Yeah, I bet you're right. My first thought was that all the different ways Raku has of letting you start entering a string literal might make up for that but, on second thought, those all need to have a corresponding closing pair so that wouldn't really help.

comment 5y ago · link · parent

I wonder what the equivalent result would be for Raku (aka, the language formerly known as Perl 6).

By the way, the first Raku Conference is happening in a few weeks, Aug. 6–8 https://conf.raku.org

comment 5y ago · link · parent

Suggested title: "Google to disclose some reasons it returned specific search results"

(I know HN generally prefers the original title, but this original title is so vague that it's uninformative)

147.

Technical Papers Every Programmer Should Read (At Least Twice) (2011)(blog.fogus.me ↗)

1 points · by codesections · 5y ago · discuss

comment 5y ago · link · parent

> I do frequent (mostly as a lurker) some subreddits from time to time, such as r/math, r/learnjapanese, r/history etc. I don't remember running into any sort of heated political argument in any of these subreddits.

I haven't spent any time there, so I'm genuinely curious: how does r/history avoid political arguments? Some people say that everything is inherently political, but history seems especially adjacent to politics

comment 5y ago · link · parent

> How would two pieces moving to the same square be resolved?

I'd say that the one that has traveled the longest distance wins, and captures the piece that started closer.

(My implicit mental model is that both pieces "depart" from their home squares at the same time and travel at a constant rate, so the closer piece arrives at an empty square, while the more distant piece arrives second and captures the first-arriving piece. This may also encourage more dynamic play)

1
456
11