Read the guide top to bottom as some of my examples build on each other assuming you’ve mastered the methods and regular expression syntax previously mentioned.
We can clean up white space in a string with a simple regular expression. The example below utilizes
\s, which is regex for white spaces and
+, which is regex for a match of 1 or more of the previous group. …
Object factories are functions that return objects that can be used to automate the process of creating objects. All objects will have the same “type” in the sense that they’ll have the same properties for state…
This Notion doc explains the entire process + has some starter code. https://www.notion.so/Duda-Content-Snare-Tutorial-8ddb90c636c94f3e8608270529e88769
The lower layers of the Internet Protocol Suite and OSI network communication models are inherently unreliable. For example, the Ethernet and Internet Protocols use checksum to test for data corruption, but they discard the frame/packet if there is an issue and don’t have their own system for replacing lost data. For this whole internet thing to work though, we need reliability. Network communication reliability is handled by Transport Layer protocols.
The Transport Layer services can include:
Are you recording customer feedback data across various data sources (customer meetings, social media, support, reviews) but unsure how to bring it all together? This article shares my experience with using a taxonomy to categorize and unify all customer feedback as a “360” source of truth, so the data can be used for business decisions. A theoretical UI for a simple internal tool you could build is available at the bottom of the post. …
Given a string
S and a string
T, count the number of distinct subsequences of
S which equals
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (ie, “ACE” is a subsequence of “ABCDE” while “AEC” is not).
s = ‘ccat’ and
We’ll compare characters across both strings to find out if string
s contains a subsequence of string
In our example, there are 2 possible substrings:
To diagram the solution…
Tl;dr jump to the resource list below if you just want to check out some well made courses to see if coding is for you!
Disclaimer: Don’t read this guide as an OOP design guide, but instead as a way to practice writing OOP code and reviewing OOP concepts in context.
OOP deals with objects using every day language, so we’ll start by writing a description of the game and what we are trying to build. From the description, we’ll take the important nouns and verbs, which we’ll use to build a skeleton of the game.
The code will be presented in 7 “lessons” and you’ll see notes on the code as we go…
I had trouble thinking of concepts that have an is-a or has-a relationship with easy…
Journalist and endlessly curious person. One half of @hatchbeat.