Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. Code is so much easier to write than read because when you're writing it, you know the goal you're trying to achieve and the constraints placed upon your solution.

Code is so much easier to write than read because when you're writing it, you know the goal you're trying to achieve and the constraints placed upon your solution.

Pianificato Fissato Bloccato Spostato Senza categoria
devprogramming
5 Post 4 Autori 11 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • Allenundefined Questo utente è esterno a questo forum
    Allenundefined Questo utente è esterno a questo forum
    Allen
    scritto su ultima modifica di
    #1

    Code is so much easier to write than read because when you're writing it, you know the goal you're trying to achieve and the constraints placed upon your solution. Often, the solution becomes "obvious" because of these two factors, so you don't need to think too hard about what to write.

    When you're reading code, you often don't know the exact goal or constraints that were placed on the writer, so you're piecing together not only the "how" but the "why". #dev #programming

    rag. Gustavino Bevilacquaundefined 1 Risposta Ultima Risposta
    2
    • Allenundefined Allen

      Code is so much easier to write than read because when you're writing it, you know the goal you're trying to achieve and the constraints placed upon your solution. Often, the solution becomes "obvious" because of these two factors, so you don't need to think too hard about what to write.

      When you're reading code, you often don't know the exact goal or constraints that were placed on the writer, so you're piecing together not only the "how" but the "why". #dev #programming

      rag. Gustavino Bevilacquaundefined Questo utente è esterno a questo forum
      rag. Gustavino Bevilacquaundefined Questo utente è esterno a questo forum
      rag. Gustavino Bevilacqua
      scritto su ultima modifica di
      #2

      @allenu

      Here is why I often add comments: they are for the future me.

      Allenundefined iamreinderundefined Sabrina Web :privacypride: 📎undefined 3 Risposte Ultima Risposta
      1
      • rag. Gustavino Bevilacquaundefined rag. Gustavino Bevilacqua ha condiviso questa discussione
      • rag. Gustavino Bevilacquaundefined rag. Gustavino Bevilacqua

        @allenu

        Here is why I often add comments: they are for the future me.

        Allenundefined Questo utente è esterno a questo forum
        Allenundefined Questo utente è esterno a questo forum
        Allen
        scritto su ultima modifica di
        #3

        @GustavinoBevilacqua Yeah, definitely a good strategy. It's so easy to under-comment or under-document because in the moment, your solution feels so obvious since you know all the constraints, but in retrospect, it's not so obvious...

        1 Risposta Ultima Risposta
        1
        • rag. Gustavino Bevilacquaundefined rag. Gustavino Bevilacqua

          @allenu

          Here is why I often add comments: they are for the future me.

          iamreinderundefined Questo utente è esterno a questo forum
          iamreinderundefined Questo utente è esterno a questo forum
          iamreinder
          scritto su ultima modifica di
          #4

          @GustavinoBevilacqua @allenu Same. I think knowledge should be as close to the code as possible. Not only is that where you’ll need it in the future, it’s also where it has the highest chance to be kept up to date.

          1 Risposta Ultima Risposta
          2
          • rag. Gustavino Bevilacquaundefined rag. Gustavino Bevilacqua

            @allenu

            Here is why I often add comments: they are for the future me.

            Sabrina Web :privacypride: 📎undefined Questo utente è esterno a questo forum
            Sabrina Web :privacypride: 📎undefined Questo utente è esterno a questo forum
            Sabrina Web :privacypride: 📎
            scritto su ultima modifica di
            #5

            @GustavinoBevilacqua @allenu I've learned that lesson the hard way

            1 Risposta Ultima Risposta
            1
            • Oblomovundefined Oblomov ha condiviso questa discussione
            Rispondi
            • Topic risposta
            Effettua l'accesso per rispondere
            • Da Vecchi a Nuovi
            • Da Nuovi a Vecchi
            • Più Voti


            • Accedi

            • Accedi o registrati per effettuare la ricerca.
            • Primo post
              Ultimo post