PhanxDEV
PhanxDEV
  • 38
  • 17 270
C# List Vs HashSet: A Performance Comparison
Choosing the right collection type in C# is much more important than you might think. In this video I show you the difference between List and HashSet. When to use what, what about performance. Watch this video to find out!
If you like this video, please click the like button and subscribe to my channel so you won't miss future videos.
#csharp #dotnet #collection #coding #dev #developer #programming
Переглядів: 4

Відео

Better than Jupyter Notebooks? Polyglot Notebooks for VS Code
Переглядів 74День тому
If you like Jupyter Notebooks, you will love Polyglot Notebooks, an extension for VS Code that allows cell-based coding for C#, JavaScript, PowerShell and more. In this video, I give you a brief introduction to this extension. Links: [1] Project Jupyter: jupyter.org/ [2] Google Colab: colab.google/ [3] VS Code Jupyter Notebooks: code.visualstudio.com/docs/datascience/jupyter-notebooks [4] Polyg...
I Compared ASP.NET Core and Node.js for Performance
Переглядів 2 тис.28 днів тому
In this video I do some benchmarks to find out, which one is faster: ASP.NET Core or Node.js. If you like my videos, do not forget to hit the like button and subscribe to my channel so you won't miss future videos. Links: [1] Web frameworks and technologies - Stack Overflow: survey.stackoverflow.co/2024/technology#1-web-frameworks-and-technologies [2] Apache Bench: httpd.apache.org/docs/2.4/pro...
Moq: The story of GitHub’s fallen angel
Переглядів 86Місяць тому
Was this GitHub's biggest controversy? In this video, I will tell you the story of Moq, a .NET project used by thousands of developers, but caused controversy with a questionable change. Links: [1] A Deep Dive Into SponsorLink: codingbolt.net/2023/08/08/a-deep-dive-into-sponsorlink-implications-for-open-source-and-privacy/ [2] Privacy issues with SponsorLink: github.com/devlooped/moq/issues/137...
Understand The Strategy Pattern (with C# examples)
Переглядів 71Місяць тому
In this video I explain the strategy pattern. I will tell you what the strategy pattern is and how you can use it. As an example I will show you a simple C# project. If you want to see more content of me, feel free to subscribe to my channel. #coding #strategypattern #pattern #designpatterns #csharp #dotnet
JavaScript: Check if Object is Empty (5 Ways)
Переглядів 582 місяці тому
🔍 Exploring JavaScript: Learn how to check if a JavaScript object is empty! 🧐 Discover multiple techniques and tips in this quick guide. Links: [1] Object.getOwnPropertyNames() vs Object.keys(): phuoc.ng/collection/this-vs-that/object-get-own-property-names-vs-object-keys/ #javascript #typescript #CodingTips #WebDevelopment #Programming #FrontEndDevelopment #JavaScriptTricks #CodeSnippets #Tech...
ASP.NET Core Minimal API: Best Practices for Endpoint Management
Переглядів 762 місяці тому
In this video I show you how you can manage your endpoint methods in ASP.NET Core Minimal API, so can be sure to have a clean and well structured code base. #aspnetcorewebapi #aspnetcore #csharp #dotnet #http #microsoft
How to parse command line arguments with Oakton (.NET)
Переглядів 403 місяці тому
If you are looking for a good way to parse and handle command line arguments in a C# console application, you found the right video. I will show you how you can easily to that with Oakton, an open-source library for .NET. Links: [1] Oakton on GitHub: github.com/JasperFx/oakton [2] Oakton - Getting Started: jasperfx.github.io/oakton/guide/getting_started.html If you enjoyed this video, don't for...
JavaScript Promises Explained: Promise.all, Promise.allSettled, Promise.any, and Promise.race
Переглядів 573 місяці тому
🚀 Master JavaScript Promises in Minutes! 🚀 Confused about Promise.all, allSettled, any, and race? 🤯 In this video, I'll break down these powerful JavaScript functions, showing you how they work, their key differences, and when to use each one. Whether you're looking to handle multiple asynchronous operations or improve your code efficiency, this guide has you covered. Don't miss out on masterin...
How To Call Web APIs In C# With Refit
Переглядів 2393 місяці тому
In this video I show you how you can easily call HTTP endpoints in your C# code, using the Refit library. I will show you some examples how to use it, it is super easy and convinient. Boy, I wish I knew this library earlier 😅 If you like this video, I would appreciate if you hit the like button and subscribe to my channel if you don't want to miss future videos. Links: [1] Refit on GitHub: gith...
Use SignalR And OpenCV To Stream WebCam Images To Client
Переглядів 1754 місяці тому
In this video, I demonstrate how to stream live webcam images from a server to a client using SignalR and OpenCV. Whether you're building a real-time video application or just want to learn more about integrating these powerful tools, this step-by-step tutorial will guide you through the process. If you enjoy this video, don't forget to click the like button and subscribe to my channel :) #Sign...
How To Implement Infinite Scrolling In React
Переглядів 754 місяці тому
Learn how to effortlessly implement infinite scrolling in React! In this tutorial, I'll guide you through the step-by-step process to create a seamless infinite scroll feature, perfect for enhancing user experience in your web applications. Believe me, it is super simple :) Don't forget to subscribe to my channel so you won't miss future videos. If you like this video, please click the like but...
This Mistake RUINS Your React App
Переглядів 245 місяців тому
In this video I will show you a small mistake in React, that might lead to huge problems in your whole application. But don't worry, it is easy to fix ;) Don't forget to like, comment, and subscribe for more React tips and tricks! #react #reactjs #javascript #typescript #coding #programming #webdevelopment #ui
How to get started with OpenLayers in React JS
Переглядів 9945 місяців тому
Watch this video, if you want to know how to integrate OpenLayers in a React web application. I promise, it's very easy and super simple to follow ;) Don't forget to subscribe to my channel so you won't miss future videos. #react #reactjs #javascript #typescript #webdevelopment #development #coding #dev #tutorial #gis #webmapping #webgis
Two SUPER simple tricks for debugging Knockout JS apps
Переглядів 1265 місяців тому
Learn two simple yet effective debugging hacks for KnockoutJS in this quick tutorial. Whether you're a beginner or an experienced developer, these tips will help you troubleshoot your code more efficiently. Watch now and streamline your KnockoutJS development process! #KnockoutJS #DebuggingTips #WebDevelopment #JavaScript #typescript #CodingHacks #DevTips #Programming #TechTutorials #LearnToCod...
params keyword gets a HUGE upgrade in C# 13
Переглядів 506 місяців тому
params keyword gets a HUGE upgrade in C# 13
Implement a fancy OpenLayers hover effect for GeoJSON features
Переглядів 2086 місяців тому
Implement a fancy OpenLayers hover effect for GeoJSON features
How to call a Web API from a Blazor component #blazor #http #webapi
Переглядів 3,3 тис.6 місяців тому
How to call a Web API from a Blazor component #blazor #http #webapi
How to easily create a brand new React app with VITE
Переглядів 2367 місяців тому
How to easily create a brand new React app with VITE
How .NET's FrozenDictionary improves performance
Переглядів 2177 місяців тому
How .NET's FrozenDictionary improves performance
C#'s StringBuilder will BOOST your Apps performance in Minutes
Переглядів 387 місяців тому
C#'s StringBuilder will BOOST your Apps performance in Minutes
How to implement debouncing in React (forget lodash) #react #debouncing
Переглядів 348 місяців тому
How to implement debouncing in React (forget lodash) #react #debouncing
C# Dictionary: Why you MUST use TryGetValue()
Переглядів 2628 місяців тому
C# Dictionary: Why you MUST use TryGetValue()
Why I would not use Knockout.js anymore #javascript #knockoutjs #mvvm
Переглядів 1 тис.9 місяців тому
Why I would not use Knockout.js anymore #javascript #knockoutjs #mvvm
How to create a context menu in React #react
Переглядів 5119 місяців тому
How to create a context menu in React #react
Avoid these common mistakes with C#'s LINQ
Переглядів 1689 місяців тому
Avoid these common mistakes with C#'s LINQ
Newtonsoft.Json vs System.Text.Json: Which one's faster? #dotnet #json
Переглядів 60210 місяців тому
Newtonsoft.Json vs System.Text.Json: Which one's faster? #dotnet #json
Using OpenLayers in Blazor: Will that work?
Переглядів 65310 місяців тому
Using OpenLayers in Blazor: Will that work?
.NET + WebAssembly: Read Excel files in the browser
Переглядів 15911 місяців тому
.NET WebAssembly: Read Excel files in the browser
Conditional rendering in React: Don't make it so complicated!
Переглядів 3711 місяців тому
Conditional rendering in React: Don't make it so complicated!

