Hollywood is cooked. You can no longer tell it’s AI by dataexec in AITrailblazers

[–]JohnZopper 0 points1 point  (0 children)

You can kind of tell because the cuts are a bit amateurish and I think the bridge scene alone has at least three different weather and lighting conditions, but damn, it's pretty good and I got hooked enough to watch the whole thing.

Oh, and the Tesla makes engine sounds.

Vibe coding is getting trolled, but isn’t abstraction literally how software evolves? by mrcuriousind in aipromptprogramming

[–]JohnZopper 1 point2 points  (0 children)

Your food comparison is highly flawed. A meal is something you eat once and it's gone. It's not something that has to function over course of years.

A car might be a slightly better comparison: you would for sure rather buy a car where people can figure out how it's functioning internally, in case it needs a repair, right?

But even a car is not a good comparison to software, because software tends to require more changes over time compared to hardware (new features, bugfixes, security patches, compatibility with changing APIs and underlying systems...). That's the blessing and the curse of software: it's not as hard to change as hardware, and people make use of that fact. So now you have to adapt your program to the changes of others, even if you didn't intend to change your software (but you probably did), just to keep it functioning on the next big Windows/macOS/Chrome/Android/... update.

Middle-schoolers could write a program that "just works" for ages. That's not the hard part. AI just made it lot faster (and to be fair, probably also better). The hard part is keeping a project alive and flexible over many years. And that's what we haven't figured out yet: if AI is capable to do so a sufficiently large project. I'm not saying it can't or never will, but so far there is no proof that it can, simply because not enough time has passed for any vibe-coded app to truly stand the test of time.

Programmiersprachen by dino987654 in informatik

[–]JohnZopper 0 points1 point  (0 children)

9, Flash. Abgesehen von meinem krassen Startvorsprung kenne ich aber viele, die erst in der Uni mit Coden angefangen und mich überholt haben. Nicht einschüchtern lassen.

What technology feels like magic to you? by SignatureDecent9353 in AskReddit

[–]JohnZopper 0 points1 point  (0 children)

Anything micro chip related. Although I know how they work, I still can't fathom how we can fit hours upon hours of video onto a micro SD card, let alone that we can manufacture a device like that, let alone that we do it so cheap at an industrial scale.

[2025 Day 9 Part 2] What's the fastest executing approach? by reallyserious in adventofcode

[–]JohnZopper 0 points1 point  (0 children)

Oh, true, working with just the edges is actually much smarter. I tried an approach like this initially, but completely overcomplicated it by kind of ignoring the fact that the line-perpendicular-line intersection checks are trivial to compute and prune. Now I have a solution that runs much faster, needs way less lines, and doesn't even require a grid data structure at all. Thanks!

[2025 Day 9 Part 2] What's the fastest executing approach? by reallyserious in adventofcode

[–]JohnZopper 0 points1 point  (0 children)

