Daniel Dietrich  

@danieldietrich

Software Engineer • Author • Creator of • Specialization is for insects 🦗

Kiel, Germany
Vrijeme pridruživanja: rujan 2009.
Rođen/a 28. rujna

Tweetovi

Blokirali ste korisnika/cu @danieldietrich

Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @danieldietrich

  1. Prikvačeni tweet

    As a computer scientist, I believe in numbers, but I also believe that the whole is greater than the sum of its parts.

    Poništi
  2. Poništi
  3. 💡 Whoops! I got hit by operator precedence in . foo + (bar === baz) ? "qux" : "quux" isn't the same as foo + (bar === baz ? "qux" : "quux")

    Poništi
  4. 💡 console.log and string template literals render arrays differently. // Array: 1, 2 console.log(`Array: ${[1, 2]}`) // Array: [1, 2] console.log('Array:', [1, 2])

    Poništi
  5. 🥗 Salad, ingredients: 🥬🥑🧅🍅🌶🍄 (the non-psychedelic mushrooms;)

    Poništi
  6. 🤔 I prefer the for-loop in this case. It is pretty straight forward.

    Poništi
  7. proslijedio/la je Tweet
    1. velj

    The core of react-router v6 is 357 lines of code, excluding comments and __DEV__ blocks (which are mostly propTypes). Should be able to read it in an afternoon, if you're curious 👀

    Prikaži ovu nit
    Poništi
  8. proslijedio/la je Tweet
    2. velj

    Notably, the ISO date is the only one where you don’t have to document if day or month comes first. That’s why I like it: It works well across all countries. And it’s also automatically sorted properly.

    Prikaži ovu nit
    Poništi
  9. Prikaži ovu nit
    Poništi
  10. Pro-tip: Here is how I search my release tweets using the Twitter web UI 1. 🔍 Go to search bar... 2. Search: "📦 from:danieldietrich"

    Poništi
  11. My steps: * get latest dependency versions * add search keywords * adapt build target * create git repository * create GitHub repository * enable travis-ci * enable dependabot * enable GitHub sponsors * write TypeScript module * write unit tests * write documentation * release

    Prikaži ovu nit
    Poništi
  12. 📦 Just released object-builder for on NPM (0 dependencies, 217 bytes minzipped). I wrote a 'dev' CLI to accelerate project setup. Here is how long it took me to create a proper project (documentation was the biggest part):

    Prikaži ovu nit
    Poništi
  13. ⏱ [12:31] Done! Please find the artifacts here: * GitHub source: * NPM package:

    Prikaži ovu nit
    Poništi
  14. ⏱ [11:57] On your marks ... get set, GO! I decided to release the object-builder I yesterday talked about. Let's measure how long it takes to 1. Create a TypeScript project from an example Gist 2. Clean it up 3. Add tests 4. Add documentation 5. Release the library to NPM

    Prikaži ovu nit
    Poništi
  15. Hi there 🤗 I recognized that I got several new followers over the last days, thank you! There is a lot more content upcoming. What do you like to hear?

    Poništi
  16. proslijedio/la je Tweet
    2. velj
    Two kids sharing a giant t-shirt labeled "Our get along shirt". The kids are JS devs and TypeScript devs.
    Poništi
  17. Builders are used in the presence of default values or if objects are created in multiple steps. Otherwise you would create them directly using the object literal {}.

    Prikaži ovu nit
    Poništi
  18. Of course concrete builders wouldn't be written n-times. Prepare them with specific default values!

    Prikaži ovu nit
    Poništi
  19. 💡Never write an object builder again! Use a generic one. The new example * builds deep objects * defines default attributes * sets multiple attributes at once * sets attributes in arbitrary order * sets only some optional attributes

    Prikaži ovu nit
    Poništi
  20. Interesting: in older browsers, before JavaScript 1.8.5, `undefined` was a global variable that could be changed. Therefore we see `void 0`, which yields `undefined` in a safe way. Nowadays, we can safely use `undefined`.

    Poništi
  21. proslijedio/la je Tweet
    2. velj

    Aluminium fuel cells (AFCs) that offer five times the range than an average lithium ion battery can offer. This could be a game changer if OEMs can evaluate & adopt this new technology.

    Poništi

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

    Možda bi vam se svidjelo i ovo:

    ·