Learn how to integrate all the functions you have written so far into a single reply function. Use the railway-oriented programming style to simplify error handling.
- [Instructor] We're just about on the last lap.…It's time to bring all the functions we wrote earlier…into a bot that actually works.…To do that, I'm going to add some references,…basically to all the useful projects we created earlier.…We don't need the tests,…we don't need the visualization harness.…And I'm also going to use Manage NuGet Packages…for solution…to make sure that BoxKite.Twitter…is installed into StockChartBot.…
And then in the main program file,…of StockChartBot, I'm going to paste some code,…which is going to look pretty scary.…Starts well.…This is going to be a reply function,…and this is going to be the function…that calls everything else we need to call.…In other words, it's when we start the embodiment…of that type signature we wrote at the very beginning.…This is the thing that's going from a tweet to a query,…from a query to data, from data to a summary in a chart,…and from summary in a chart to a tweet.…
So it starts well.…We just have a little logic here just to make sure…that the bot doesn't reply to tweets of its own.…
- 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.