• 0 Posts
  • 41 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle


  • A tip I forgot to give: Use the debugger very early while learning JS, it’s very helpful to understand what the code is doing.

    How good have you found ChatGPT to be?

    It’s great for snippets, or explaining simple code. It does fail often when hitting deep in some API, or when you want to do thing in a specific way because you know what you are doing. You have to talk a lot to it, if you want it to produce code for you.
    But in your case, i recommend to never copy paste JS from ChatGPT, because it’s your first programming language (html and css are not programming language), and making your brain used to code will be the most important thing I said to not copy, but you can ask questions to it, and it will be often correct, dont hesitate to send big chunks of your own code to chatgpt to get explanations.











  • So do all file formats.

    I don’t think you understand what I’m saying.
    json, XML files for examples doesn’t have schemas by defaults. Schema exists but are totally optional, and are most of the times never there.

    The same holds for all file formats: don’t go around licking random bits in a file, use a client instead

    Most of the time the file was written by something not implemented to be used by third party.

    That’s really besides the point.

    As far as I’m aware, I’m the one making the point here.


  • A database carry the schema, structure, that allow you to validate that you are still having the structure you want.
    SQLite is both a file and a database, but what I’m saying is that people shouldn’t mess with the file, but the database interface instead.

    I have nothing against third party clients, the important thing is keeping the structure.
    API users shouldn’t have to reparse themselves the data, or worse, guess the structure of the file.

    The facts a DB use the Filesystem behind the scenes, is an implementation details the user shouldn’t be much concerned about, some DB can do without Filesystems.