Train To Code
Train To Code
  • 101
  • 309 004
How to code defensively to reduce bugs
Defensive programming is a term given to a bunch of techniques designed to both reduce the number of bugs in your code, and to provide more useful debugging information when you do have them. This video shows you some defensive programming tips in TypeScript
🔗 Try These Project Tutorials
traintocode.com/projects
📖 Get my book - Developing on AWS with C#
www.oreilly.com/library/view/developing-on-aws/9781492095866/
💻 Github
github.com/traintocode
🗣️ Social Media
- www.linkedin.com/in/jamesjcharlesworth/
- jcharlesworthuk
#learncoding #webdevelopment
zhlédnutí: 69

Video

Advanced TypeScript | Union and Intersection Types
zhlédnutí 82Před dnem
One of the most important advanced features of TypeScript that can drastically reduce the complexity of your code. 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/9781492095866/ 💻 Github github.com/traintocode 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk #lea...
How TypeScript infers types automatically
zhlédnutí 81Před 14 dny
An explanation of how TypeScript can figure out the types in your code without you having to explicitly define them in variables and functions. 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/9781492095866/ 💻 Github github.com/traintocode 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - twi...
Stop Trying to Learn By Memorizing Syntax
zhlédnutí 520Před měsícem
Job interviews are stressful, I'm here to convince you that you don't need to add to the stress by trying to memorize a bunch of things beforehand. It's not an exam. 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/9781492095866/ 💻 Github github.com/traintocode 🗣️ Social Media - www.linkedin.com/in/jam...
Why Learning About Business Can Help Your Career
zhlédnutí 150Před měsícem
This could be holding back your career as an engineer, so often the operations of the business you work for or in are ignored by software engineers. 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/9781492095866/ 💻 Github github.com/traintocode 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ ...
Every single feature of TypeScript in 11 minutes
zhlédnutí 742Před 2 měsíci
Get ready to become a TypeScript expert in 11 minutes* In this video we'll cover every feature of TypeScript that you need to know about, from the basics to the advanced. If you already know another programming language then this crash course will give you all you need to know to transfer your skills. *Like a 10 minute video, but 1 louder. #typescript #learncoding Get my book - Developing on A...
How to animate an SVG with CSS
zhlédnutí 140Před 2 měsíci
There are plenty of animation libraries for the web, but it's still worth knowing the simplest and most lean way to create animated images - SVG and CSS transitions! This tutorial will introduce you to this technique by creating a simple animation. 🔗 CSS Has Selector on CanIUse.com caniuse.com/css-has 🔗 Try These Project Tutorials traintocode.com/projects 🗣️ Social Media - www.linkedin.com/in/j...
This is your perfect second programming language
zhlédnutí 457Před 2 měsíci
One of the most popular and widely used languages in the world today tends to be a "second" language for most of its developers. And that's not a bad thing! So if you only know one language, this is the one to learn next #typescript #learncoding 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/97814920...
Work out your coding vocabulary
zhlédnutí 1,8KPřed 3 měsíci
Which of these functions do you find more readable? Join me on a little experiment into your coding vocabulary 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/9781492095866/ 💻 Github github.com/traintocode 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk #learnco...
LeetCode Solution | Array Of Intervals
zhlédnutí 47Před 3 měsíci
This problem involves merging overlapping intervals within a list to minimize the number of discrete intervals. Perfect for practising for a technical interview. This solution is in TypeScript but the method applies to many programming languages. 🔗 Try These Project Tutorials traintocode.com/projects 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk
LeetCode Solution | Depth First Search
zhlédnutí 113Před 3 měsíci
LeetCode Solutions in TypeScript - Depth First Search (DFS) is a search algorithm used to explore all the nodes in a graph or tree data structure. It's like exploring a maze, DFS dives as deep as possible into the graph before backtracking to explore other paths. Perfect for practising for a technical interview. This solution is in TypeScript but the method applies to many programming languages...
Ultimate Guide to Choosing a Tech Stack
zhlédnutí 598Před 4 měsíci
Comprehensive guide to selecting the most suitable technology stack for your project, while there is no universal "best" tech stack, there exists an optimal choice tailored to your specific requirements. #webdevelopment #indiehackers #sideproject 🔗 Try These Project Tutorials traintocode.com/projects 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk 00:00 I...
Understanding JavaScript Closures
zhlédnutí 151Před 4 měsíci
A brief guide to creating closures in JavasScript 🔗 Try These Project Tutorials traintocode.com/projects 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk #learncoding #javascript #functionalprogramming
It's time to start using :has() in your CSS
zhlédnutí 666Před 5 měsíci
You can start using :has() in CSS now as it is supported in all the major browsers. This video shows you how to use the selector in your CSS. 🔗 CSS Has Selector on CanIUse.com caniuse.com/css-has 🔗 Try These Project Tutorials traintocode.com/projects 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk #learncoding #css #frontend
Hello World in 15 Programming Languages
zhlédnutí 110Před 5 měsíci
Introducing you to 15 of the most popular programming languages in the world, by writing "hello world" to the console. 🔗 Try These Project Tutorials traintocode.com/projects Get my book - Developing on AWS with C# www.oreilly.com/library/view/developing-on-aws/9781492095866/ 💻 Github github.com/traintocode 🗣️ Social Media - www.linkedin.com/in/jamesjcharlesworth/ - jcharlesworthuk ...
The most important thing for building skill as a software engineer
zhlédnutí 2,4KPřed 5 měsíci
The most important thing for building skill as a software engineer
Full Tutorial | Build a ChatBot in React with OpenAI
zhlédnutí 968Před 5 měsíci
Full Tutorial | Build a ChatBot in React with OpenAI
The Ultimate Amplify vs Firebase Comparison for 2024
zhlédnutí 3,2KPřed 6 měsíci
The Ultimate Amplify vs Firebase Comparison for 2024
FrontEnd is hard
zhlédnutí 139Před 6 měsíci
FrontEnd is hard
Why are people scared of generics?
zhlédnutí 814Před 7 měsíci
Why are people scared of generics?
5 things you can do with GitHub CoPilot Chat
zhlédnutí 652Před 7 měsíci
5 things you can do with GitHub CoPilot Chat
WebDevNews | Everything Everywhere All At Once for NPM
zhlédnutí 111Před 7 měsíci
WebDevNews | Everything Everywhere All At Once for NPM
Async Await in Typescript
zhlédnutí 1,2KPřed 8 měsíci
Async Await in Typescript
Speed Coding: Todo List App in Typescript & React
zhlédnutí 460Před 8 měsíci
Speed Coding: Todo List App in Typescript & React
TypeScript vs Javascript - Which is better for learning to code?
zhlédnutí 1,6KPřed 8 měsíci
TypeScript vs Javascript - Which is better for learning to code?
Serverless AI with AWS Lambda & OpenAI API
zhlédnutí 1,6KPřed 8 měsíci
Serverless AI with AWS Lambda & OpenAI API
5 Hidden Features of C#
zhlédnutí 1,1KPřed 9 měsíci
5 Hidden Features of C#
CSS Variables Explained
zhlédnutí 154Před 10 měsíci
CSS Variables Explained
Null vs Undefined - which one should you use in JS?
zhlédnutí 217Před 10 měsíci
Null vs Undefined - which one should you use in JS?
Refactoring By Example: Split Out Cross Cutting Concerns
zhlédnutí 467Před 10 měsíci
Refactoring By Example: Split Out Cross Cutting Concerns

