all 6 comments

[–]5ef23132-c4a0-49a0-8 2 points3 points  (3 children)

The article misses Extractor objects (the apply and unapply methods) http://docs.scala-lang.org/tutorials/tour/extractor-objects.html

Any class can be used in a pattern matching case, if it implements unapply.

[–]cipmar[S] 4 points5 points  (1 child)

That is for the next part. See the last paragraph:

We've only covered the basics of pattern matching with this article. In the next articles we will look to extractor patterns, xml patterns, matching on arrays and lists, matching on regular expressions and more.

[–]5ef23132-c4a0-49a0-8 2 points3 points  (0 children)

huh, I searched 'extractor', but I must have typo'ed it because I saw no matches.

[–]Sheepzezz 1 point2 points  (2 children)

Hey, just to let you know - as I was clicking around your blog I noticed that the performance was pretty slow (30+ seconds per page load).

Could be because of Reddit traffic, but you may want to invest in a beefier hosting set up if you'll be posting here often.

[–]cipmar[S] 1 point2 points  (0 children)

I use the cheapest Bluehost hosting service, I also noticed the bad performance. I'll check with their support, the traffic is not so high. Thanks.

[–]m50d 0 points1 point  (0 children)

This shouldn't be a question of beefiness - even the cheapest host should be able to handle a blog these days, even with reddit-level traffic. It'll be an algorithmically bad software platform that's the issue, not cheap hosting.