Andrew Burgess
Andrew Burgess
  • Видео 95
  • Просмотров 930 805
An array of ways ... to create arrays (JS Basics)
Even in 2024, creating arrays in JavaScript has a few gotchas that you'll want to know about! And don't let sparse arrays catch you off guard!
*My Links*
shaky.sh
shaky.sh/tools
#programming #coding #typescript #javascript #frontenddeveloper #backenddeveloper #softwareengineer #softwareengineering #softwaredevelopment #javascriptbasics
Просмотров: 919

Видео

how TypeScript 5.5 makes safer types in fewer keystrokes
Просмотров 2,6 тыс.День назад
TS 5.5 Announcment: devblogs.microsoft.com/typescript/announcing-typescript-5-5/ *My Links* shaky.sh shaky.sh/tools #programming #coding #typescript #javascript #frontenddeveloper #backenddeveloper #softwareengineer #softwareengineering #softwaredevelopment
How to use WeakMap and WeakSet in JavaScript
Просмотров 3,3 тыс.2 месяца назад
*My Links* shaky.sh shaky.sh/tools andrew8088 mastodon.social/@andrew8088 #programming #coding #typescript #javascript #frontenddeveloper #backenddeveloper #softwareengineer #softwareengineering #softwaredevelopment #weakmap #weakset #expressjs
will i never understand this? unknown.
Просмотров 3,3 тыс.3 месяца назад
i think I only said "covariance" when I meant "contravariance" once ... *My Links* shaky.sh shaky.sh/tools #programming #coding #typescript #javascript #covariance #contravariance #frontenddeveloper #backenddeveloper #softwareengineer #softwareengineering #softwaredevelopment
Responding to YOUR feedback about promise concurrency
Просмотров 2,5 тыс.4 месяца назад
Thanks for all the great comments on my last video! *My Links* shaky.sh shaky.sh/tools
Managing Promise Concurrency in JavaScript
Просмотров 7 тыс.4 месяца назад
Check out the code for this video here: gist.github.com/andrew8088/7ecdf23aab7412fe9c702f8ca0387768 *My Links* shaky.sh shaky.sh/tools #programming #coding #javascript #promises #concurrency #frontenddeveloper #backenddeveloper #softwareengineer #softwareengineering #softwaredevelopment
Disposable in TypeScript: Explicit Resource Management
Просмотров 1,8 тыс.5 месяцев назад
We got using/dispose aka explicit resource management in TypeScript 5.2. In this video, we look at a couple examples of how to use this tool in practice. - mock - 0:37 - object pool: - 4:25 - transaction - 10:55 Check out the code for this video here: github.com/andrew8088/ts-using-dispose-example *My Links* shaky.sh shaky.sh/tools andrew8088 mastodon.social/@andrew8088 #programming...
Advent of TypeScript Play-Through! Days 1 - 13
Просмотров 2,7 тыс.6 месяцев назад
Chapters - Day 1 - 0:46 - Day 2 - 1:50 - Day 3 - 2:40 - Day 4 - 3:34 - Day 5 - 5:00 - Day 6 - 7:18 - Day 7 - 11:01 - Day 8 - 14:58 - Day 9 - 17:19 - Day 10 - 21:52 - Day 11 - 23:30 - Day 12 - 28:16 - Day 13 - 33:29 - Conclusion - 46:52 Advent of TypeScript: typehero.dev/aot-2023 Distributive Conditional Types: shaky.sh/ts-distributive-conditional-types/ Thanks to @MichiganTypeScript for all the...
Advent of Code ... in Types Only!
Просмотров 2,9 тыс.7 месяцев назад
Check out the code for this video here: tsplay.dev/N5QZVN *My Links* shaky.sh shaky.sh/tools andrew8088 mastodon.social/@andrew8088 #programming #coding #typescript #javascript #adventofcode #frontenddeveloper #backenddeveloper #softwareengineer #softwareengineering #softwaredevelopment
old TypeScript syntax I just discovered
Просмотров 3,8 тыс.10 месяцев назад
This is an exceedingly nerdy dive into the topics of covariance and contravariance in TypeScript. Prefer to read about this topic? Read the accompanying blog post here: shaky.sh/ts-covariance-contravariance/ Check out the code for this video here: tsplay.dev/mqypYm *My Links* shaky.sh shaky.sh/tools andrew8088 mastodon.social/@andrew8088 #programming #coding #typescript #javascript ...
Syndication made simple! #ownyourdata
Просмотров 1,9 тыс.11 месяцев назад
X no longer marks the spot where I wanna be sharing thoughts ... github.com/andrew8088/pidge micro.blog 11ty.dev/ indieweb.org/POSSE *My Links* shaky.sh shaky.sh/notes andrew8088 mastodon.social/@andrew8088 micro.blog/shaky #posse #ownyourdata #vercel #mastodon #microblogging #twitter
Is functional programming worth it?
Просмотров 4,1 тыс.11 месяцев назад
I've been playing with functional programming and algebraic data types recently, and I'm not sure the trade offs are worth it. Code from the video: github.com/andrew8088/habits.sh *My Links* shaky.sh shaky.sh/tools andrew8088
5 Tips for Classier TypeScript
Просмотров 4,8 тыс.11 месяцев назад
If you're using classes a lot in your TypeScript code, here are several useful tips for you! 5 Tips 00:05 - Classes are both types and values 02:18 - Truly Private Fields 03:41 - Parameter Properties 04:36 - Assertions & Guards 07:07 - Handling the type of `this` *My Links* shaky.sh shaky.sh/tools andrew8088 mastodon.social/@andrew8088 #typescript #coding #programming #javascript #e...
TypeScript 5.2 new features review!
Просмотров 8 тыс.Год назад
The TypeScript 5.2 beta was announced a few days ago, and there are some pretty banger new features coming up! Let's take a quick look at what we'll getting soon. *My Links* shaky.sh shaky.sh/tools andrew8088 mastodon.social/@andrew8088 #typescript #coding #programming #javascript
How to use sed to automate big code changes (GUIs hate this trick)
Просмотров 6 тыс.Год назад
How to use sed to automate big code changes (GUIs hate this trick)
this regex identifies prime numbers (reaction)
Просмотров 113 тыс.Год назад
this regex identifies prime numbers (reaction)
How do closures work? (JavaScript Fundamentals, 2023)
Просмотров 6 тыс.Год назад
How do closures work? (JavaScript Fundamentals, 2023)
how to get better at typescript (feat. kysely)
Просмотров 7 тыс.Год назад
how to get better at typescript (feat. kysely)
Command Lines Scripts in JavaScript (or any language!)
Просмотров 4,6 тыс.Год назад
Command Lines Scripts in JavaScript (or any language!)
The Power of TypeScript Generics
Просмотров 6 тыс.Год назад
The Power of TypeScript Generics
Are your TypeScript Unions broken? | Advanced TypeScript
Просмотров 7 тыс.Год назад
Are your TypeScript Unions broken? | Advanced TypeScript
React Query tips from the maintainer @tkDodo
Просмотров 21 тыс.Год назад
React Query tips from the maintainer @tkDodo
I kinda hate hooks ... a refactoring story
Просмотров 7 тыс.Год назад
I kinda hate hooks ... a refactoring story
JavaScript’s Deferred Promise Pattern
Просмотров 12 тыс.Год назад
JavaScript’s Deferred Promise Pattern
TypeScript Transformations with Pick and Omit
Просмотров 3,4 тыс.Год назад
TypeScript Transformations with Pick and Omit
The TypeScript feature I never use
Просмотров 11 тыс.Год назад
The TypeScript feature I never use
5 JavaScript Tips You Probably Don't Know
Просмотров 9 тыс.Год назад
5 JavaScript Tips You Probably Don't Know
How does ts-reset work?
Просмотров 6 тыс.Год назад
How does ts-reset work?
A better way to use 3rd-part types (Extract & Exclude)
Просмотров 4,2 тыс.Год назад
A better way to use 3rd-part types (Extract & Exclude)
How does ZOD work? Build it yourself!
Просмотров 12 тыс.Год назад
How does ZOD work? Build it yourself!