КОМЕНТАРІ

  • @judewestburner
    @judewestburner 4 дні тому

    I've got a huge knockoutjs application with hundreds of pages etc which I actively develop, alongside a lot of react. It has 10,000's of users. I do write however in a modern style using ES6, typescript, classes etc so it feels a lot like something more modern. The thing I like about it is a bit like jQuery, it's stable, can be dropped into any website without uprooting the whole thing, but yeah I'm not starting anything new in it

  • @justinassakalavicius4465
    @justinassakalavicius4465 6 днів тому

    You pick EF Core versus raw SQL... That's not comparable.

    • @justinassakalavicius4465
      @justinassakalavicius4465 6 днів тому

      For reading queries, if you use other ORM like Dapper, you will gain at least 2x performance difference versus EF Core. If you want to push the limits, you will go with a full raw SQL query. In my personal opinion. You should not benchmark ORM's with raw SQL queries because of its performance differences. Don't compare beans with apples and vice versa.

  • @wmzayed
    @wmzayed 10 днів тому

    Thanks for this informative comparison. What about the difference in bench mark between .net and python (gjango/fastapi)

    • @PhanxDEV95
      @PhanxDEV95 10 днів тому

      Thank you for your comment :) I already thought about comparing asp.net core with python, maybe I will make a video about this

  • @shabanelmogy7912
    @shabanelmogy7912 17 днів тому

    i want video for blazor webassembly google authentication with jwt token

  • @JustCode512
    @JustCode512 23 дні тому

    Thank u

  • @dhgnofn
    @dhgnofn Місяць тому

    who use knockout in 2024?

    • @PhanxDEV95
      @PhanxDEV95 Місяць тому

      Only legacy code I hope 😅

  • @luisgabrielmenaarnedo7854
    @luisgabrielmenaarnedo7854 Місяць тому

    The way you explain things are very easy to understand. If you could make the video making the app from scratch, it'd be probably much better.

    • @PhanxDEV95
      @PhanxDEV95 Місяць тому

      Thank you for your kind words and your feedback 🙏 I will try to take in account in future videos

  • @StupidInternetPeople1
    @StupidInternetPeople1 2 місяці тому

    Amazing doucheFace thumbnail! Congrats you look like every unimaginative, lazy creator on YT. Clearly intelligent people choose stupid face thumbnails because looking like an idiot is a huge indicator that your content must be amazing! 😂

    • @PhanxDEV95
      @PhanxDEV95 2 місяці тому

      Thank you for your opinion 😂

  • @RobertErath
    @RobertErath 2 місяці тому

    debug mode benchmarks is useless. Also, without even basic complex types such as dictionary which adds overhead... then your testing minimums which isnt a good benchmark.

    • @PhanxDEV95
      @PhanxDEV95 2 місяці тому

      Thank you for sharing your opinion. I partially agree. Release mode benchmarks are better, that's why I did other benchmarks in release mode in later videos. I still don't think they are useless, they still show the performance difference between Newtonsoft.Json and System.Text.Json. Regarding complex types: Of course, to get a full picture of the performance differences, you need to test it with more realistic data, but that depends very much on your specific scenario. This video should give you a basic idea of the performance differences between these two JSON serializers.

  • @official_kurler4520
    @official_kurler4520 3 місяці тому

    Can you do a video to add the location icon pls

    • @PhanxDEV95
      @PhanxDEV95 3 місяці тому

      Thank you for your comment. I will consider creating such a video :)

  • @starbrandX
    @starbrandX 3 місяці тому

    What if you want to dynamically create UI with JSON, is there something else you would use?

    • @PhanxDEV95
      @PhanxDEV95 3 місяці тому

      Well, I guess a "dynamic UI" means that you have certain predefined UI elements that can be defined/configured via JSON? I think modern frameworks like React, Angular, Vue.js ... will be anyhow able to do this.

    • @starbrandX
      @starbrandX 3 місяці тому

      @@PhanxDEV95 I mean the ability to generate UIs (including all the super detailed properties) using strings without predefining components.

  • @jenialherdianto292
    @jenialherdianto292 4 місяці тому

    you're jenius, man

  • @PhanxDEV95
    @PhanxDEV95 4 місяці тому

    Here you can find the GitHub repo with the example code: github.com/PhanxDEV/ol-react-example

  • @marvinfok65
    @marvinfok65 4 місяці тому

    Thank you so much, there are so few OpenLayers map tutorials for react native in UA-cam!

  • @D_Wizz
    @D_Wizz 4 місяці тому

    The primary issue with this approach is that you are still rendering all of these elements, if you have many complex elements this will eventually cause slowdowns. I think you should cover infite scrolling while only rendering what is actually being shown.

    • @PhanxDEV95
      @PhanxDEV95 4 місяці тому

      Good point, thank you for your comment:)

  • @Ashur-lab
    @Ashur-lab 4 місяці тому

    Hello sir. Huh do you have any tutorial on how to start using OpenLayers on react js? I love your video !!

    • @PhanxDEV95
      @PhanxDEV95 4 місяці тому

      Thank you for your comment:) Maybe this video can help you: How to get started with OpenLayers in React JS ua-cam.com/video/okcnlN91dC0/v-deo.html

  • @pasta8026
    @pasta8026 4 місяці тому

    Just leaving a comment to say how thankful I am I've heard of StringBuilders but never actually used it cos I didn't have the motivation to test it out (when I can be doing other things + my current setup works already). My project uses a lot of strings due to dialogue and UX displaying numbers w/ decimals so knowing this really helps

    • @PhanxDEV95
      @PhanxDEV95 4 місяці тому

      Thank you for your nice words, I really appreciate it. I am glad the video was helpful for you :)

  • @יוסימזרחי-פ7י
    @יוסימזרחי-פ7י 4 місяці тому

    Thank you very much, the video is very helpful. Can you please link to github for the code?

    • @PhanxDEV95
      @PhanxDEV95 4 місяці тому

      Thank you for your comment. The code is not yet on GitHub. I'll publish it as soon as I have time and will link the repo here in the comments :)

    • @PhanxDEV95
      @PhanxDEV95 4 місяці тому

      I published the example code to GitHub, see pinned comment :)

  • @AnupamSharma-sh6vo
    @AnupamSharma-sh6vo 5 місяців тому

    Hey, working on a Cab Facility app , can you advice me how to use this map somewhat like Uber, where we have markers , geocoding , reverse geocoding ?

    • @PhanxDEV95
      @PhanxDEV95 5 місяців тому

      Hello. Thank you for your comment :) (And sorry for the late response) Look at this OL example: openlayers.org/en/latest/examples/modify-icon.html. You should be able to do something similar to implement markers. Always keep in mind, that you put the JS code that interacts with OpenLayers has to be put in the Wep application, if you need some kind of interaction with the React Native app itself, you need to define global functions on the window object of the web app. Regarding geocoding: I do not really have experience with that to be honest, but I know that there are pretty cool services for that from Google. I would try to integrate them in the wep app part of the project. I hope this helps a little :)

    • @AnupamSharma-sh6vo
      @AnupamSharma-sh6vo 5 місяців тому

      @@PhanxDEV95 Thanks a lot mate.

  • @charlesreed8420
    @charlesreed8420 6 місяців тому

    you can also use bitwise opps: a = 10 b = 20 a = a^b b = a^b a = a^b

  • @adammobile7149
    @adammobile7149 6 місяців тому

    Backbone js is the best!

  • @myunboxtherapy313
    @myunboxtherapy313 6 місяців тому

    Nice video. We do not have any alternative of SearchToken in System.Text.Json to query.

    • @PhanxDEV95
      @PhanxDEV95 6 місяців тому

      Thank you for your comment:) Yes, unfortunately some features of Newtonsoft.Json don‘t have an equivalent in System.Text.Json

  • @andriikostenko2379
    @andriikostenko2379 7 місяців тому

    nice, thanks

  • @jairosnyirenda
    @jairosnyirenda 7 місяців тому

    This is amazing. Thank you. But now, how can you pass the GEOJson dynamically to the map? Let's say an API call that returns GEOJson data that needs to be rendered on the map?

    • @PhanxDEV95
      @PhanxDEV95 7 місяців тому

      Thank you for your kind words :) To answer your question: In the main.js file of the OpenLayers web app, you could add another function to the window object, just like you saw it in the video with the "zoomToGeoJSON", maybe you want to call it something like "addGeoJsonFeatuers". This function could have a parameter, which is the GeoJSON result from the API call and it will add the features to the GeoJson source (variable name "geoJsonSource" in the example) via "addFeatures". You can then call this function from react native just like the zoomToGeoJSON function in the example. I hope this is a help for you

    • @jairosnyirenda
      @jairosnyirenda 7 місяців тому

      @@PhanxDEV95 Thank you, let me try this and get I will get back to you once done!!!

  • @pasta8026
    @pasta8026 8 місяців тому

    I appreciate this. Saved me some time doing it myself

  • @PhanxDEV95
    @PhanxDEV95 8 місяців тому

    You can find the example project from the video here: github.com/PhanxDEV/react-contextmenu-example

  • @minhnguyenquocnhat3796
    @minhnguyenquocnhat3796 8 місяців тому

    Hi, can you share this code. Thank you very much

  • @jiriklokocka7371
    @jiriklokocka7371 9 місяців тому

    Briliants sir, it helped a lot!

  • @acerreteq703
    @acerreteq703 9 місяців тому

    Hello Phanx, thank you very much for this video! You described everything i needed to know for serializing my neural net data. Du hast ein Abo und ich hoffe es kommen noch viele C# Videos. 🖖

    • @PhanxDEV95
      @PhanxDEV95 9 місяців тому

      Thank you for your nice comment 😊

  • @nickimberlin
    @nickimberlin 9 місяців тому

    I need to build this 😮. You are some type of genius wizard! Thank you for the video!

    • @PhanxDEV95
      @PhanxDEV95 9 місяців тому

      Thank you for your nice comment :)

  • @luzianaassuncao4587
    @luzianaassuncao4587 10 місяців тому

    muito obrigada!!!😍😍

    • @PhanxDEV95
      @PhanxDEV95 10 місяців тому

      You‘re welcome 😅

  • @labibhassan6679
    @labibhassan6679 11 місяців тому

    <3 <3

  • @areshkaa
    @areshkaa Рік тому

    dont stop to create videos, each one is very helpful, thank you!

  • @areshkaa
    @areshkaa Рік тому

    you saved my life, man

  •  Рік тому

    Muito bom.