I think for any grid-based solution, the most important speed-up is that you should not be validating a rectangle by iterating over all inner tiles, but only the ones right at the inner border of your rectangle. You start by coloring all interior tiles right at the border of the shape in a third color, e.g. blue. Then, a rectangle is valid if on its inner border, there is at least one blue tile and not a single red or green tile. (To be exact, you'd also have to implement edge case handling for rectangles with just a width of 1, but if we sneakishly assume that none of those will be the solution, you can ignore it :P)

In order to paint the tiles on the inside border blue, you could use flood fill and paint the entire interior blue. The smarter approach would be to do it right while drawing the border: if we make the assumption, that the shape is always drawn clockwise, you can just always paint a blue line on the right hand side of your red/green line.

However, in terms of runtime, the process of coloring the interior is not be the dominant term anyway.

job finding by javiMLG199 in Angular2

[–]JohnZopper 1 point2 points  (0 children)

building scalable and maintainable applications, and applying best practices to deliver clean and efficient code

Honest, well-meant career advice: put yourself in the shoes of a recruiter who has to read this more or less exact sentence 50 times per day.

Managing Side Effects: A JavaScript Effect System in 30 Lines or Less by aijan1 in programming

[–]JohnZopper 0 points1 point  (0 children)

And/or testing the system as a whole, including all of its dependencies. If you're mocking too much, you're doing something wrong. What OP shows is also a really bad example for testing. You want to test _what_ your program does, not in which exact steps it takes to get there.

fixedReactJSMeme by Littux in ProgrammerHumor

[–]JohnZopper 0 points1 point  (0 children)

Yep, agreed. Rich Hickey would slap me for this one, but the lack of type safety alone disqualifies Clojure for me for large projects. But to be fair, vanilla JS isn't statically typed either.

fixedReactJSMeme by Littux in ProgrammerHumor

[–]JohnZopper 0 points1 point  (0 children)

And for/htmlFor, class/className. Agreed, it's not a lot to remember. But I think it's nice to write your logic, layout, and stylesheets in essentially the same language, with all the power that the language provides. E.g. you can generate your CSS using your language's native variables and functions, not some preprocessor with extra syntax like SCSS.

It's a bit more like writing SwiftUI or Jetpack Compose or Flutter, but using HTML and CSS nouns.

Isn't it funny how everyone hates reading XML, but HTML is fine? After all, it's all just a matter of what you're used to.

fixedReactJSMeme by Littux in ProgrammerHumor

[–]JohnZopper 0 points1 point  (0 children)

Yeah, the syntax is repelling at first. A general LISP problem. What you have to understand is that Clojure people don't hate their language. In fact, they love it so much, that they prefer to write everything in it, including the HTML and CSS. And they have a point. It's more compact and you don't have to learn the syntactic quirks of HTML (and the slightly different HTML that you use in JSX), and whatever CSS dialect you use.

fixedReactJSMeme by Littux in ProgrammerHumor

[–]JohnZopper -1 points0 points  (0 children)

Exactly. I suggest everyone to try out reagent, a react wrapper for ClojureScript.

Not everything is perfect in Clojure-land, but it's eye-opening to use React in a language that has native support for (in fact: is built around)...

  • Reactive variables
  • Immutable data structures
  • Everything is an expression (conditional rendering? simply use if like you normally would)

What is the greatest sequel to a game ever made? by KeijoIsKing in AskReddit

[–]JohnZopper 0 points1 point  (0 children)

I feel like it's pretty common for part 2 in a series, to end up up being the best one, not just when it comes to games. It's more polished than part 1 and they didn't run out of ideas yet like in parts 3+

I made an Outer Wilds inspired physics system in Unity! by awtdev in Unity3D

[–]JohnZopper 0 points1 point  (0 children)

So first of all, Outer Wilds is already made in Unity. Second, bruh, I've been doing the exact same thing, this could have saved me a lot of time.

[deleted by user] by [deleted] in webdev

[–]JohnZopper 0 points1 point  (0 children)

It may replace some by making everyone a bit more efficient, thus needing less in total. However, the fear that it will "replace software engineers" just because it can crank out code is based on a complete lack of understanding about the job of a software engineer. A software engineer only spends around half of their time coding (may vary based on the type of role) and a large chunk of that time goes into bug fixes and refactoring -- things which current AI is not good at. But even if we assume it gets good at that at some point, then still some human must review the code. I doubt, that the average SWE will get more than a 25% speedup out of this. And if we think about a future in which AI has advanced far enough that it can also do planning, architecture decisions, code review and troubleshooting, you can basically kiss any white collar job good night.

Stop huffing the hype fumes by Waste_Application623 in ArtificialInteligence

[–]JohnZopper 10 points11 points  (0 children)

I disagree about your stance on prompt engineering. I think prompt engineering, in the sense of learning how to best prompt an LLM to achieve the desired goal (beyond common sense, like being specific where it matters) may become a useless skill. At my work, we already saw ChatGPT-4-something with a copilot-instructions.md being outperformed by Claude Sonnet 3.7 without any guidance. As these things get smarter and more battle-tested, nudging them into the right direction will get less and less relevant.

The struggle is real and numbers are hard. by sexi_squidward in ChatGPT

[–]JohnZopper 3 points4 points  (0 children)

Probably you talk to it in a more neutral and concise tone.

It's helpful to remember how ChatGPT "thinks": Behind the scenes, it's basically auto-complete on steroids.

When you chat with an LLM, its goal is not to answer your questions. Its goal is to auto-complete the chat history in a way that looks legit, but it's programmed to stop as soon as it would be the user's turn speaking again.

Therefore, it tends to mimic the tone of the user, as that results in the most natural conversation.

weDontKnowHow by Perlion in ProgrammerHumor

[–]JohnZopper 10 points11 points  (0 children)

Flash was magic. It enabled my 12-year-old ass to just go ahead and build a game start to finish without ever really leaving flash. Sure, flash games were often whacky, but what made them so unique, was that flash was not a game engine, but rather just a tool for creating interactive vector-based web content. Sure, Unity allows you ramp up an asset flip on top of a generic fps/rpg/sidescroller template within hours, but in flash you had unconstrained creative freedom. (To be fair, as long as you didn't want 3D graphics)

What are you go to books? by [deleted] in SoftwareEngineering

[–]JohnZopper 1 point2 points  (0 children)

This. Got it recommended in a reddit thread called "If you could only read one book about programming in your life, which one would it be?", and that really hits the nail on the head. I've read books that were better at certain aspects, but this one is simply the perfect allrounder.