• 16 Posts
  • 233 Comments
Joined 5 months ago
cake
Cake day: June 2nd, 2024

help-circle

  • Completely depends on how often you need to write boilerplate code, and how error-prone it is.

    After writing hundreds of instances of ‘fetch this from the server and show an error if it doesn’t work’, I finally wrote a helper for that. It took 2 hours, shouts at me if I use it wrong, and instantly makes my classes easier to read because all the boilerplate is gone. As an added bonus, the invocation is so small that Copilot can write it error-free, which it couldn’t before.

    So fetching things is now a thing of a few seconds instead of one minute with a chance of making a mistake. I say it’s worth it.









  • The practical application isn’t the proof that 1+1=2. That’s just a side-effect. The application was building a framework for proving mathematical statements. At the time the principia were written, Maths wasn’t nearly as grounded in demonstrable facts and reason as it is today. Even though the principia failed (for reasons to be developed some 30 years later), the idea that every proposition should be proven from as few and as simple axioms as possible prevailed.

    Now if you’re asking: Why should we prove math? Then the answer is: All of physics.











  • Example: Type

    Once upon a midnight dreary  
    While I was pondering, weak and weary  
    Over many a quiant and curious volume of forgotten lore  
    

    To get:

    Once upon a midnight dreary
    While I was pondering, weak and weary
    Over many a quiant and curious volume of forgotten lore

    (You can highlight the source code to find the extra spaces at the end of each line). Note that this is different from paragraphs, which add spacing between them:

    Once upon a midnight dreary
    
    While I was pondering, weak and weary
    
    Over many a quiant and curious volume of forgotten lore
    

    Once upon a midnight dreary

    While I was pondering, weak and weary

    Over many a quiant and curious volume of forgotten lore