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 and the same methods, but using
Object.getPrototypeOf would return
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:
I’ve shared this as a Google Doc quite a bit and decided to post it on Medium. There’s a theoretical outline of an internal tool you could build at the bottom of the post. I used a tool similar to that at a certain tech giant (google), so let me know if you have any questions about managing user feedback or coordinating it with user research open feedback, etc. for more of a 360 data view.
With SAAS product feedback, generally, we can categorize most feedbacks into bugs, usability issues, feature requests, knowledge captures, education requests, or marketing material requests. …
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, we’ll consider the index of each character. We’ll represent this with the index at
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 and a lot of refactoring as we go as well to be more “OOP”. …
I had trouble thinking of concepts that have an is-a or has-a relationship with easy to model state and behavior, so here are a few examples you can use to practice with what to practice in…