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

Q&A

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.


Description

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: https://beta.observablehq.com/@deeplizard/using-code-to-interrogate-textual-data String methods: PowerShell - https://msdn.microsoft.com/en-us/library/system.string_methods(v=vs.110).aspx JavaScript - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Methods 💥🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎💥 👀 OUR VLOG: 🔗 https://www.youtube.com/channel/UC9cBIteC3u7Ee6bzeOcl_Og 👉 Check out the blog post and other resources for this video: 🔗 https://deeplizard.com/learn/video/_Ro11qwyDJ4 💻 DOWNLOAD ACCESS TO CODE FILES 🤖 Available for members of the deeplizard hivemind: 🔗 https://www.patreon.com/posts/27743395 🧠 Support collective intelligence, join the deeplizard hivemind: 🔗 https://deeplizard.com/hivemind 🤜 Support collective intelligence, create a quiz question for this video: 🔗 https://deeplizard.com/create-quiz-question 🚀 Boost collective intelligence by sharing this video on social media! ❤️🦎 Special thanks to the following polymaths of the deeplizard hivemind: yasser Prash 👀 Follow deeplizard: Our vlog: https://www.youtube.com/channel/UC9cBIteC3u7Ee6bzeOcl_Og Twitter: https://twitter.com/deeplizard Facebook: https://www.facebook.com/Deeplizard-145413762948316 Patreon: https://www.patreon.com/deeplizard YouTube: https://www.youtube.com/deeplizard Instagram: https://www.instagram.com/deeplizard/ 🎓 Other deeplizard courses: Reinforcement Learning - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xoWNVdDudn51XM8lOuZ_Njv NN Programming - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xrfNyHZsM6ufI0iZENK9xgG DL Fundamentals - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xq7LwI2y8_QtvuXZedL6tQU Keras - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xrwRnXk_yCPtnqqo4_u2YGL TensorFlow.js - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xr83l8w44N_g3pygvajLrJ- Data Science - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xrth-Cqs_R9- Trading - https://deeplizard.com/learn/playlist/PLZbbT5o_s2xr17PqeytCKiCD-TJj89rII 🛒 Check out products deeplizard recommends on Amazon: 🔗 https://www.amazon.com/shop/deeplizard 📕 Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard’s link: 🔗 https://amzn.to/2yoqWRn 🎵 deeplizard uses music by Kevin MacLeod 🔗 https://www.youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ 🔗 http://incompetech.com/ ❤️ Please use the knowledge gained from deeplizard content for good, not evil.