3 ms·
I am learning C# as well after decade of powershell, bash and (a little) python to fill security tool gaps. It feels heavy because I have to actually worry abou
by notesinthefield 2y ago
I am learning C# as well after decade of powershell, bash and (a little) python to fill security tool gaps. It feels heavy because I have to actually worry about error handling, speed and the quirks of compiled languages. Ive also had a great time learning with ChatGPT - i can ask it to explain and compare a C#-ism to a similar powershell or python pattern. Hugely helpful.
- neonsunset 2y ago> It feels heavy because I have to actually worry about error handling, speed and the quirks of compiled languages. This is a bit unfortunate. It doesn't have to be this way - i.e. you don't need to write "extra" syntax many adopt out of blind adherence to old, outdated practices (i.e. 'private' or'internal class' usually makes no sense to use - these are default visibility levels anyway, you're repeating yourself, or reimplementing Java-style heavy visitor patterns). If you see there's a shorter path to get from point A to point B it's almost always a good idea to take it. Even if something seems less than optimal, it will still run an order of magnitude faster than any interpreted language. There are obvious language-agnostic gotchas you may want to avoid but otherwise there is no reason to not use e.g. LINQ in regular application logic.