33 Matching Annotations
  1. Apr 2021
    1. “Who cares? Let’s just go with the style-guide” — to which my response is that caring about the details is in the heart of much of our doings. Yes, this is not a major issue; def self.method is not even a code smell. Actually, that whole debate is on the verge of being incidental. Yet the learning process and the gained knowledge involved in understanding each choice is alone worth the discussion. Furthermore, I believe that the class << self notation echoes a better, more stable understanding of Ruby and Object Orientation in Ruby. Lastly, remember that style-guides may change or be altered (carefully, though!).
  2. Mar 2021
  3. Feb 2021
    1. The fact we’re using ActiveRecord (or something looking like it) doesn’t mean Trailblazer only works with Rails! Most people are familiar with its API, so we chose to use “ActiveRecord” in this tutorial.
  4. Dec 2020
  5. Nov 2020
    1. One last bonus: CSS variables can be written in a way that makes it easier for human programmers to understand. If you just see hex code #93e9be, you won’t know what color it produces, while --brand-green makes clear the purpose of the variable.
    1. Similarly problematic is the “cancel culture,” where people attempt to expunge anyone with whom they do not perfectly agree, rather than remain focused on those who profit from discrimination and injustice.

      This is very important and easy to understand

  6. Oct 2020
    1. A reasonably clean alternative would be to map a function over the array and use destructuring in the each loop: {#each [1, 2, 3, 4].map(n => ({ n, sqr_n: n * n })) as { n, sqr_n }} {sqr_n} {sqr_n / 2}<br> {/each}
  7. Sep 2020
    1. Why the obfuscation of remaining to r and callbacks to c? This is fine for function-local variables but in this instance makes the code significantly harder to reason about? There is no notion of what c and r mean.
    1. I'm certainly not claiming that we should use clever tricks to scrunch our code into the most compact form possible at the expense of readability. Nor am I claiming that reducing lines of code is necessarily a worthwhile goal, since it encourages turning readable code like this...
    1. Personally for me, this is incredibly hard to read. Regex everywhere, nested objects with different rules and configurations that are very intuitive, multiple loaders that resolve backwards, built in loaders having obscure issues that require using third party loaders in between, separation of plugins and loaders, and so on.
  8. Aug 2020
  9. Jun 2020
    1. a technique that enable a test suite to perform as well as using fixtures (or better if you're running just a few tests from the suite) and read as good as you are used to when using factories
  10. Feb 2020
    1. The lack of a dynamic scripting language is annoying, though Tsung XML scenarios (again, just like JMeter) can include things like loops and if-statements, so it is actually possible to write all sorts of complicated user scenario “code.” The functionality is there, but the usability is not: few developers like “programming” in XML.
    1. We believe load test scripts should be plain code to get all the benefits of version control, as opposed to say unreadable and tool generated XML.

      Saw another comment lamenting the use of ugly/unreasonable XML files:

      https://github.com/flood-io/ruby-jmeter

      Tired of using the JMeter GUI or looking at hairy XML files?

  11. Jan 2020
    1. An online tool for calculating readability Some word processing software has the Flesch-Kincaid formula built in. Or you can use this online tool to calculate the reading level of a particular passage:

      resource

  12. May 2019
  13. Oct 2017
    1. The transformation of a page by Readability is pretty dramatic, and its use can lead to a focused conversation in the classroom about what has been removed, and why, and what has remained, and why. This forced awareness of the construction of a web page is valuable knowledge for young users of the web.

      This is an important thing to think about because if a student is always using "readability" then are they really learning how to read online. This sounds like a really helpful tool for students with OCD or ADHD.

  14. Nov 2016
    1. When you agree to the Terms of Use, you can continue with the registration process.

      The text edit for this Terms of Use is testing at a Grade Level of 10, as a whole. However, individual sentences test lower 6-8). The multi-syllabic words and unrecognized words (eg-Movember, TrueNTH) add to the increase in reading level. But all in all, I think the edit may read a little clearer.