Better HN
topnewbestaskshowjobs
Log inSign up

mapgrep

6,331 karma · joined Sep 23, 2010 (16y ago) · 813 submissions

Submissions

comment 6y ago · link · parent

This was a key textbook in an incredibly useful rhetoric class I took as an undergraduate that influences my writing to this day.

comment 6y ago · link · parent

Not to say you’re wrong, but, as one data point, I’m a parent and would be very game for this. I’ve actually done things only slightly short of it. I’d rather go full bore working with the team than do these multi day projects in isolation or with just occasional contact with the hiring manager. Basically I find at a certain level (often reached by the time you have kids) all hiring processes tend to be time consuming.

243.

How to Edit Your Own Writing(nytimes.com ↗)

272 points · by mapgrep · 6y ago · 65 comments

comment 6y ago · link · parent

Every single journalist in the video Paul Graham linked was on Fox News/Fox Business.

comment 6y ago · link · parent

Here are the "journalists" (mostly commentators, actually) in the video Paul Graham links:

Sean Hannity (Fox News)

Rush Limbaugh (independent, right wing)

Pete Hegdeth (Fox News)

Lou Dobbs (Fox Business)

Tomi Lahren (Fox News)

Jeanine Pirro (Fox News)

Dr. Marc Siegel (Fox News)

Geraldo Rivera (Fox News)

Laura Ingraham (Fox News)

Jesse Waters (Fox News)

Matt Schlapp (shown on Fox News)

Dr Drew Pinsky (shown on Fox News)

Ed Henry (Fox News)

Ainsley Earhardt (Fox News)

I think it's misleading to call this "a video of TV journalists and politicians." It's a video of Fox News journalists and Rush Limbaugh and right wing politicians.

comment 6y ago · link · parent

Not an extra 90 cents per mask, an extra 8 cents per mask.

“His masks may cost a dime each, but a made-in-China mask might go for two cents.”

A hospital charged my friend $5k for three stitches. They could pay 8 cents more per mask. But they care more about $$$ than the long term health of the country.

And I’m not even making a moral statement with that. It’s the natural consequence of making health care a capitalist endeavor. There are other approaches.

comment 6y ago · link · parent

This approach seems to have served emacs quite well; the config is just some elisp. It’s weird more programmers don’t copy this approach, given how many of them use emacs.

Of course, you start out just cargo culting emacs config, so many may not even realize emacs is configured via code. You can also get pretty far with setq functions, essentially just assigning values to variables.

But learning to grok and code elisp is when you start to really see emacs’ power.

comment 6y ago · link · parent

I always add an “Accept-Encoding” header to my request to indicate I will accept a gzip response (or deflate if available). Your http library (in whatever language your bot is in) probably supports this with a near trivial amount of additional code, if any. Meanwhile you are saving the target site some bandwidth.

Look into If-Modified-Since and If-None-Match/Etag headers as well if you are querying resources that support those headers (RSS feeds, for example, commonly support these, and static resources). They prevent the target site from having to send anything other than a 304, saving bandwidth and possibly compute.

comment 6y ago · link · parent

Yes the initial hype on Java when it came out of Sun was all around desktop use, often but not exclusively in browser. They even tinkered with the idea of writing the browser — even an OS! — in Java. There was literally something called JavaOS. Anyone remember the JavaStation?

Trouble is the computers of 1996, combined with the less optimized JVM of 1996, were really not up to the task. And I would venture the GUI libraries were not there yet either. 24 years later we have very speedy JVMs and much faster computers and networks and toolkits like the one in the article (JavaFX) sound much smoother. Meanwhile Clojure offers concurrency primitives that are making threading much more accessible.

comment 6y ago · link · parent

I am not an expert here but it seems dangerous to assume as you do that the baseline of “correct number of ventilators” is the UK number. They could be...

-Under provisioning for surges (not even Covid, even just a sudden emergency of another sort, a bad flu season, big accident, terror event, whatever)

-Going longer between maintenance intervals than is recommended

-Delaying ICU admission longer than is strictly recommended

-Relocating ICU equipment as needed more than other countries feel comfortable doing

-Using more reliable ICU equipment (does the German figure include any older and potentially less reliable gear in the former communist east?)

-Have less need among population for ICU

On the last point, Germany has accepted by far more refugees from MENA war zones than any other European country and I would not be surprised if this resulted in higher emergency medicine use.

Also a quick Google shows Germany is a bit older with 22% of the population over 65 vs 18% in UK.

None of this is to say Germany isn’t over provisioned but it is probably not 5X over provisioned, if it is.

comment 6y ago · link · parent

I am glad to hear your wife seems to be improving. I'm sorry you had to go through that. Take care.

comment 6y ago · link · parent

I am seeing a lot of comments on this story complaining that it is anecdotal or that New York is extraordinary and thus this is implicitly less important to people outside New York.

