You videos are so exciting Mr. Corey! Never ever I’ve heard about this zero or more (..) and discard (_) operators. Those are really handy. Thank you so much!
This is really nice! The hard part is remembering that you have all these tools at your disposal. It would be amazing if C# had a feature where it gives you hints to refactor your code using new C# features. There was an extension for VS called "Sharpen" by ironcev which did exactly that, suggested improvements by using new C# features. Unfortunately is it not being updated anymore.
First thing I thought 2 minutes in: "OMG this is so good!" and then it just getting better! EDIT: Although, what might be EVEN mo' better would be a language integration of regex's
Oh my heck this is so awesome. Literally, was just writing a validator earlier this week and moving to this is going to help so much. thank you thank you thank you for letting me know about this. Now I just need to find time to re-factor my code!
@@IAmTimCorey one thing that I found kind of wonky is that if you do an else if you have to declare different names otherwise it doesn't work. this works: if(list is[var name, var id]) {//do work;} else if (list is [var _name, var _id, var domain]) {//do other work} else{//do some other thing} this will not: if(list is[var name, var id]) {//do work;} else if (list is [var name, var id, var domain]) {//do other work} else{//do some other thing}
Hi Tim, great video! In the code you have a "separator:" in front of the split character parameter. Is this a VS Extension or a VS option configuration? If it is an extension, what extension is it?
That's a newer feature of Visual Studio. It is in the Tools->Options->Text Editor->C#->Advanced under the "Inline Hints" section. You need to check the "Display inline parameter name hints" to turn it on.
Since you covered Bootstrap (which is all I’ve ever used) could you also cover Material design. Even just an intro and brief differences between both would be great. One difference I noticed is Bootstrap has very limited colour palette as compared to Material
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/ As for the concept that Bootstrap has a limited color palette, I don't think that's really true. That might have been true at one point, but not anymore. For example, for every color (primary, success, warning, danger, dark, etc.) there is a range of 9 levels of that color. Plus, the colors provided by Bootstrap are just there as starter values. They fully intend for you to use your brand colors. I show off how to change their colors over to be your brand colors in my course. It is quite easy and it still generates the levels of color for my brand colors. Also, you can easily add more colors to the list if you want. So out of the box, they provide 99 color variations based upon 11 color options. They then use a subset for their theme, but all of these colors are available for you to use. That's a lot.
Hello Tim, I love your videos, is there a way to get only the nth element, for example : I want the "Hello " from "1,Tim,Corey,test1,tes2,test3,Hello,World" without having to write [ .. , var BeforeLast, var Last]
I'm not sure what you are trying to do that your solution doesn't address. You can use the underscore to not include the Last variable, but otherwise, that is the solution that would work best for your given scenario.
That's a newer feature of Visual Studio. It is in the Tools->Options->Text Editor->C#->Advanced under the "Inline Hints" section. You need to check the "Display inline parameter name hints" to turn it on.
You videos are so exciting Mr. Corey! Never ever I’ve heard about this zero or more (..) and discard (_) operators. Those are really handy. Thank you so much!
I am glad it was helpful.
This is great development in C#. No more doing convoluted loops just to get something out of an array.
I'm glad you like it.
Thanks Tim, your this short video series also really helping quick on important topics..🙏
You are welcome.
This is really nice! The hard part is remembering that you have all these tools at your disposal. It would be amazing if C# had a feature where it gives you hints to refactor your code using new C# features. There was an extension for VS called "Sharpen" by ironcev which did exactly that, suggested improvements by using new C# features. Unfortunately is it not being updated anymore.
The quick actions and refactoring often does this now.
Great video, concise and straight to the point!
Thank you!
First thing I thought 2 minutes in: "OMG this is so good!" and then it just getting better!
EDIT: Although, what might be EVEN mo' better would be a language integration of regex's
I'm glad you are going to get a lot of use out of it.
Oh my heck this is so awesome. Literally, was just writing a validator earlier this week and moving to this is going to help so much. thank you thank you thank you for letting me know about this.
Now I just need to find time to re-factor my code!
I am glad it will be so helpful.
@@IAmTimCorey one thing that I found kind of wonky is that if you do an else if you have to declare different names otherwise it doesn't work.
this works:
if(list is[var name, var id])
{//do work;}
else if (list is [var _name, var _id, var domain])
{//do other work}
else{//do some other thing}
this will not:
if(list is[var name, var id])
{//do work;}
else if (list is [var name, var id, var domain])
{//do other work}
else{//do some other thing}
Re-factoring in the style is pretty straightforward otherwise.
Thanks Tim for the great video! This feature is really handy! I am dealing with various text files which are measurement files from devices.
You are welcome.
Hi Tim, great video!
In the code you have a "separator:" in front of the split character parameter.
Is this a VS Extension or a VS option configuration?
If it is an extension, what extension is it?
That's a newer feature of Visual Studio. It is in the Tools->Options->Text Editor->C#->Advanced under the "Inline Hints" section. You need to check the "Display inline parameter name hints" to turn it on.
Thanks Tim, i can use this right now in my actual project
Excellent!
quick short and sharp mate. thank you.
You are welcome.
.. just blew my mind! 6:35
Great!
Thanks for the great explanation!
You are welcome.
This is really cool! Thank you for the concise lesson!
You are welcome.
Since you covered Bootstrap (which is all I’ve ever used) could you also cover Material design. Even just an intro and brief differences between both would be great.
One difference I noticed is Bootstrap has very limited colour palette as compared to Material
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
As for the concept that Bootstrap has a limited color palette, I don't think that's really true. That might have been true at one point, but not anymore. For example, for every color (primary, success, warning, danger, dark, etc.) there is a range of 9 levels of that color. Plus, the colors provided by Bootstrap are just there as starter values. They fully intend for you to use your brand colors. I show off how to change their colors over to be your brand colors in my course. It is quite easy and it still generates the levels of color for my brand colors. Also, you can easily add more colors to the list if you want.
So out of the box, they provide 99 color variations based upon 11 color options. They then use a subset for their theme, but all of these colors are available for you to use. That's a lot.
Really like these videos, thank you!
Glad you like them!
Hmmm This has the potential of transforming a difficult task into a simple one. Tks Tim
You are welcome.
Very informative and clear. I would have expected the validation part would take regular expressions.
Thanks!
Thanks for the video, it looks very useful.
You are welcome.
Hello Tim, I love your videos, is there a way to get only the nth element, for example :
I want the "Hello " from "1,Tim,Corey,test1,tes2,test3,Hello,World"
without having to write [ .. , var BeforeLast, var Last]
I'm not sure what you are trying to do that your solution doesn't address. You can use the underscore to not include the Last variable, but otherwise, that is the solution that would work best for your given scenario.
Awesome feature!!
I'm glad you like it.
Interesting, this could have saved me a ton of work back in the day.
On an unrelated note, where can I report broken links on the iamtimcorey website?
I have a GitHub repo for site issues on any of my sites. You can submit an issue here: github.com/IAmTimCorey/SiteIssues
I appreciate it.
My first tought was it's something that Perl has done many years ago. But still a good feature!
It is.
Please, how do you make function parameter name visible in grey background box?
That's a newer feature of Visual Studio. It is in the Tools->Options->Text Editor->C#->Advanced under the "Inline Hints" section. You need to check the "Display inline parameter name hints" to turn it on.
@@IAmTimCorey Thanks a lot, I was trying to figure it out for a long time.
Great Video, Thank You
You are welcome.
Oh nice! Thanks!
You are welcome.
Thanks, Tim. This is very helpful. Please continue to post these kinds of videos.
You are welcome.
Thank you very much
You are welcome.
great stuff!
Thanks.
Very useful info...and easy to understand..thanks for sharing..💞
You are welcome.
Awesome, thanks for info
You are welcome.
Does it offer something different from what we get from Regular Expression?
They are two different things. This allows us to quickly access values out of a list. It isn't about filtering the list.
Does all of the above work in case an array/list items are all objects?
Yes.
@@IAmTimCorey Great! Thanx
It's very much like the SQL like operator.
really usefully for me, thanks
You are welcome.
Thanks!
You are welcome.
That's pretty cool stuff!
Thanks!
Thanks
You are welcome.
Thank you :)
You are welcome.
Nice - thank you very much. If you would like to use a nice Nuget package for this task and write less code yourself, CSVHelper is pretty good too.
You are welcome.
So I guess this wont be affordable using lists !! ?
I am not sure what you mean. Do you mean that Lists won't be performant? Because that's not true. This is very performant.
looks like rest pattern ecmascript
Great video, thanks!
You're welcome!