Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexander Schott
8,318 Pointsextracting the links of a treet
its fine to create that getExternalLinks method as an objective but does it really work in our treet example? Because we split our String with the regular expression but there are also points, colons where we split. We can't use the getWords()-method because we split the links too or we need to optimize our regEx? If we add . : / - to our regular expression than we have another problem because we dont get proper words either. My english is not the best, hopefully you can understand my point.
1 Answer
Craig Dennis
Treehouse TeacherHi Alexander!
The getWords
method we wrote on the BlogPost
is different. It works on spaces instead of special cases. Good point though, we'd have to rethink for our Treets, good thing we have all that logic encapsulated in methods!
Also, awesome English man!
Alexander Schott
8,318 PointsAlexander Schott
8,318 Pointsthank you :), awesome course so far! I know most of the containers from the c++ standard library and it is pretty cool to adapt that knowledge but the concept of interfaces and implementations is kind of new to me. I was used to references in c++. Hopefully i will get my head around that and feeling more comfortable with them soon.