I live in the city of New York and I think it's important that everyone nationally absorb what is happening right now and the "anecdotes" are important. By anecdotes, I mean, in particular the New York Times story and video published last night about Elmhurst Hospital in Queens (a very hard hit borough)(https://www.nytimes.com/2020/03/25/nyregion/nyc-coronavirus-...).

People are dying of Covid at this hospital in chairs or on floors ("Some have died inside the emergency room while waiting for a bed"). People are dying without their loved ones allowed or able to be present (https://www.nytimes.com/2020/03/24/opinion/coronavirus-hospi...) (<--link is about Boston but Elmurst story above makes clear this is happening in NYC too, very much so). In his briefing yesterday the governor of New York discussed people sharing venilators (already happening per the Elmurst story) and bringing back retired doctors (horrifying given the risk to the old -- in China older working doctors were often kept off Covid wards).

The morgues are filling up and they are building outfoor refrigerators to hold the bodies (this is in the Elmhurst story). People with babies due are giving birth alone without their partners (https://www.nytimes.com/2020/03/24/parenting/coronavirus-lab...). People (including one in Elmhurst story with fever) are waiting multiple days outdoors (including rain) for a test and being turned away day after day after waiting all day.

Why talk about this? Is it for clickbait? To be dramatic? Because we're certain the NYC scale problems will spread to less dense areas?

No. It is because many many people in this country are continuing to not take this situation seriously. Many people (including relatives of mine on Facebook) think this is completely overblow, like the flu, not worth keeping people at home for given economic cost.

Many of these people have already ignored the hard evidence, the numbers, the consequences. Talking about terrible things that are starting to happen -- "anecdotes" -- may help shake some of these people out of their denial. And if they are prepared, and IF anything approaching NYC scale problems happens in their area, there is a better chance they will help rather than hinder efforts to flatten the curve.

Please don't dismiss what is happening here as anecdote or irrelevant. Believe me, I'm no better than you, I did this too, when this was "just" in Wuhan, or "just" in China, or "just" in Italy. I took a trip at the end of February in the U.S. on an airplane. I look back -- what was I thinking?! Now I'm locked in my apartment going on three weeks. My wife had a fever for 6 hours a little over a week ago, she's been coughing. Probably we're ok. But it's in the back of your head: What if I get sick, and she gets worse, who will take care of our kids? What if they close the stores and we can't get groceries?

I wish some of the anecdotes had reached me earlier. I hope some of these anecdotes reach others.

comment 6y ago · link · parent

I thought that was a typo and that he meant “20 years before the second major outbreak...”

But no, there was an Ebola outbreak in the mid 70s. Kind of scary to see a disease that can keep popping up.

https://en.m.wikipedia.org/wiki/List_of_Ebola_outbreaks

comment 6y ago · link · parent

Me too! But more than 20 years ago. And it mainly helped me get beyond simple CGIs into database connections.

I love that the whole book was online but also in a very slick coffee table format. With a bracing sense of humor and not afraid to try and distill very technical topics for less technical people. There is something of the DIY, can-do, participatory side of 90s computer culture in there. Deeply.

comment 6y ago · link · parent

Woah, I remember Inktomi. So was this a group run by Eric Brewer?

My first email account was on a Sun in Evans basement at OCF. I believe it (the account) is still operative. Albeit on Linux now.

comment 6y ago · link · parent

Aren’t software businesses increasingly like service businesses though?

They deliver now often with backend cloud storage, update near continuously, integrate frequently with outside services, sometimes open source major components iteratively, typically have an evolving API and developer ecosystem to educate, and are sold as subscriptions. It’s not as “human in the loop” as some of the AI described in this article but it’s clearly moving toward services in terms of margins.

Nothing is like the old shrink wrapped software business, basically.

comment 6y ago · link · parent

SmartOS (a Solaris/Illumos derivative) also uses pkgsrc, in my limited experience it’s very nice.

comment 6y ago · link · parent

Very cool to hear that Wireshark has roots in a user group!

Personally, I was deeply inspired to start thinking about hypertext publishing after visiting a UCSD Mac User Group as a high school student around 1992 and seeing amazing HyperCard stacks driving multimedia on CD ROM.

comment 6y ago · link · parent

> All the packages were installed from Emacs package Manager. By running, `M-x list-packages` This should bring up a list of packages available in MELPA. Now, don’t worry if you don’t know what MELPA is, just think of it as a repository of all packages, as in, analogous to the Debian Package Repo in Debian/Ubuntu distros.

Article seems to confuse MELPA with ELPA. MELPA is something you have to add via your init file. Not terribly hard to do, but just FYI for anyone who is actually using these tips from scratch.

comment 6y ago · link · parent

If OP just meant ruby is syntactically complex compared to lisp, there’s really no arguing with that! :-) it just applies to so many languages — any non lisp — and seems an odd thing to single out Ruby for. (Perl, on the other hand...)

comment 6y ago · link · parent

I think Rails fits what Hickey says about easy complexity very well. Ruby not at all - I find it very much not “braided together” compared to other programming languages. It’s still object oriented, and Hickey’s talk is largely directed at showing how bare maps and immutability and functional style and so forth in Clojure are better than what he calls the “petty parochialisms” of class hierarchies. But among OO non Clojure languages I’d argue Ruby is among the closest to th ideals he espouses in that talk.

comment 6y ago · link · parent

>Ruby, in contrast, seems like an absurdly complicated concatenation of weird features and strange syntax

My experience is the precise opposite. Ruby seems more consistent and straightforward than any other non lisp language I’ve used. Ubiquitous blocks and “everything is an object” gets you very far.

Compare nested list comprehensions in python to chained map/select calls in Ruby:

lesson for lesson in [school.Lesson(downloaded) for downloaded in api.downloads()] if want(lesson)]

