19 Matching Annotations
  1. Oct 2022
  2. Aug 2021
    1. Now consider we want to handle numbers in our known value set: const KNOWN_VALUES = Object.freeze(['a', 'b', 'c', 1, 2, 3]) function isKnownValue(input?: string | number) { return typeof(input) === 'string' && KNOWN_VALUES.includes(input) } Uh oh! This TypeScript compiles without errors, but it's not correct. Where as our original "naive" approach would have worked just fine. Why is that? Where is the breakdown here? It's because TypeScript's type system got in the way of the developer's initial intent. It caused us to change our code from what we intended to what it allowed. It was never the developer's intention to check that input was a string and a known value; the developer simply wanted to check whether input was a known value - but wasn't permitted to do so.
  3. Jun 2021
    1. "Although in the United States it is common to use the term multiculturalism to refer to both liberal forms of multiculturalism and to describe critical multicultural pedagogies, in Canada, Great Britain, Australia, and other areas,anti-racism refers to those enactments of multiculturalism grounded in critical theory and pedagogy. The term anti-racism makes a greater distinction, in my opinion, between the liberal and critical paradigms of multiculturalism, and is one of the reasons I find the anti-racism literature useful for analyzing multiculturalism in music education."

  4. Mar 2021
  5. Feb 2021
  6. Jan 2021
  7. Dec 2020
  8. Oct 2020
  9. Aug 2020
    1. I went against the grain, applying other tools that people have written over the years to directly perform the job at hand which do not involve entering a program for awk or a shell to run, with answers like https://unix.stackexchange.com/a/574309/5132 and https://unix.stackexchange.com/a/578242/5132 . Others have done similar. https://unix.stackexchange.com/a/584274/5132 and https://unix.stackexchange.com/a/569600/5132 are (for examples) answers that show alternative tools to answers employing shell script and (yet again) awk programs, namely John A. Kunze's jot and rs (reshape), which have been around since 4.2BSD for goodness' sake!
  10. Jul 2020
    1. There's a few other questions on StackOverflow regarding how to structure YAML files for i18n, and I don't think there is a 'right' answer to your question. If it works for you, then great! I would say that any answer you get will be completely subjective, and more about i18n and translation management rather than anything specifically to do with the Rails way.
  11. Apr 2020
    1. there's no reasonable way to communicate effectively with the less technically minded without acquiescing to the nontechnical misuse of the term "hacker"
    2. The more easily relabeled of the two uses of the term "hacker" is the malicious security cracker: it is not only the more recent phenomenon to acquire that label, but also the one whose meaning is most easily evoked by an alternative term. This is why, when you read an article of mine that talks about malicious security crackers, I use the term "malicious security cracker"
  12. Sep 2018
    1. We want better children—but not by turning procreation into manufacture or by altering their brains to gain them an edge over their peers. We want to perform better in the activities of life—but not by becoming mere creatures of our chemists or by turning ourselves into tools designed to win or achieve in inhuman ways. We want longer lives—but not at the cost of living carelessly or shallowly with diminished aspiration for living well, and not by becoming people so obsessed with our own longevity that we care little about the next generations. We want to be happy—but not because of a drug that gives us happy feelings without the real loves, attachments, and achievements that are essential for true human flourishing.

      This paragraph draw my attention. It is a important notice for this and the future generation. There are so many things that we are wondering and fight for but there are some temptation and wrong expectation in our world. i think that people really need to think about what are they wondering, such as happiness, career, family. after we recognize what we want then we need to figure out the right way to achieve our goal.