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

comment 8y ago · link · parent

The original tweet doesn't use the word "mooching"—and I think that's a good thing. The tweet says:

> It's frustrating that the major cloud platforms ($MSFT, $AMZN, $GOOG) are now all supporting Avro, ORC, Parquet for data storage, but haven't lifted a finger to help build or maintain OSS libraries for use in Python to read and write them

I agree—that does sound frustrating. When we build FOSS software, we naturally hope that it will resonate with many users, and that at least some of our users will contribute to that software and make it better. When that doesn't happen, it's deeply frustrating.

What it isn't is mooching. Free software is, well, free software. It's not "free on the condition that you contribute" or "free unless you have a $1+ trillion market cap. It's free software, which means anyone and everyone can use it without any obligation to pay, either with money or with time.

(I realize that the original tweet doesn't contradict this, but think this point is important enough to be worth emphasizing, especially when words like "mooching" enter the conversation.)

302.

Make a “Literary Clock” from a Jailbroken Kindle(instructables.com ↗)

446 points · by codesections · 8y ago · 73 comments

comment 8y ago · link · parent

Two questions:

* does the site also allow login by creating a username and password? If so, the social login is just a convenience, and you are probably fine. If not, you might want to add more (but also consider manual login for the privacy conscious!)

* Who is the intended audience, and are there any sites that are particularly relevant to that audience? E.g., GitHub for developers.

304.

How Does Mastodon Work?(kevq.uk ↗)

389 points · by codesections · 8y ago · 175 comments

comment 8y ago · link · parent

This argument seems to hinge on the following statement that I don't understand:

> an SSH key password is unlikely to be managed by a password manager: instead it’s something you remember.

Why is that the case? I've always been just as likely to use a password manager for my SSH key password—after all, I'm usually prompted for my SSH key password from my terminal, which accepts pasted passwords just fine.

Am I missing something?

306.

118 hungry goats descend on shocked Boise, Idaho neighborhood(boingboing.net ↗)

1 points · by codesections · 8y ago · discuss

307.

Twitter Is a Game, and Playing It Is Bad for You(shamusyoung.com ↗)

2 points · by codesections · 8y ago · discuss

308.

The Bullshit Web(pxlnv.com ↗)

1017 points · by codesections · 8y ago · 550 comments

comment 8y ago · link · parent

The big problem with this piece is that it thinks it about the issue in binary terms (an occupational hazard for programmers!)

The article states "The biggest Rust users I know are among the very best and most secure C programmers around. These were not the people writing unsafe code in C." This is essentially implying that there are two types of C programmers—those who write safe code, and those who write unsafe code ("good" and "bad" C programmers).

But that's just not how the world works; there's a continuum, not a binary divide. And someone who writes 95% safe code (or 99%, or 99.999%…) can still benefit greatly from a guarantee that 100% of their code is safe.

310.

Mastodon Is Better Than Twitter: Elevator Pitch(medium.com ↗)

8 points · by codesections · 8y ago · discuss

311.

A static web app in Rust(bluejekyll.github.io ↗)

2 points · by codesections · 8y ago · discuss

comment 8y ago · link · parent

I think this is the wrong way to go about building a free stack, given the vendor lock-in problem. I use a lot of free services from Netlify, for example, but I'm cautious about relying on anything that I can get only from Netlify. I feel a lot better if I can list 3+ providers who all provide a free tier that meets my needs (even if some aren't quite as present to use). That way, I know I have somewhere else to go if I need to—and I feel better than I won't need to because the provider knows I have other options.

comment 8y ago · link · parent

I notice that it lets you sort by language. Does the underlying data let you get at trends in relative language popularity?

314.

CSS weight and complexity statistics for any website(cssstats.com ↗)

3 points · by codesections · 8y ago · discuss

comment 8y ago · link · parent