vs

api.downloads.map{|download| School.Lesson.new(download)}.select{|lesson| want(lesson)}

Or compare the many varied required ways to do something with an array in python vs Ruby:

len(array)

“;”.join(array)

array.append(x)

Vs

array.length

array.join(“;”)

array.append(x)

Genuinely confused what you refer to with “unnecessary syntactic doodads.” Examples?

comment 6y ago · link · parent

>it's just that it aligns with a value we share to not, ever, be a problem for other people

It’s a bit late for that; you’ve already gone through infanthood, toddlerhood, and childhood and benefitted from the patience and generosity of more strangers than you will ever know. Now you imply that perhaps parents and their children should try to not affect others negatively. I think by and large they do, but to the extent they do affect others this way, you owe some debt of patience, and are you so sure it’s paid off?

comment 6y ago · link · parent

Awesome. I’d add smartOS to that list. ++Qubes.

Although as far as package management in Qubes you’re still stuck with dnf and apt. But they’re pushing progress in other ways. (Are you able to run nix on qubes?)

comment 6y ago · link · parent

Five of his switches were to nextcloud, which is self hosted and open source. One was to self hosted email. Many of the others were things like web search, browser, etc, where it’s hard to avoid a company.

comment 6y ago · link · parent

Used to spend a ton of time writing Perl (see username). Moved on to better designed languages. Which are not hard to find.

There are a few big issues with Perl 5 but the biggest is easily the mess of references vs flat values. Python, Ruby, JavaScript and many other dynamic languages do not make the programmer think about whether you are going to pass a data structure like an array or hash as a reference or direct value. Perl does. A lot of built in operators expect direct values, eg array ops like join, push. This is because the ops existed before Perl added complex data structures — arrays of arrays, hashes of arrays, etc. References were bolted on in Perl 5 to support such structures. And any code using them will handle references not direct values. So you have a split. And then a lot of energy is spent navigating between these two types of variables.

As Steve Yegge said:

“Perl's references are basically pointers. As in, C-style pointers. You know. Addresses. Machine addresses. What in the flip-flop are machine addresses doing in a "very high-level language (VHLL)", might you ask? Well, gosh, what they're doing is taking up about 30% of the space in all Perl documentation worldwide.”

https://sites.google.com/site/steveyegge2/ancient-languages-...

For a taste of this here is how you join an array inside a hash:

join(‘,’,@{$foo->{‘bar’}})

Update - I forgot to say my favorite thing about Perl. The CPAN community. People talk about the sheer scale of CPAN but my favorite thing about it is the quality of documentation, at least back when I was using it. Really good uniform high quality docs. Almost always a great synopsis with multiple good examples covering real uses cases and gotchas. Then thorough documentation of functions/methods. My theory is this culture developed because CPAN predates StackOverflow, github, Google, maybe even search engines. The docs had to be good.

comment 6y ago · link · parent

Fully agree it is ironic but the fact that it is structured this way is the key reason we saw any of the content.

The ideal format for this is probably a text file or simple html page on a personal website. Linking that from Twitter is one tweet. Sadly it’s not going to get the same visibility and traction as a Twitter thread where each paragraph can be linked, retweeted, liked. Look at all those RTs!

Maybe the simple version would have ended up on Hacker News but more likely not — a fraction of the people would have seen it to begin with.

comment 7y ago · link · parent

I vote for the second option :-) IMO taint mode is a great example of what Linus is talking about. Too subtle.

I cut my teeth on Perl and actually believed the books when they said you should always use taint mode when touching data that came e.g. over the network. I wrote all my web code under -T (-wT actually but you get the idea).

Then one day I went to drop in some full text search via a then popular library (Plucene). And what do you know, Plucene would not work under taint mode, because it was not developed under taint mode. The maintainer would not accept my simple patch essentially because he did not understand that you could not untaint without a regex somewhere (i.e. he did not know how taint mode worked at a basic level). So I maintained a patched version of that lib privately. Only to later hit the same issue with another popular library.

So I had to stop using taint mode. If it’s just an option — even one aggressively marketed in O’Reilly books back when people actually mostly read O’Reilly books to learn various systems — it’s not going to win much adoption.

1
8910
28