You’re absolutely right! (Chat GPT)

  • 1 Post
  • 28 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2024

help-circle



  • (Developer here) HTML, CSS and JS are always good to know anyway. For a video game, it depends if you want something really “video-game like” (in which case I advise to use a game engine the can be run in a browser, like Godot) or just an interactive interface with buttons, images and text.
    For the latter, I would advise to use one the numerous JS frameworks (Solid, Svelte, Vue or whatever) but if you don’t know JS at all, learning it from scratch could be good. Plus, you can make really pretty animations with CSS!
    I know Go is a possibility for browsers, but I’m pretty sure it’s not the best to make a game.

    TLDR;

    • You want a real video-game --> Godot
    • You want a web interface --> SolidJS/Svelte (Both are good and easy to learn so the choice is yours) + CSS for animations






  • It was a tiny TicTacToe server I made to learn machine learning. I basically played TTT against it and it would train on the former games to improve. It didn’t work since I’m not a data scientist, but at least I know how to create Web Sockets!

    I can give you a few advice if you want

    • Single Responsibility Principle: don’t do everything in the same place, separate between functions, classes or files. In my server, one file contained anything related to the server, another anything related to game logic and another anything related to machine learning.
    • Don’t reinvent the wheel: unless you’re making it as an exercice, don’t create something that already exist as a library. Python is wonderful for its libraries
    • Don’t optimize stuff: if you feel that “it could be faster”, either benchmark it or give up. “Premature optimization is the root of all evil”
    • Learn how to make useful naming, tests and documentation: this is not something developers like to do but you’ll love yourself if you read your code after a few months
    • Don’t code with an AI: If you’re bad without an AI, you’ll be bad with it. If you’re good with an AI, you’ll be good without it. You can still ask one for snippets or use it as a tool to discover concepts you don’t know about but I strongly advice against autocomplete and coding agents (I talk from experience).

    If you don’t know how to start, you can make a really simple Tic Tac Toe game with its rules and play it in a CLI. Then you can decide how to pimp it: a better interface, game saves, an opponent played by the computer, a game server for a multiplayer game… you decide!






  • Fargeol@lemmy.worldOPtoFuck AI@lemmy.worldChatGPT or a microwave
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 months ago

    I thought of this during a debate I had with a colleague about generative AI
    «  -Come on, why would I trust the most advanced technology in the world if it cannot even tell the time when asked to? Even my kitchen microwave can tell the time
    -Yes, but AI isn’t made to heat stuff
    -…It does heat a lot of water, though »