Data Science - Learn to code for beginners

with deeplizard.

Using code to interrogate textual data | I’m a STRING. Ask me anything! | Coding tutorial

April 30, 2018 by


In PowerShell, the "endswith" function is specified using all lowercase letters while in Javascript, the "W" is capitalized for the "endsWith" function. What's up with this difference?

The answer here illustrates an important feature of programming languages in general. PowerShell is case insensitive which means either way will work, i.e. "w" or "W". The difference that we see is a result of how the code was typed out. Since PowerShell is case insensitive the code still works. Even though PowerShell is case insensitive, we usually still capitalize each word in a function to make the code more readable. JavaScript on the other hand is case sensitive. If the code is not typed out exactly, the code will not work, and we will see an error telling us that JavaScript doesn't know what we want to do. Being able to spot details like this is a critical skill in programming! Sometimes very subtle things like this can be the cause of issues or bugs within code.


What’s going on everyone. In this video 🎥, we will use JavaScript and PowerShell to see how we can build and interrogate strings using code 💻. Textual data inside computer programs is represented using sequences of characters that we call strings. So far in this series, we seen how strings can be used to do things like, define a log message or define an id for an element on a web page. Now, we will see how we can interact with strings using code. With code, there are two powerful things we can do. 1) We can use code to build strings. 2) We can use code to interrogate strings. To do this, we will work in PowerShell and JavaScript side by side. Let's get to it. Notebook for this one: String methods: PowerShell - JavaScript - 💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥 👉 Check out the blog post and other resources for this video: 🔗 💻 DOWNLOAD ACCESS TO CODE FILES 🤖 Available for members of the deeplizard hivemind: 🔗 🧠 Support collective intelligence, join the deeplizard hivemind: 🔗 🤜 Support collective intelligence, create a quiz question for this video: 🔗 🚀 Boost collective intelligence by sharing this video on social media! ❤️🦎 Special thanks to the following polymaths of the deeplizard hivemind: Peder B. Helland 👀 Follow deeplizard: Twitter: Facebook: Patreon: YouTube: Instagram: 🎓 Other deeplizard courses: Reinforcement Learning - NN Programming - DL Fundamentals - Keras - TensorFlow.js - Data Science - Trading - 🛒 Check out products deeplizard recommends on Amazon: 🔗 📕 Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard’s link: 🔗 🎵 deeplizard uses music by Kevin MacLeod 🔗 🔗 ❤️ Please use the knowledge gained from deeplizard content for good, not evil.