Komentáře

  • @ClassicFlush-c8u
    @ClassicFlush-c8u Před dnem

    Taylor Ruth Wilson Timothy Jones Margaret

  • @srikkanth-tech
    @srikkanth-tech Před 4 dny

    I didn't know there is a deconstruct method.. Learnt it here. Thanks.

  • @noWokeGaming
    @noWokeGaming Před 5 dny

    Very cool video with great input, thank you for sharing.

  • @JayTailor45
    @JayTailor45 Před 8 dny

    I am a javascript/typescript developer exploring other tech and I learned a lot today from a single video. Thanks!

  • @dddrrr7139
    @dddrrr7139 Před 9 dny

    did you use c# console app for this?

  • @JD-rz1ns
    @JD-rz1ns Před 9 dny

    Brilliant video, just starting out with JS and will defo check TS. Subscribed. Thanks😊

  • @LearnCodeFromForeigner

    ❤❤❤ but i have a little bit confuse about popup context and content script in the section use vite. Why change theme in onClick impact to the whole page

  • @learning_trespasser
    @learning_trespasser Před 15 dny

    nice explanation

  • @martinwidmer5961
    @martinwidmer5961 Před 17 dny

    Some error in the narration: of course you can have public methods on private classes. That makes perfect sense. You really have to correct this error as it is quite important.

  • @md-code9019
    @md-code9019 Před 17 dny

    LGBT Students Question Purpose of Life czcams.com/video/E-KW9tUETN4/video.html “Jesus Didn’t Preach Christianity, but Islam!” czcams.com/video/qvBNViZG0Mk/video.html Islam: The True Religion of God? - Abdur-Raheem Green czcams.com/video/GOw1X4GIAYM/video.html

  • @alizaidbaber1905
    @alizaidbaber1905 Před 18 dny

    i am facing an error of undefine the chrome keyword even after install the package in my react app.

  • @Cha_HCM-je9qe
    @Cha_HCM-je9qe Před 19 dny

    Will you please cover the latest language keywords and features of C# version 12? Thanks. You are really rock!

  • @Fastwins_mod_owner
    @Fastwins_mod_owner Před 19 dny

    Sir you have telegram channel?

  • @firstlast5350
    @firstlast5350 Před 21 dnem

    You lost me as soon as you mentioned class. This is so far removed from vb6, pascal or even traditional C. Is it so wrong that some people just want to write simple programs without all this high brow theory?

  • @tarquin161234
    @tarquin161234 Před 21 dnem

    I'm a big proponent of many of these concepts: the static keyword, minimising state, immutability, pure functions, however I can't see the advantage of treating methods as variables, at least in my usage of C#, which is APIs. In the end I think a good old long procedural method is simplest and best for me. But in front-end, this could be of interest, though I feel like it would take something very special to top declarative reactive programming with rxjs.

  • @user-le6dt4wi9z
    @user-le6dt4wi9z Před 23 dny

    Man you are awesome within 10 minutes you have covered lot of things. Thanks dude.

  • @uraymeiviar
    @uraymeiviar Před 24 dny

    there is stupid feature called garbage collector

  • @NicholasSTParker
    @NicholasSTParker Před 24 dny

    Very nice. Especially nice if you already program in another language and want to see how C# does things differently.

  • @tfdesign4072
    @tfdesign4072 Před 26 dny

    perfect tutorial! can you make a chrome extension that handles auth as well? i.e. to check what functionality a user can have access to?

  • @lastspoil5547
    @lastspoil5547 Před 27 dny

    Is it cool to use coding notes?

  • @Steven-M-89
    @Steven-M-89 Před 27 dny

    The best example I've seen yet. Glad I discovered you tonight, especially seen it is C#. Have always found this difficult.

  • @sametyildizeli
    @sametyildizeli Před 28 dny

    Thank you so much, you're awesome!

  • @raymondduncan5390
    @raymondduncan5390 Před měsícem

    Spent literally an hour trying to find out why I couldn't get the alert to work from the Vite + React example. Turns out chrome.tabs.query({active: true}) may not work if you've got multiple windows open like I typically do. You should use something like chrome.tabs.query({active: true, lastFocusedWindow: true}) if you want to avoid errors and have the alert to pop up in the window and tab you're currently viewing!

  • @davidmason3973
    @davidmason3973 Před měsícem

    I originally downvoted becaus eif the Satanic 666 reference, but then upvoted when you explained methods cant be more permissive than the class they are declared in.

  • @longqi-b8s
    @longqi-b8s Před měsícem

    Thank you for your excellent work. My VSCode doesn't suggest any correct methods when typing "chrome." Please help.

  • @adamkis7137
    @adamkis7137 Před měsícem

    What about events, actions, tuple...? :)

  • @funbucket09
    @funbucket09 Před měsícem

    Watched the vid twice. so has been 20 mins. I should be a double C# expert by now but I still can't even write a hello world! I THINK I JUST GOT SCAMMED!

  • @JavedKhan-ny3pm
    @JavedKhan-ny3pm Před měsícem

    I really struggled with Maui setting it up for windows application so that I can reproduce my program written in MS win-forms. Do you hv an application in MAUI-windows app.?

  • @chrisder1814
    @chrisder1814 Před měsícem

    hello I would like to develop a chrome extension but I don't know if my idea is good and could you tell me what you think about it

  • @kooday
    @kooday Před měsícem

    Can you please explain how to use the service worker with vite build

  • @mshbtw
    @mshbtw Před měsícem

    Amazing explanation! Looking forward to the new videos ❤

  • @EasternBoss
    @EasternBoss Před měsícem

    Why C# is more complicated that C++ ?

  • @jackpitts5561
    @jackpitts5561 Před měsícem

    What about Apple’s CloudKit? If your app is an iPhone / iPad app?

  • @un1kum42
    @un1kum42 Před měsícem

    I have met a lot, really a lot, of people who would say the opposite of what you did in regard to implicit typing.^^

  • @lukaschumchal7797
    @lukaschumchal7797 Před měsícem

    I wanted to get oop principles ubder my skin to be capable truelly code anything. So I try to find language to made me truelly use it ( my first language, python, not really useful for that in my opinion). I choose java and C#. Because of this video i am going to focus only on C#. Thanks you.😊

  • @KeshavD-ys7el
    @KeshavD-ys7el Před měsícem

    How to work with service_worker using vite

  • @mightyboateng
    @mightyboateng Před měsícem

    That was valuable. Thanks for creating such a tutorial.

  • @alexdin1565
    @alexdin1565 Před měsícem

    Nice video man! Short and to the point.

  • @MarcPhilipInan
    @MarcPhilipInan Před měsícem

    You guys are cool!!!!

  • @amerllica
    @amerllica Před měsícem

    Yeah, I think SO is dying, but let's get back and think, where did ChatGPT learn knowledge of coding?

  • @IanoNjuguna
    @IanoNjuguna Před měsícem

    I appreciate this.

    • @lukz4672
      @lukz4672 Před měsícem

      Same dude. Ive learned so much on this channel after 3 videos already.

  • @YuNherd
    @YuNherd Před měsícem

    this is informative, planning to port my project from winforms to maui

  • @fluffydoggo
    @fluffydoggo Před měsícem

    Bro missed private protected and protected internal accessabilities Edit of important things you missed: - custom indexers - attributes - source generators - operator overloading - reflection - delegates - unsafe with pointers - expression trees - enums - Garbage Collector

  • @YuNherd
    @YuNherd Před měsícem

    ive been using c# for a long time and searched for features i havent learned, 5mins in here and id better get these noted. excellent job.

  • @tubemyren3038
    @tubemyren3038 Před měsícem

    I cant find the source code for the React/Typescript example.... you are missing some codelines in the video, but cant find the source code!

  • @CristianKirk
    @CristianKirk Před měsícem

    Typescript adds unnecesary processes and complexities. For people new to web developing, try to find and think for yourself why would you need everything to have a type before blindly accepting what a youtuber tells you.

    • @traintocode
      @traintocode Před měsícem

      I'd hate for anyone to blindly accept what I tell them :) everyone's definition of a necessary process of complexity will be different so thanks for your comment.

  • @tore28
    @tore28 Před měsícem

    5:13 - Here you use the builder pattern on record to provide a domain model for changing the UserRecord ?

  • @jijuthomas9052
    @jijuthomas9052 Před měsícem

    your advice are soo true and valuable and one cant progress without this skill

  • @MeenaSivan
    @MeenaSivan Před měsícem

    Great comparison. I am going with Firebase for quick and dirty PoC and sticking to Amplify for futuristic production grade solutions - ! BTW Why do Google keep killing their projects - lack of focus in strengthening the ecosystem and marketing - this sucks - the future is scary if I were to choose Firebase - already the Git number says it all - the direction of Firebase!

  • @FrancisAlexanderWood0
    @FrancisAlexanderWood0 Před měsícem

    extremely useful