Lurker News

Comments (1,272) 260 threads

Earlier comments
beeskneecaps5 replies#
Four years later: your AI replacement? When do you all predict something like this will happen?
joelbluminator1 reply#
Maybe thirty four years later. I don't think there's AI to gather requirements, talk to people, understand a problem and produce code. That's kinda general intelligence level AI. But this thing can possibly make devs work easier and if it's good enough maybe smaller teams can produce more.
sitkack1 reply#
This will allow for a D or C level coder to be a B/B- coder which is great, quality goes up. But corps will use this to depress wages and finally be able to create that wonderous unicorn of completely fungible coder.

This kind of tooling is akin to the crossbow.
It will allow for less skilled folks to push out code that is like other code at great speed. A copy pasta accelerator if you will.

yellowfish6 replies#
Is that a bad thing? sw-developers are grossly overpaid to the point it's damaging

Continue this thread — 6 replies

trutannus1 reply#
I'm not at all worried about AI taking over software development. In all likelihood, what you'll see instead are AI plugins in IDE editors which just assist in a much more advanced way than the intellisense we have now. Having machines code out the business logic is very much so something that would be less efficient than having a person do it.

Realistically, it just means that, rather than your coworker code-reviewing you and making a handful of comments, you get a machine to do that, and get two or so comments from your coworker about the business logic.
To answer your question: never.

machiaweliczny#
I think programmers will just write model and tests in the end. The rest will be generated.
castlecrasher2#
I imagine that AI like this will certainly speed up development, but I suspect you will almost always need someone in the middle putting the pieces together.
ImprobableTruth1 reply#
Unless we achieve AGI this is never going to replace programming because it will instead just make programming a higher level task. And well, if we achieve AGI (which I think could be pretty soon), all jobs will replaced, so it's not something I think anybody should be worried about.
DantesKite#
I'd love to live in a world where AGI solves cancer.
skocznymroczny#
Nah. Remember that "Google AI signs you up for a hair stylist session" demo? We never got anything out of that.
nhumrich3 replies#
I would love to see an equivalent where it generates all the tests for you
fabiospampinato1 reply#
It should be able to (try to) do something like that too.

There's a little demo about that here: https://copilot.github.com/
It's "just" an autocompletion system basically, if you write something that looks like the beginning of a test it should understand that and try to autocomplete that.

LeifCarrotson1 reply#
I'd say it's more than 'just' an autocomplete system.

Naive autocomplete, as implemented in Excel since forever ago (and I'm sure long before that, I'm just familiar with being annoyed by Excel suggesting wrong entries from its simple and over-eager autocomplete system), merely matches a sequence of characters - if I typed "aut" again in this paragraph it will suggest "autocomplete" because I recently typed it. Implementing it is the kind of task you give to a first-year programming student to practice string matching data structures, similar to a spell checker that merely checks that a string exists in a dictionary.
There's a spectrum from 'just' autocomplete, to a syntax-aware system like VS Intellicode, to this, and eventually beyond this. As mobile predictive text is to a spell checker, so Github Copilot is to autocomplete. As mobile predictive text is to GPT3 [1], so Github Copilot is to...what next? GPT3 is not just a spell checker.
[1] Also by OpenAI: https://news.ycombinator.com/item?id=23345379

fabiospampinato#
I agree, that's why I put the "just" under quotes. It is basically an autocompletion system, just much smarter than human-coded ones in many ways.
duckkg5#
It does!
nhumrich#
only java :(
quink#
Great, a whole new way to automatically introduce bugs through code duplication.

From the examples:

    body: text=${text}
`text` isn't properly encoded, what if it has a `=`?

    rows, err := db.Query("SELECT category, COUNT(category), AVG(value) FROM tasks GROUP BY category")
        if err != nil {
            return nil, err
        }
        defer rows.Close()
shouldn't we want to cleanly `rows.Close()` even if there was an error?

    float(value)
where `value` is a currency. Doesn't Python have a Decimal class for this?

    create_table :shipping_addresses do |t|
that's an auto-generated table, that one's debatable but for starters a `zip` fields makes it American only. And doesn't the customer have an e-mail address instead of a shipping address?

      var date1InMillis = date1.getTime();
But what about the time-zone offset?

I could go on, but literally the first five examples I looked at are buggy in some way.
Edit:

   const markers: { [language:string]: CommentMarker } = {
      javascript: { start: '//', end: ''},
Wow.

Edit 2:

    function collaborators_map(json: any): Map> {
Not exactly buggy, but 8 lines of tedium.

What about

    new Map(json.map(({name, collaborators}) => [name, new Set(collaborators)]))
instead?

Edit 3:

      const images = document.querySelectorAll('img');
      for (let i = 0; i < images.length; i++) {
        if (!images[i].hasAttribute('alt')) {
I mean, I get it, it's auto-generate code. Maybe in the future they can narrow it down to auto-generating good code.

    document.querySelectorAll('img:not([alt])').forEach(
(or)

    img:not([alt]) { border: 1px solid red; }
(or)

    eslint-plugin-jsx-a11y because that maybe that img was rendered through react.
(or)

    it should really be an `outline` because we don't want this to reflow the page and we can. And maybe a will-change.
drcode#
We could get away with more user-friendly programming languages over the years because Moore's law kept giving us more opportunities to sacrifice raw performance for more developer-friendly tools.

But I'm worried these kinds of AI-assist tools will lead to "code spam" that may increase developer productivity even more, yet we no longer have Moore's law to absorb the additional inefficiency in performance these tools may introduce.

Load more comments