Skip to main content

Python is Cool. Python is Great.

I've immersed myself in programming with the easiest language to learn, and I'm currently trying to make my own command line utility for training the agents in The Companions Project. Sure, I may know jack squat about how to implement machine learning on the scale I wish to happen, but I do know one vital aspect of it: Python.

Python compared to Java is the equivalent of Chinese checkers to chess. Chinese checkers is incredibly easy to learn but understandably difficult to master. Chess has a higher barrier to entry, but once you're over the wall, one can has some very complex possibilities to learn. While I now see programming in Python is incredibly simpler to begin, my Java-minded self took a quick look at the syntax and only bothered to look at code snippets to scare me into believing that Python is the language of the devil with forced indentation and syntax like this:


class HelloWorld:
    def hello(self, name=None):
        if name is None:
            print('Your name is now Daniel')
            name = self.get_default_name()
        response = 'Hello {name}'.format(name=name)'
        print(response)
    
    def get_default_name(self):
        return 'Daniel Brooks


(Yes, I know this is code is verbose and I could have just wrote name='Daniel Brooks' , but I wrote that for sake of argument.)
I always took a step back from Python every time I saw a code snippet (particularly the ones orders of magnitude larger than this), but now that I recognize Python is the enterprise standard for machine learning, I have the strong desire to learn the language and bend it to my will. My hesitance has turned to curiosity, and I am desperately playing catch-up with all the computer science students that learn this first year. Although, I'm still in high school, so I shouldn't be worrying about that. I'm just excited  I'm already proficient in two widely used programming languages. (Yes, I can say I'm proficient in Python because I think two two months is enough to learn the beautiful language designed by Guido.)

Just so we're clear, I'm not learning C or its derivatives until at least senior year of high school. I'm honestly not sure if I'll actually need to get truly in-depth to C(++), so, I'll save learning bits of C(++) for when I need it, like when writing code for Android's NDK for machine learning on Android devices. Hopefully, a stable TensorFlow Java module is released and I can avoid that, but I'll be slowly inching towards a scalable backend with App Engine on the Google Cloud Platform.

Comments

Popular posts from this blog

What's a TSI Test?

I took the TSI test on Wednesday, but I wasn't the first one in the lab to finish. I blame my proctor's slowness at informing me on some prerequisites that Administration didn't inform me about and my own apathy to a test that didn't seem to put up much of a fight. Three other people beat me to the punch, but I still managed to finish before the end of third period. Since this test doesn't involve a non-disclosure agreement that people really don't care about anyway , I'll talk about the contents of the test. There's nothing too interesting about the test. I likely could have gotten a perfect score if I tried, and that's not just me being cocky. There was no advanced math on the test (nothing higher than algebra), but the reading sections are slightly more comprehensive than the STAAR test's. I literally mean slightly more comprehensive; the STAAR test is more fiction-oriented while the TSI's reading (I think) only consists of nonfiction pas...

Summer Break 2017, Day 1 of 83

What is this? Imagine you could harness the full productive capacity of summer vacation without having to succumb to sleeping in while mindlessly looking over documentation or forgetting to finish a summer assignment until a week before school begins. Imagine how many hours you lose by simply not having a plan? (It's in the range of 581–787.) I'm imagining summer break as school/work on my terms. Of course, that means I'm "off" on holidays, but I'm keeping weekends open for work. Weekends are fair game because I wanted to increase the "number of days in summer break" for marketing, and I realize if I properly schedule events on weekends, I can finally have projects I can start and finish in a week.  Of course, I didn't begin summer break on the first day I wasn't required to attend school because I really wanted to begin on day one.  Beginning on day one makes me punctual (if you don't count the fact a day zero would truly impress ...

Summer Break 2017, Day 6: Internet Presence

Over the course of 15 hours, I've become very conscious of my presence on the internet, and it all began with my father unintentionally showing the reach of various actions I've taken around the web. He originally tried to show me some records of his grandfather, but he eventually showed me Google image search results of himself, and I, of course, ended up appearing in the results since my name is literally a superset of his. I soon realized that comments I've made on YouTube videos have been indexed by Google. Internet privacy is a one-way street: you can park on the side, or you can keep driving down, but going the other direction requires immense amounts of work. The farther up the street you travel, the farther you've lost your privacy. Going up the street will let you access a greater amount of destinations, but the moment you wish to hide yourself from the people you don't want to find you, you can't just switch the gear into reverse and drive up the str...