Learn how to write a simple request parser that passes your initial unit test, using pattern matching on arrays and date/time parsing.
- [Instructor] But of course we haven't got a parse function…so we're going to go ahead and make that.…Parse, let Parse, we might as well call the parameter,…text, so text is a string.…And what's that going to return?…Well it needs to return an instance or query.…So let's just do a failing test…by returning some trivial stuff from there.…So once again, I'm going to copy that code there…and just return empty strings just so we've got a compiling…but failing test.…
DateTime.MinValue is quite a good one to use…for failing tests.…Oh and we've got a failing test here.…By the way, you'll sometimes find that visual studio's…editor compilation lags somewhat.…So although we're getting a syntax error there…or an error there because it's saying value…or constructor parse is not allowed,…we know this code is compilable…because n crunch compiled it and ran the test…so you can safely just ignore that.…What's the error?…Well, you'd expect an error wouldn't you…because we aren't actually parsing the data.…
Let's have a look.…Here.…
- Defining values and calling functions in F#
- Defining and identifying discriminated unions
- Working with if-else expressions
- Writing unit test
- Using type providers to access data
- Analyzing data with collection functions
- Plotting data using the R type provider
- Using railway-oriented programming to handle errors
- Integrating with Twitter
- Deploying an F# application to Azure
Skill Level Intermediate
1. Get Started with F#
2. Build a Simple Parser with Unit Testing
3. Use F# CSV Type Provider to Get Data
4. Analyze Data with F# Collection Functions
5. Use RStats Provider and ggplot2 to Plot Data
6. Use BoxKite with Twitter
7. Deploy a Working Bot
Next steps1m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.