News for hackers. Stuff that matters.
Re:Making Video Games in 2025 (without an engine) by rhdunn on Monday March 02, 2026 @04:54AM (#47215833)
I don't use AI for the sake of it, I use it where and when it is useful. For example:

1. advanced autocomplete -- if you have or paste the structure of a JSON or other format, or a class fields, it is good at autocompleting things like serialization, case statements, or other repetitive/boilerplate code;

2. questions -- it can often be difficult to find an answer on Google/etc. (esp. if you don't know exactly what you are looking for, or if Google decides to ignore a key term such as the programming language), but can be better via an AI.

Like all tools, you need to read, check, and verify its output.

Re:Making Video Games in 2025 (without an engine) by bandrami on Monday March 02, 2026 @05:20AM (#47216030)
Genuine question re #1: does your text editor not already do that?
Re:Making Video Games in 2025 (without an engine) by rhdunn on Monday March 02, 2026 @05:59AM (#47216371)
Text editors/IDEs have simple autocomplete and the ability to do some expansion, e.g. a for loop with placeholders to fill in. Those work and are still useful.

JetBrains also has local line-based LLM models for various languages.

With the LLM-based autocomplete it a) generally autocompletes more code at once, and b) will often pick up on patterns in the existing code. E.g. if you have a similar method, list of print/string buffer write statements, or other repetitive code in the file it will often use that as a model for the generated code.

Re:Making Video Games in 2025 (without an engine) by bandrami on Monday March 02, 2026 @06:19AM (#47216515)
That sure sounds like you're describing customizable snippets, which AFAIK every major editor supports?
Re:Making Video Games in 2025 (without an engine) by bubblewand on Monday March 02, 2026 @08:56AM (#47218004)
Sitting here on the sidelines having never configured snippets or macros or any of that in any of my editors, which I could have done like 30 years ago but never bothered in all this time, doing quizzical-dog look at all these people thrilled about LLMs.

I guess they might finally get me to use those things since they take the “configuring” and “remembering shortcuts” part out, but so much of this doesn’t look new at all. Super old, actually.

Re:Making Video Games in 2025 (without an engine) by truetraveller on Monday March 02, 2026 @10:14PM (#47227530)
In my objective opinion, almost all AI uses cases (coding or otherwise), are just because of people's extreme laziness in spending a little time setting up some "automated" workflow, be it canned templates or whatever. The non-AI approach has the added benefit of being precise!
Re:Making Video Games in 2025 (without an engine) by rhdunn on Monday March 02, 2026 @09:43AM (#47218569)
Customizable snipping is a feature editors support (which I mentioned as they are related/similar to what the AI is doing), but is different to the AI autocomplete behaviour.

If I have a JSON structure, I can paste that into the file as a comment, e.g.:

    # {"foo": 1, "bar": "test", "baz"}
    @dataclass
    class FooBar:
        foo:
and the AI will/can autocomplete/generate that to:

    @dataclass
    class FooBar:
        foo: int
        bar: str
        baz: int
using the JSON example. Then if you type:

        def __str__(self):
the AI could then contextually generate, e.g.:

    return f'Foo(foo={self.foo}, bar={self.bar}, baz={self.baz})'
Or if you have a SQLAlchemy model:

    class Foo(Base):
        __tablename__ = 'foos'

    bar_id: Mapped[int | None] = mapped_column(ForeignKey('bars.id'), default=None)
typing `bar:` the AI can autocomplete:

    bar: Mapped[Optional['Bar']] = relationship()
picking up that you have a `Bar` class in the file. Especially if you have other similar id/object definitions in the file.
Re:Making Video Games in 2025 (without an engine) by bandrami on Monday March 02, 2026 @10:52AM (#47219539)
Right, it's a less-flexible paste macro you don't actually have control over. shrug
Re:Making Video Games in 2025 (without an engine) by direwolf20 on Monday March 02, 2026 @09:44PM (#47227306)
It's a DWIM button.
Re:Making Video Games in 2025 (without an engine) by meheleventyone on Monday March 02, 2026 @10:20AM (#47219082)
The JetBrains local autocomplete is hilarious but occasionally useful. I find it really hit and miss in terms of when it will decide to autocomplete and whether it will exhastively complete all elements, miss some out or get itself into a loop over several.
Re:Making Video Games in 2025 (without an engine) by bandrami on Monday March 02, 2026 @11:33PM (#47228088)
The out-of-the-box stuff is supposed to be kind of stupid. Are you guys really not editing your own snippets and shortcuts? Have people really been typing out "def do_something(foo, bar, baz)\n\t" manually?
Re:Making Video Games in 2025 (without an engine) by socalgal2 on Monday March 02, 2026 @05:54AM (#47216318)
Without ai my text editor auto completes letters into existing identifiers or adds a closing brace

With ai it add several lines of code at once as soon as it thinks it recognizes a common pattern.

It’s not perfect and it can get in the way but it’s amazing when it guesses right and spits out the next 3-4 lines I would have typed

Re:Making Video Games in 2025 (without an engine) by bandrami on Monday March 02, 2026 @06:19AM (#47216511)
I'm trying to think of a text editor that doesn't support customizable snippets and templates, and failing
Re:Making Video Games in 2025 (without an engine) by ses1984 on Monday March 02, 2026 @10:23AM (#47219124)
Those two things aren’t the same at all, they’re so different it’s hard to believe you’re not being intentionally obtuse.
Re:Making Video Games in 2025 (without an engine) by bandrami on Monday March 02, 2026 @10:50AM (#47219507)
I mean, in the sense that customizable snippets are more flexible and can cover a wider variety of use-cases, I guess?
Re:Making Video Games in 2025 (without an engine) by bluefirebrand on Monday March 02, 2026 @01:04PM (#47221635)
Personally I find this workflow is jarring. I get into flow typing code and then the AI autocompletes the next four lines on a tab input. Now my flow is screeching to a halt because I have to switch from flow mode to review mode to make sure it actually autocompleted what I wanted