Semicolons can also be extremely helpful for lists with internal punctuation, especially in technical writing. I recently wrote the following sentence in some documentation:

  By default, Gutenberg will look for three templates:
  index.html, which is applied to the site homepage; 
  section.html, which is applied to all sections (any 
  HTML page generated by creating a directory within 
  your content directory); and page.html, which is 
  applied to all pages (any HTML page generated by 
  creating a .md file within your content directory).
Omitting semicolons from that sentence would have made it much harder to understand, at least in my view.

comment 8y ago · link · parent

The manual page mentions that the program has a command that will calculate the "approximate storage capacity of a file", but doesn't really say what that would be. I'm guessing that would turn out to be the limiting factor here—it seems like you'd either need a really long text file, or a really short encrypted message to be able to use this method reliably.

comment 8y ago · link · parent

A much older Atlantic article argued for exactly the same point: https://www.theatlantic.com/business/archive/2011/10/follow-...

A sample:

But not everyone has the potential to be Steve Jobs. Not just because most people are rather more ordinary, but because there are a limited number of jobs that are really fun, greatly admired, and fairly well remunerated, which is what most people want.

The problem is, the people who give these sorts of speeches are the outliers: the folks who have made a name for themselves in some very challenging, competitive, and high-status field. No one ever brings in the regional sales manager for a medical supplies firm to say, "Yeah, I didn't get to be CEO. But I wake up happy most mornings, my kids are great, and my golf game gets better every year."

That's most people. But what does Steve Jobs have to tell them?

comment 8y ago · link · parent

This seems like a poorly chosen headline from TechCrunch. Not being someone who keeps up with Microsoft chat programs, on first reading it I though "Teams at Microsoft get a free version of what?"

comment 8y ago · link · parent

It's hard to really call that a "mistake" in the article, since the article mentions it. It says:

> The new lids are recyclable, while the plastic straws the company currently uses are not.

>

> This is cold comfort given the fact that even most of the stuff that is put in recycling bins

> still winds up at the dump. The company did not address, nor did it dispute, that its transition

> to strawless lids would increase its overall plastic consumption.

Not expressing a view about whether those follow-up claims are correct, just noticing that this wasn't a mistake/oversight by the article.

comment 8y ago · link · parent

I meant the Yoast stuff, which they claim to spend a whole KB on. They say

"but the meta stuff added by Yoast bumped it up almost a whole KB! However, given I'm trying to spread a message [it's worth it]"

comment 8y ago · link · parent

I think this is the wrong way to go about site minimalism. My personal site[0] is pretty minimalist--the home page has one request for 3.3 KB. But it doesn't sacrifice in the same ways this site does: it keeps readable source code, it still uses BEM classes for maintainability, and it has a working menu on the same page (rather than requiring visitors to load a seperate menu page).

So, with less than half the kilobytes, I have a more readable, usable, and maintainable page. How? By jettisoning WordPress and SEO entirely. I use a static site generator (in my case, Gutenberg[1]) to generate the page--no WordPress backend required. And, by respecting my user's privacy and not trying to play the SEO game, I don't need any of the code many sites devote to tracking/SEO.

I believe that static sites and respect for privacy are the better path forward. Instead of tweaking WordPress, we should be looking to build the next WordPress--and build one that is static, and minimalist, by default.

[0] https://www.codesections.com/

[1] https://www.getgutenberg.io/

322.

Brutstrap: CSS for bootstrapping a brutalist website(emsenn.gitlab.io ↗)

4 points · by codesections · 8y ago · discuss

comment 8y ago · link · parent

I used Hugo for a while, but I feel it's really held back by its templating language.

I've recently moved to Gutenberg[0], which is very nearly a clone of Hugo except for the templating language. After some benchmarks[1], I concluded that it's even faster than Hugo, and the ergonomics of using the templating language are far, far better.

[0] https://www.getgutenberg.io/

[1] https://www.codesections.com/blog/gutenberg-vs-hugo/

324.

Benchmarking and Comparing Static Site Generators: Gutenberg versus Hugo(codesections.com ↗)

1 points · by codesections · 8y ago · discuss

1
7891011