Better HN
topnewbestaskshowjobs
Log inSign up

devjam

148 karma · joined Aug 12, 2014 (12y ago) · 57 submissions

Submissions

comment 3w ago · link · parent

Telemetry does not include any data from your terminals, or names of files, folders or projects. In fact they even provide an example JSON payload for you to inspect in the settings dialog.

comment 1mo ago · link · parent

You can also use a password manager like 1Password [1] to store your private keys, and use a local socket for your SSH agent to automatically unlock using TouchID.

[1] https://1password.com/developers/ssh

comment 6mo ago · link · parent

While Apple does make nice hardware and appear to be listening to their users in that respect, don't forget that Tahoe has not been particularly well-received.

comment 11mo ago · link · parent

While I agree with your sentiment, the actual quote is subtly different, which changes the meaning:

"Think of how stupid the average person is, and realize half of them are stupider than that."

comment 12mo ago · link · parent

That was my first thought too! but then realised Allan Border has a double L, while the app's name is "Alan"

comment 1y ago · link · parent

Nothing is in its "final form" today.

I'm a long time SWE and in the last week, I've made and shipped production changes across around 6 different repos/monorepos, ranging from Python to Golang, to Kotlin to TS to Java. I'd consider myself "expert" in maybe one or two of those codebases and only having a passing knowledge of the others.

I'm using AI, not to fire-and-forget changes, but to explain and document where I can find certain functionality, generate snippets and boilerplate, and produce test cases for the changes I need. I read, review and consider that every line of code I commit has my name against it, and treat it as such.

Without these tools I'd estimate being around 25% as effective when it comes to getting up to speed on unfamiliar code and service. For that alone, AI tooling is utterly invaluable.

comment 1y ago · link · parent

> Easiest day for engineers on-call everywhere

I have three words for you: cascading systems failure

comment 1y ago · link · parent

> ... Feedly that pretend to care about RSS but layer on features unrelated to the protocol

I've been using Feedly since Google killed reader, and while I like the RSS functionality it offers, I do agree that they've slowly been adding more and more features I don't care for.

Maybe it's time to migrate to something like TFA suggests.

I also agree with your other comments; it's huge a shame.

comment 1y ago · link · parent

I see what you did there

comment 1y ago · link · parent

There appears to be a link to an RFC1918 address on that page: http://192.168.4.56:5001

comment 1y ago · link · parent

"Don't put your hand in the fire."

comment 1y ago · link · parent

I've been using McFly [1] recently, and like it a lot.

> McFly replaces your default ctrl-r shell history search with an intelligent search engine that takes into account your working directory and the context of recently executed commands. McFly's suggestions are prioritized in real time with a small neural network.

[1] https://github.com/cantino/mcfly

comment 2y ago · link · parent

As was also pointed out in the TFA, while you may not be "marking people down" because of unfamiliarity with syntax, an interviewee who has more experience with the language (and it's debugging tools) used in the interview will have an inherent advantage over someone who isn't as familiar.

comment 2y ago · link · parent

I agree, nice and thick, with lots of butter! Don't listen to the advice in the article :-)

> The trick is not to spread it thickly like peanut butter; instead, you take about a quarter of a teaspoon’s worth and scrape it thinly over the entire slice.

comment 2y ago · link · parent

And if your main.go is in a sub-directory, e.g. cmd/pathto/cli/main.go:

    $ go run ./cmd/pathto/cli

comment 2y ago · link · parent

From the Wikipedia entry:

> After his death Machiavelli's name came to evoke unscrupulous acts of the sort he advised most famously in his work, The Prince. He claimed that his experience and reading of history showed him that politics have always been played with deception, treachery, and crime. He also notably said that a ruler who is establishing a kingdom or a republic, and is criticized for his deeds, including violence, should be excused when the intention and the result are beneficial to him.

comment 2y ago · link · parent

Save, open FTP/SCP client, copy to webserver, maybe poke/restart a service via SSH, back to browser, refresh... dammit, error, rinse repeat.

We're certainly spoiled having formatting, linting, tests and coverage all run on save these days :-)

comment 2y ago · link · parent

What a gem! And a few more from the HTML source:

    <META NAME="Keywords" CONTENT="entrances2hell, entrancestohell, entrances to hell, Hell, Canterbury, Kent,">
As well as a style tag missing a closing '>' on the page template:

    </style

comment 2y ago · link · parent

Practical Extraction and Reporting Language

comment 2y ago · link · parent

Sure, I understand that from the POV of making your code explicit. Personally I have always tended towards, for example:

    var x string
when initializing empty (zero-value) vars, versus:

    x := "hello"
when initializing variables that should hold an initial value.

To me as a Go programmer at least, this is more obvious and intuitive as to the intent of the declaration.

comment 2y ago · link · parent

The author used:

    sum := float32(0)
Over Go's zero-value default initialization e.g.

    var sum float32
A nit stylistically but wondering if there was a good reason to do so?

comment 2y ago · link · parent

I feel the same way.

My commits on a PR are always rebased as I go, into one or two or at most three neat changes. Meanwhile (some) others I work with seem to have no problem creating PRs consisting of a dozen or more changes, most of which with messages like “wip”, “typo”, “fix comment” etc.

comment 2y ago · link · parent

Don't forget the companion isEven function:

    func isEven(n int64) bool {
        return !isOdd(n)
    }

comment 2y ago · link · parent

> The fact that the Python REPL provides a helpful hint seems like extra effort to make your life easier.

I agree; Python is actually helping you out here, since just typing `exit` doesn't actually call the callable.

Also, Python being Python, while not recommended, there's nothing stopping the user from assigning to `exit` then printing it in the repl:

    >>> exit = 42
    >>> exit
    42
What would the author expect Python to do in this instance?

comment 2y ago · link · parent

I’m bemused by these sorts of disparaging comments that come from people who seem to have no real world experience running Go applications at scale.

It’s entirely possible to run a server that will handle tens of thousands of req/sec on hardware with comparatively small amounts (by todays standards) of RAM e.g. 512MB

comment 2y ago · link · parent

A huge time-saver for me when adding table-driven test boilerplate in Go has been using gotests[0] to generate the template.

If you use VSCode with the Go extension it's already available there as a command "Go: Generate Unit Tests for Function/Package".

[0] https://github.com/cweill/gotests

comment 3y ago · link · parent

Chips. Although very occasionally you will hear crisps.

Often "hot chips" (french fries), as distinct from a "packet of chips" (crisps), but it's contextual: e.g. a Schnitzel with salad and chips, would always be with hot chips.

comment 3y ago · link · parent

> Published 16 January 2023 3:59pm

comment 3y ago · link · parent

It's obvious, you need to run:

    $ man find
before you can do that.

comment 3y ago · link · parent

I'm using uBlacklist [1].

[1] https://iorate.github.io/ublacklist/docs

12