{"id":2418,"date":"2021-03-24T09:40:28","date_gmt":"2021-03-24T13:40:28","guid":{"rendered":"https:\/\/pvhstiburon.com\/?p=2418"},"modified":"2021-04-27T09:35:01","modified_gmt":"2021-04-27T13:35:01","slug":"why-code","status":"publish","type":"post","link":"https:\/\/pvhstiburon.com\/index.php\/2021\/03\/24\/why-code\/","title":{"rendered":"Why code?"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><em>By Elliot Kantor<\/em><\/h4>\n\n\n\n<p>   Americans spend over six hours every day in front of screens (and surely even more during a pandemic!). It\u2019s more important than ever to learn how to use a computer efficiently and productively, and therefore I believe that everyone should at least become acquainted with what computer programming really is. Programming, coding, or scripting isn\u2019t just for nerds anymore. When used properly, code can literally save hours of your life. And with social media\u2019s influence continuing to spread worldwide, it\u2019s important to understand the ethical concerns behind machine-learning algorithms and data science. I\u2019d like to give a brief overview of modern computing and its effects on you as a user. I\u2019ll start with some explanation as to how coding is so useful, then discuss the next steps if you\u2019re so inclined. Let\u2019s begin!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/pvhstiburon.com\/wp-content\/uploads\/2021\/03\/image.png\" alt=\"\" class=\"wp-image-2420\" width=\"317\" height=\"212\"\/><\/figure><\/div>\n\n\n\n<p>   \u201cA computer is like a Swiss Army knife that you can configure for countless tasks. Many people spend hours clicking and typing to perform repetitive tasks, unaware that the machine they\u2019re using could do their job in seconds if they gave it the right instructions,\u201d writes Al Sweigart, author of <em>Automate the Boring Stuff with Python.<\/em> For the most part, my sentiment on coding reflects that of Sweigart. You don\u2019t have to be a dedicated computer geek to find use out of some programming knowledge. From filling in online forms and manipulating Excel workbooks to automating online games, programming can be for everyone. Doing my schoolwork from home this year, I\u2019ve made a program to automatically sign in to Zoom classes for me. I can control LEDs across the house from my phone and create machine learning models to identify cats and dogs. Even if you don\u2019t appreciate the coding as a hobby, it\u2019s still useful! You can organize your desktop with one line of code or send automatic emails to anyone in the world. Need more examples? Discord bots, web-scraping (pulling information off of webpages automatically), and adventure games all have one thing in common: they can be coded with Python.<\/p>\n\n\n\n<p>   Python is one of the fastest-growing programming languages right now, and for good reason! Its syntax is concise and high-level, meaning it\u2019s easy for humans to understand, yet powerful enough to be used in corporate settings. In fact, nearly all machine-learning, deep learning, and artificial intelligence libraries work well with Python. Google and Facebook both develop open-source software that you can use! The community is helpful, there are thousands of tutorials, and enough packages available to add extensive functionality that you never thought possible. I hope I\u2019ve convinced you that Python is a great all-purpose coding language. But how do you learn? As I mentioned before, Al Sweigart\u2019s <em>Automate the Boring Stuff with Python<\/em> book is one of the best resources. After following the book and attempting its examples, you could progress from no programming experience to saving hours of time formatting spreadsheets or filling in forms. Learning computer science in any form is a great way to think about problems. By breaking down tasks into their components, then optimizing each, you can make difficult tasks more manageable, no matter your discipline. Of course, some people find more joy from the innate logic of a computer than others, but understanding that everything a computer does is programmed logically by a human is important to understand. But what if humans <em>didn\u2019t <\/em>explicitly tell a computer what to do?<\/p>\n\n\n\n<p>   Machine learning is a type of coding where we humans give the computer data instead of instructions, then tell the computer to reverse-engineer instructions for us. For example, giving a computer hundreds of images of dogs and cats, with appropriate filenames, could yield a \u201cmodel\u201d that can predict if almost any image is a dog or a cat! It\u2019s more useful than that, though. It\u2019s easy to think that these \u201calgorithms\u201d we hear about with social media are tweaked by men in lab coats, but really it\u2019s our data that influences its decisions. Humans of course can have some say in process, but for the most part the model is extracted from the petabytes of data that we freely give these companies. After you\u2019ve learned to <em>Automate the Boring Stuff <\/em>and make simple games, machine-learning is a great path to take in the modern world. Probably the best resource for learning deep learning (a type of machine learning) is an introductory course from fast.ai. It\u2019s written for Python, free, and accessible to anyone as long as you have an internet connection (Google Colab provides free GPUs and CPUs).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"240\" height=\"101\" src=\"https:\/\/pvhstiburon.com\/wp-content\/uploads\/2021\/03\/image-1.png\" alt=\"\" class=\"wp-image-2421\"\/><figcaption>Python code<\/figcaption><\/figure><\/div>\n\n\n\n<p>   That\u2019s a lot of information all at once. To summarize, everyone should at least be familiar with what coding is, regardless of if you\u2019d like to pursue it as a hobby or career. By the time you finish reading the introductory Python book, you can code laps around your coworkers in an office setting or (completely theoretically, of course) automate your virtual classes so you don\u2019t even need to be in the same room! If you\u2019re interested, follow through the book studiously and get as much practice as you can. It should take several months to complete with full comprehension. Then try several personal projects, research what you don\u2019t understand, and continue to sharpen your skills! If machine-learning is interesting, visit fast.ai and try their course. With any luck, you\u2019ll be more productive and have fun while doing it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Elliot Kantor Americans spend over six hours every day in front of screens (and surely even more during a pandemic!). It\u2019s more important than ever to learn how to use a computer efficiently and productively, and therefore I believe&#8230;<\/p>\n","protected":false},"author":2,"featured_media":2424,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_meta":"","footnotes":""},"categories":[3],"tags":[],"jetpack_featured_media_url":"https:\/\/pvhstiburon.com\/wp-content\/uploads\/2021\/03\/coding.jpg","_links":{"self":[{"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/posts\/2418"}],"collection":[{"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/comments?post=2418"}],"version-history":[{"count":1,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/posts\/2418\/revisions"}],"predecessor-version":[{"id":2425,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/posts\/2418\/revisions\/2425"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/media\/2424"}],"wp:attachment":[{"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/media?parent=2418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/categories?post=2418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pvhstiburon.com\/index.php\/wp-json\/wp\/v2\/tags?post=2418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}