Комментарии

  • @TheShoAn
    @TheShoAn 8 часов назад

    [1, 2, 3, 4, 5] that's how i create an array

  • @laesseV
    @laesseV 19 часов назад

    We lately had exactly that bug where a coworker removed that "unnecessary" spread of Array(x)

  • @maso4u
    @maso4u День назад

    do you mind going over you ide, how you have it set up and how do you navigate around it with mostly jyour keyboard

  • @mk72v2oq
    @mk72v2oq День назад

    The real benefit of 'Array.from({ length: 5 }, (i) => { ... })' is that it doesn't allocate an intermediate array to map on. This could lead to significant performance improvement, especially on large arrays.

  • @MichiganTypeScript
    @MichiganTypeScript День назад

    always a good day when a notification for a new Andrew Burgess comes in!

  • @tarikeljabiri
    @tarikeljabiri День назад

    Hi man, this video made my tests green, thank you a lot 🙏

  • @krzysztofprzybylski2750
    @krzysztofprzybylski2750 День назад

    As much as I like js I feel like sparse arrays were created as a gotcha for developers young and old.

  • @AfonsoSantos-dx2hq
    @AfonsoSantos-dx2hq День назад

    Really enjoyed watching, would love more javascript basics videos like this one

  • @alexjohnson-bassworship3150
    @alexjohnson-bassworship3150 День назад

    Loved it, as usual!!!

  • @Nikgek
    @Nikgek День назад

    really interesting info, thanks

  • @richardbray
    @richardbray 2 дня назад

    Nice video, Where does ContextMethodDecoratorContext come from?

  • @0xtz_
    @0xtz_ 3 дня назад

    that's cool man 😎 each video => more knowledge for me 😂 thanks 🙏 amazing videos

  • @edgeeffect
    @edgeeffect 3 дня назад

    As long as it's intermediate or advanced level... I like a nice mixture of TypeScript and JavaScript.

  • @edgeeffect
    @edgeeffect 3 дня назад

    Good pacing... neither so fast that I missed a load of things nor so slow I got bored with all the extra details... Absolutely spot on! :)

  • @ash1kh
    @ash1kh 4 дня назад

    I think I will wait for typescript 9.0 when I don't have to type anything and it will be type safe. 😂😂😂😂 Telepathy compiler.

  • @ShawnPMurphy8
    @ShawnPMurphy8 5 дней назад

    Not sure if you are aware but some random RUclips channel seems to be using this video of yours: ruclips.net/video/J02rycAW5fM/видео.htmlsi=TbD2YnY6vf5dySnV

  • @AlexanderYaremchuk
    @AlexanderYaremchuk 6 дней назад

    !== null doesn't work to infer out undefined it only infers out nulls. last version works fine: typeof n === 'number'

    • @andrew-burgess
      @andrew-burgess 6 дней назад

      Ah yep, I was specifically doing !=, which coerces undefined to null. But yeah, the typeof way is best for this one.

  • @user-vd3ph6zh8q
    @user-vd3ph6zh8q 8 дней назад

    Anybody ever told you, you look like Toby Maguire? Lol

  • @Mothuzad
    @Mothuzad 9 дней назад

    NonFalsy seemed to have overlooked document.all. However, if this oversight matters to anyone, mercy be upon their souls.

  • @xelspeth
    @xelspeth 9 дней назад

    I'm pretty sure obj[key] is not inferred because obj[key] can change after a call even of obj and key stay the same

    • @andrew-burgess
      @andrew-burgess 9 дней назад

      Hmm, how do you mean? Wouldn't that mean this new behavior can introduce bugs?

    • @xelspeth
      @xelspeth 9 дней назад

      @@andrew-burgess in a simple if(typeof === string) it can't (unless you use getters in which case normal variables could change, too [look up a == 1 && a == 2 && a == 3]) But f.ex. if(obj[key] === 'hello') {await someLongCall(); console.log(obj[key])} could change in another function but I believe they caught that with the current implementation

  • @pupfriend
    @pupfriend 9 дней назад

    The type narrowing is amazing. But why do you think .filter(Boolean) doesn't also narrow? I've been using that all over my code thanks to Matt Pocock's ts-reset package, and it is a blessing. I was hoping 5.5 would let me ditch ts-reset, but I guess not.

  • @user-mx1ek4sl2m
    @user-mx1ek4sl2m 11 дней назад

    At 4:30, that got fixed at version 5.5.

  • @keyserj
    @keyserj 12 дней назад

    Ooh this is quite nice to have indeed! I recently subscribed to the TypeScript devblogs, but I found myself not spending the time to read those... so I particularly appreciate the summary of the features you find useful. Cheers

  • @flygonfiasco9751
    @flygonfiasco9751 12 дней назад

    Fick Giving that predicate narrowing is such a blessing, that’s bitten me like 3 different times over the past year.

  • @astrotoolau
    @astrotoolau 12 дней назад

    This is amazing! I wasn't expecting all that from v5.5, just one would have sufficed lol Thanks for keeping us updated :)

  • @yourjhay
    @yourjhay 14 дней назад

    Why it says config repo invalid repo when I try to clone it.. using the same setup as you.

  • @88goeth
    @88goeth 17 дней назад

    I totally agree with you, hooks are the worst thing that ever happened. I hate them... so now i hate React

  • @chookingvid
    @chookingvid 18 дней назад

    I prefer nested ternaries. They are not hard to read if formatted properly with line breaks and indents.

  • @brentmarquez9057
    @brentmarquez9057 22 дня назад

    Can anyone point me to resources for adding node.js to a legacy javascript web app? (just script tags in html files).

  • @pgtechmedia5624
    @pgtechmedia5624 23 дня назад

    Really helpful. Thanks

  • @chrishanthacosta4093
    @chrishanthacosta4093 23 дня назад

    Really smart teacher.

  • @fluxsiarski
    @fluxsiarski 29 дней назад

    Amazing!

  • @jaideepsingh8449
    @jaideepsingh8449 Месяц назад

    Hey buddy, i saw your advent of typescript series, i am beginer, I got stuck in one of the similar code which uses advent of typescript logics, could you please help me out?

  • @jlecordier
    @jlecordier Месяц назад

    Unfortunately useless in legacy code with database queries and lots of side effects..

  • @user-pr7zo5lr7u
    @user-pr7zo5lr7u Месяц назад

    To speed up, maybe: ps -e -o comm -t | grep nano | grep -v grep

  • @kcin4206
    @kcin4206 Месяц назад

    Not many in-depth videos on this topic. Good video 👍

  • @wtl912
    @wtl912 Месяц назад

    Excellent video, thanks a lot! Btw, it'd be great if you have the chance to add timestamps to your videos, it really helps a lot!

  • @returncode0000
    @returncode0000 Месяц назад

    Could you please do more rust videos? Your rust videos are fantastic, especially the traits explanation 🔥

  • @ericb8494
    @ericb8494 Месяц назад

    type TODO = any;

  • @pratik245
    @pratik245 Месяц назад

    In other languages like java, supertypes can always have reference to subtype instance. So string having referemce to a role is not surprising but has a different name calles contravariance in typescript.

  • @tech_channel110
    @tech_channel110 Месяц назад

    well defined

  • @zxyi9090
    @zxyi9090 Месяц назад

    The way I think about FP is like a point free data pipeline. Also would recommend ramda or lodash

  • @vendiddy
    @vendiddy Месяц назад

    This was very illuminating! In a similar vein I'd love to understand how something like ts-pattern works under the hood. Like how to implement a mini pattern-matching library.

  • @DV-ml4fm
    @DV-ml4fm Месяц назад

    I used crontab to run a command and output the result it to a file. Then I create a custom command to read the file with detect_files option.

  • @AibySara
    @AibySara Месяц назад

    Great explanation. Big Thanks!

  • @Samonitari
    @Samonitari Месяц назад

    At this point, you could just throw out zsh, one less sh*t to maintain, I definitely did left zsh and never looked back! I always hated the bazillion frikin' knobs to tweak, and the whole oh-my-zsh project. I mean why do I have to have a plugin manager for my shell? Luckily starship is quite cross-shell! On a similar note, I left nvim for helix. Unfortunately I cannot install it to all of our servers. But the environment on the workstations I use have become leaner, and less of a beautiful-only-for-me-and-brittle-AF snowflakes...

  • @mrlectus
    @mrlectus Месяц назад

    does this mean i have to move every config from .config to dotfile and then symlink them back to .config?

  • @duke605
    @duke605 Месяц назад

    Just no

  • @SamsungA04e-dp7kj
    @SamsungA04e-dp7kj Месяц назад

    1.Global Positioning System 2.Undefined 3.Kalkulator 4.Rudi Harmanto

  • @superhero-studios
    @superhero-studios 2 месяца назад

    For clearing terminals, I always use CMD+K. Though `c` is one less keystroke.