- 32
- 13 166
Niklas Borson
United States
เข้าร่วมเมื่อ 13 มี.ค. 2021
A series of informal videos about computer programming for beginners.
Coding with indices and ranges
Zero-based vs. one-based indices.
Different ways of representing ranges.
Off-by-one errors.
Code example (binary search).
Different ways of representing ranges.
Off-by-one errors.
Code example (binary search).
มุมมอง: 18
วีดีโอ
Pointers and their Discontents - Part 2
มุมมอง 10128 วันที่ผ่านมา
It can be useful for programmers in any language to understand the basics of how pointers are used in C what they represent, how they're used, their pitfalls, and how other languages achieve the same things in other ways. For Part 1, see th-cam.com/video/sqDNWIPA_Ec/w-d-xo.html. Part 2 covers object lifetime, including dangling pointers, manual heap allocation in C, and the approaches used by o...
Pointers and their Discontents - Part 1
มุมมอง 150หลายเดือนก่อน
It can be useful for programmers in any language to understand the basics of how pointers are used in C what they represent, how they're used, their pitfalls, and how other languages achieve the same things in other ways.
How to Think like a Programmer
มุมมอง 5942 หลายเดือนก่อน
This video walks through the process of writing a program, starting with an idea and ending with a PowerShell script. Recorded in one take, this video is meant to help new programmers understand the creative process of programming. Not so much the mechanics of coding, as the thinking process used to turn an idea into code.
Scotch Broom Song
มุมมอง 926 หลายเดือนก่อน
I thought it would be fun to share this humorous song I wrote a few years ago. It's a love song about a plant. Scotch broom is commonly classified as a noxious invasive species in western North America, but it's also rather pretty when it blooms in the Spring. Words and music are copyrighted by me, Niklas Borson.
PowerShell "Adventure-Helpers" module
มุมมอง 626 หลายเดือนก่อน
This video shows an example how you can create a PowerShell module to simplify or automate routine tasks. The example is Adventure-Helpers.psm1, which is part of the open-source AdventureScript project on github. The module source code is in the root directory of the AdventureScript repo, which you can find here: github.com/NiklasBorson/AdventureScript For more about AdventureScript, see my "In...
Introducing AdventureScript
มุมมอง 6596 หลายเดือนก่อน
This video introduces the open-source AdventureScript project, which is a scripting language and interpreter designed for creating text adventure games. You can find the project here: github.com/NiklasBorson/AdventureScript If you're not familiar with git and github, you could watch my earlier videos: - GIT 101: th-cam.com/video/79DLMg0S6ZI/w-d-xo.html - GIT Part 2: th-cam.com/video/9UnLf0lB6fU...
Git Part 2
มุมมอง 237 หลายเดือนก่อน
This is a follow-up to my earlier Git 101 video, which you can find here: th-cam.com/video/79DLMg0S6ZI/w-d-xo.html In this video, I demonstrate how to use Git to work on an open-source project hosted by github.com. Specifically, I cover cloning the repo, making a change in your local repo, and submitting a pull request. As an example, I used my own open-source project, AdventureScript, which im...
Git 101
มุมมอง 747 หลายเดือนก่อน
Git is the most popular version control (or source control) system for programmers. Version control is essential for managing the files in a software project, _especially_ when multiple programmers are working together on the same code. This introductory video describes using git with a local repository, both from the command line and in Visual Studio. In a future video, I will talk about worki...
C# Generics 101
มุมมอง 1118 หลายเดือนก่อน
In this video we demonstrate using C# generics, including: - What are generics? - Using the generic List class - Writing a generic method - Writing our own generic list class This video also discusses how to analyze performance, including "Big O" notation. We create an inefficient list class, analyze why it is inefficient, and then implement a faster version.
Inheritance in C#
มุมมอง 878 หลายเดือนก่อน
This video is a deep dive into inheritance in C# and .NET. Inheritance is a key concept in object-oriented programming. This video explains class-based inheritance, what it means, and how it is used with several C# examples. This video also refers back to an example in my earlier "PowerShell Classes" video, which you can find here: th-cam.com/video/9acqi67b9MU/w-d-xo.html
Coding a Database Front End in C#
มุมมอง 2838 หลายเดือนก่อน
This builds on my previous video "Database Access in PowerShell": th-cam.com/video/f45zlm4dq_o/w-d-xo.html In this video, we create a graphical user interface (GUI) that displays data from a Microsoft Access Database. The database and the SQL queries are exactly the same as in the previous video. The application in this video is written in C# and uses the WinUI 3 framework, which is part of the...
Database Access in PowerShell
มุมมอง 2858 หลายเดือนก่อน
This video describes how to query a database from PowerShell. Using a sample Access database, we query for customer orders and demonstrate saving query results as XML or HTML files.
Reading and Writing XML using PowerShell
มุมมอง 2159 หลายเดือนก่อน
This is the second of two videos about PowerShell and XML. The first video (th-cam.com/video/Fcrke4WR380/w-d-xo.html) introduced XML and demonstrated using the Select-Xml cmdlet. This video describes how to read and write XML using the .NET XmlReader and XmlWriter classes.
PowerShell and Select-Xml
มุมมอง 4679 หลายเดือนก่อน
This is the first of two videos about working with XML in PowerShell. XML files represent hierarchically structured data in a text-based format. This video explains how to use the Select-Xml command and XPath to extract XML data. The second video (th-cam.com/video/1jpKB90V9Jw/w-d-xo.html) explains how to read and write XML files using the XmlReader and XmlWriter classes.
Learn to Program in PowerShell Part 9: Modules and Classes
มุมมอง 2963 ปีที่แล้ว
Learn to Program in PowerShell Part 9: Modules and Classes
Learn to Code in PowerShell Part 8: Floating Point Numbers
มุมมอง 823 ปีที่แล้ว
Learn to Code in PowerShell Part 8: Floating Point Numbers
Learn to Code in PowerShell Part 7: Binary Numbers
มุมมอง 1723 ปีที่แล้ว
Learn to Code in PowerShell Part 7: Binary Numbers
Learn to Program in PowerShell Part 2: Variables and Expressions
มุมมอง 4843 ปีที่แล้ว
Learn to Program in PowerShell Part 2: Variables and Expressions
Learn to Program in PowerShell Part 5: Simplify
มุมมอง 1633 ปีที่แล้ว
Learn to Program in PowerShell Part 5: Simplify
Learn to Program in PowerShell Part 1: Introduction
มุมมอง 5333 ปีที่แล้ว
Learn to Program in PowerShell Part 1: Introduction
Learn to Program in PowerShell Part 6: Arrays and Loops
มุมมอง 5913 ปีที่แล้ว
Learn to Program in PowerShell Part 6: Arrays and Loops
Thanks, you really helped me out here!
Pls upload more frequently..😅
Haha, I'll take that as a compliment! Thanks! Sorry I haven't uploaded in a while, though.
Thanks for the video 👍 it helped
It's a pretty good video but you need to work on elocution. A lot of what you say sounds mumbled, unless it's your microphone.
mate, your videos are great, best on YT to learn PS.
Thank you!
You know, TH-cam recommendation worked really well right now. I was recently considering developing something similar to what you did, but wow, this is extremely well made. Thank you for sharing! And looking at the documentation, seems to even open the possibility of porting to other languages, which is great!
Thank you! Yes, I did anticipate the possibility of porting to other languages. P.S., if you're interested in porting to another language, let me know. Unfortunately, I don't have the language skills myself, but I would be happy to work with you.
Cool idea and project! The repo looks great too
Thanks!
Please comment if you successfully play through the "Oxbow Castle" game -- or if you try it and get stuck. I'm curious if the clues work for people.
Thanks for the explanation, and great to see the Big o notation. Looking forward to upcoming videos!
Thanks for your comment! I have some new material in the works!
I have followed the entire PowerShell series. I like how it pedagogically follows the object-oriented approach in programming. The channel could be said to be underrated ;)
Thank you so much! I'm glad you found it helpful 😃
Thank you, that was awesome😊
Thank you! I'm glad you liked it!
Fantastic, thank you very much!
Glad you liked it!
Fantastic video! I really like the progressive complexity of the examples. I was doing well until inheritance, and then the practical applications were lost to me 😂 i still have about 9 mins left to finish watching, so maybe it'll make more sense then!
Thanks! I can't remember how much I covered inheritance in this video, but I probably only scratched the surface. Maybe I should do a video just about inheritance.
Hi Niklas, thanx for all your videos! Very much appreciated, even though your channel serves a "niche market"... probably PS fans (like me). Since you're talking about XML and XPath recently, just a tip: take a look at a tool called: Xidel. It's amazing for reading/parsing XML/HTML/Json, handling API's and webscraping. It has many options and DSL's/methods like XQuery/XPath/CSS/HTML-templates/RegEx/Jsonic. Unfortunately it's written in FreePascal, not C#. However, calling Xidel's binary can of course be easily wrapped in PS functions (module). Very powerful addition to PS!
Thanks for the tip!
Can you parse the data and write it to a database (sql, access)?
You could. It sounds like a good topic for another video, although I don't have a lot of experience working with SQL.
Great video. Would be cool to see F# and powershell side by side too 😊
Love your detailed explanations. Your videos are a goldmine of info. Thank you!!
This explanation was fantastic🔥. Thank you. I’ll be watching your other powershell videos to grasp working with it.
Perfect video for the niche I'm in! Pwsh to c# 😊
I’m going this path too. Can you tell me more?
One of the best PS tutorials I've seen. Thanks!
Get out of my mind. Was studying C# last night and wanted to understand this better. Thank you.
Very helpful, thanks! Would you follow up with when a static class might be useful with an example(s)?
Thanks for the suggestion! That probably would have been good to include in this video. I will consider doing a follow-up. Meanwhile, an example of a static class is System.Math. Because it's static, you can't actually create an object of type Math. The class just serves as a way of grouping related static methods (like Math.Sqrt, and Math.Pow) and constants (like Math.PI).
Great video, thank you
Niklas - problemet $csv | ForEach-Object { $pop[$_.Name] = $_.CENSUS2010POP} produces an error in PowerShell 7.3.4:- InvalidOperation: Line | 2 | $pop[$_.Name] = $_.CENSUS2010POP | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot index into a null array. It works correctly in PowerShell 5.1 ...... Thanks for this excellent PowerShell series
That's funny, I tested this using PowerShell 7.something. I hope the video is still useful to you even with that error!
Eight months late, but I finally realized what caused this. You need to initialize $pop to an empty hashtable before executing the above statement. Otherwise the expression $pop[$_.Name] will fail because $pop is null.
Follow this series! PowerShell is new to me ... have watched many and tried to absorb ( it has to be said ... not very successfully) but your tutorials are some of the best! Both in style and content. I have re-watched each of them and working along with them ... excellent! Highly recommended! - 76 year old of dubious intellectual stature.
Many thanks sir!
pipe to Format-List, what a gem!!
Very impressed with the approach and presentation - working through little projects like this is for me (76 year old with 'self recognised brain-fade') feels like progress. There is, I believe, one other on TH-cam worthy of mention (for the exceptional visual presentation) ABMedia. - Thank you Niklas!!!
It's funny how this youtuber has only 30 subs and explain better than majority! While some pathetics others puts advertising + merchandise + etc. Teaches you nothing!! Keep this channel growing! Never give up!
Thank you for the video
Thank you, Niklas, for great videos on PowerShell programming.
Thanks for sharing this. A couple of recommendations. Concentrate on the topic of the video so here modules and classes. Using a prime algorithm or something like that just bloats things and distracts from the topic. This can find its place in another video. Two simple functions are sufficient for the topic of modules and get to the heart of the topic. There is still a lot to explain about modules and that is not covered here or cannot be dealt with due to lack of time. Presentation: Almost everyone does not see the video in full screen mode on a PC. Most people's attention is focused on the center of the screen. So when you display something in a terminal, the line of your input should be roughly in the center of the video and have a large font that can also be read on a tablet or smartphone. A terminal window in the middle would be better. Many lines do not have to be visible because they are not needed for the learning effect. And you don't need long lines for your examples.
Thanks for your thoughtful feedback. You're right that this video is not very focused on just the specific topic of modules and classes, nor does it cover those topics comprehensively. Just to explain where I'm coming from, the purpose of this series is to teach first-time programmers how to code. The videos are meant to be watched in order, and each video further develops concepts from before while also introducing some new topic. I'll think about what you said, though. Maybe I should do some shorter, more focused videos. Thanks also for the tips on small screens.
I have started to learn myself. Thanks for the series. Please do use case on Infra side if possible.
Thanks for the comment! I am certainly open to suggestions, but didn't quite understand what you're asking for. Can you clarify what you mean by Infra side?
@@niklasborson5790 Hi, I was asking if you could explain with examples, especially from the infrastructure automation use case.
I see. I had to look up what "infrastructure automation" is. It seems to be about automating the management of hardware, software, networking components, etc. in the cloud or an on-premises network. This is absolutely something PowerShell is good at, but it's outside of my skillset so I wouldn't feel competent to do a video on it. Sorry. :-(
@@niklasborson5790 These programming skills will be very useful for creating scripts for infrastructure management, even if you don't cover the specific modules most useful for that (i.e. Active Directory).
@@niklasborson5790 Thanks for the reply. I am trying to learn PowerShell for automating network and mundane task in network security . Anyway as Nathan has highlighted this should be transferable skill.