Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    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 Uncategorized
    devprogramming
    5 Post 4 Autori 6 Visualizzazioni
    Caricamento altri post
    • 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.
    • allenu@mastodon.socialA Questo utente è esterno a questo forum
      allenu@mastodon.social
      ultima modifica di

      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

      gustavinobevilacqua@mastodon.cisti.orgG 1 Risposta Ultima Risposta Rispondi Cita 1 0
      • gustavinobevilacqua@mastodon.cisti.orgG Questo utente è esterno a questo forum
        gustavinobevilacqua@mastodon.cisti.org @allenu@mastodon.social
        ultima modifica di

        @allenu

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

        allenu@mastodon.socialA iamreinder@mastodon.socialI sabrinaweb71@sociale.networkS 3 Risposte Ultima Risposta Rispondi Cita 0
        • gustavinobevilacqua@mastodon.cisti.orgG gustavinobevilacqua@mastodon.cisti.org shared this topic
        • allenu@mastodon.socialA Questo utente è esterno a questo forum
          allenu@mastodon.social @gustavinobevilacqua@mastodon.cisti.org
          ultima modifica di

          @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 Rispondi Cita 1 0
          • iamreinder@mastodon.socialI Questo utente è esterno a questo forum
            iamreinder@mastodon.social @gustavinobevilacqua@mastodon.cisti.org
            ultima modifica di

            @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 Rispondi Cita 1 0
            • sabrinaweb71@sociale.networkS Questo utente è esterno a questo forum
              sabrinaweb71@sociale.network @gustavinobevilacqua@mastodon.cisti.org
              ultima modifica di

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

              1 Risposta Ultima Risposta Rispondi Cita 1 0
              • Primo post
                Ultimo post