Fix preformatted section closing in latest post

This commit is contained in:
Nathan Fisher 2024-06-16 18:12:55 -04:00
parent f1352a6e0d
commit c9b9f37556

View file

@ -44,7 +44,7 @@ Coming up on the end of week six of eight in my current term at school and we ha
|_\ /__/ `.____||_____\ /_\ ,'_/ \_| |_\ /_\ /_\
'''
```
The game takes place aboard the Federation starship Reliant during the early part of the movie "The Wrath of Khan", before the arrival of the Enterprise on scene. You are a Junior grade ensign on a spacewalk inspecting hull plating when the ship is compromised. Your best friend, Mike, assigned to hydroponics, is a perpetual slacker who is always dragging you into trouble. You get a message from him on your private encrypted channel about what went down. Where's Mike and how did he survive? Well he and his girlfriend Becky were hiding out in a Jeffries tube near hydroponics smoking a joint during the takeover. So after entering the ship, you have to collect Mike and Becky, sober them up, get weapons and storm the bridge to stop Khan from getting Genesis.
@ -55,4 +55,4 @@ I've always avoided Python so I've never really learned it before now. I've writ
Picking it up was easy enough after having explored a bunch of other languages more in-depth, and on the one hand I can see how quickly a program can be knocked together when you never have to type cast and the syntax seems designed for speed. I see the appeal. I just don't share in it. Python still feels to me like a toy. It's not the syntax, but the fact that it completely glosses over and abstracts away how data is actually stored in memory and accessed by the processor. I get that the whole point of the language is to make programming accessible without having to think like a computer. But I've already trained my brain to think a certain way when coding and I really can't stand giving up the control over how the memory is laid out that has so much bearing on how your code performs.
Even so, I'm glad that I've finally taken some time to learn more about the language. I even found a few syntax features that I really like and kind of wish I could bring over to other languages. I like list comprehensions for instance. I can see that particular syntactic suger being usable in other languages. Basically is just applying a closure to transform a collection. I also like the *args and **kwargs syntax for handling varargs. If you've ever used varargs in C you'll know it's rather clunky, and some languages don't even have this facility or require a macro (Rust). That's not enough to get me on board with using Python anywhere I don't have to of course, but it does illustrate that good ideas can be found everywhere.
Even so, I'm glad that I've finally taken some time to learn more about the language. I even found a few syntax features that I really like and kind of wish I could bring over to other languages. I like list comprehensions for instance. I can see that particular syntactic suger being usable in other languages. Basically is just applying a closure to transform a collection. I also like the *args and **kwargs syntax for handling varargs. If you've ever used varargs in C you'll know it's rather clunky, and some languages don't even have this facility or require a macro (Rust). That's not enough to get me on board with using Python anywhere I don't have to of course, but it does illustrate that good ideas can be found everywhere.