- 38
- 17 270
PhanxDEV
Austria
Приєднався 18 вер 2023
Hey there, I am Phanx and I am a software developer from Austria, Europe (not Australia 😉). I have expertise in .NET, ASP.NET Core, C#, JavaScript, TypeScript, React, React Native, KnockoutJS and a little bit WinForms/WPF. My goal with this channel is to share my experience in this fields with you. Feel free to get in contact with me. See you 😁
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
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!
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
You pick EF Core versus raw SQL... That's not comparable.
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.
Thanks for this informative comparison. What about the difference in bench mark between .net and python (gjango/fastapi)
Thank you for your comment :) I already thought about comparing asp.net core with python, maybe I will make a video about this
i want video for blazor webassembly google authentication with jwt token
Thank u
who use knockout in 2024?
Only legacy code I hope 😅
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.
Thank you for your kind words and your feedback 🙏 I will try to take in account in future videos
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! 😂
Thank you for your opinion 😂
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.
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.
Can you do a video to add the location icon pls
Thank you for your comment. I will consider creating such a video :)
What if you want to dynamically create UI with JSON, is there something else you would use?
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.
@@PhanxDEV95 I mean the ability to generate UIs (including all the super detailed properties) using strings without predefining components.
you're jenius, man
Here you can find the GitHub repo with the example code: github.com/PhanxDEV/ol-react-example
Thank you so much, there are so few OpenLayers map tutorials for react native in UA-cam!
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.
Good point, thank you for your comment:)
Hello sir. Huh do you have any tutorial on how to start using OpenLayers on react js? I love your video !!
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
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
Thank you for your nice words, I really appreciate it. I am glad the video was helpful for you :)
Thank you very much, the video is very helpful. Can you please link to github for the code?
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 :)
I published the example code to GitHub, see pinned comment :)
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 ?
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 :)
@@PhanxDEV95 Thanks a lot mate.
you can also use bitwise opps: a = 10 b = 20 a = a^b b = a^b a = a^b
Backbone js is the best!
Nice video. We do not have any alternative of SearchToken in System.Text.Json to query.
Thank you for your comment:) Yes, unfortunately some features of Newtonsoft.Json don‘t have an equivalent in System.Text.Json
nice, thanks
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?
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
@@PhanxDEV95 Thank you, let me try this and get I will get back to you once done!!!
I appreciate this. Saved me some time doing it myself
You can find the example project from the video here: github.com/PhanxDEV/react-contextmenu-example
Hi, can you share this code. Thank you very much
Done. See my pinned comment :)
@@PhanxDEV95 thank you very much.
Briliants sir, it helped a lot!
Thank you 😊
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. 🖖
Thank you for your nice comment 😊
I need to build this 😮. You are some type of genius wizard! Thank you for the video!
Thank you for your nice comment :)
muito obrigada!!!😍😍
You‘re welcome 😅
<3 <3
dont stop to create videos, each one is very helpful, thank you!
Thank you :)
you saved my life, man
Muito bom.