conversations.from: human
conversations.value: Give me a description for a story titled Learning AngularJS about JavaScript, Web, AngularJS with the genre: Computers & Technology, Web Development & Design.
conversations.from: assistant
conversations.value: <P style="MARGIN: 0px"> <B>the author</B> is a senior software engineer with over 20 years of experience developing enterprise applications and Web interfaces. He has a passion for new technologies, especially ones that really make a difference in the software industry. He has used JavaScript, jQuery, and AngularJS for years and is the author of <I>Node.js, MongoDB and AngularJS Web Development</I> (Addison-Wesley Professional), <I>jQuery and JavaScript Phrasestory</I> (Addison-Wesley Professional), and <I>Sams Teach Yourself jQuery and JavaScript in 24 Hours</I> (Sams Publishing). He has designed and implemented a wide array of applications and services from application servers to complex 2.0 web interfaces.
conversations.from: human
conversations.value: Reverse the sentences.
conversations.from: assistant
conversations.value: 0 web interfaces.. He has designed and implemented a wide array of applications and services from application servers to complex 2.js, MongoDB and AngularJS Web Development</I> (Addison-Wesley Professional), <I>jQuery and JavaScript Phrasestory</I> (Addison-Wesley Professional), and <I>Sams Teach Yourself jQuery and JavaScript in 24 Hours</I> (Sams Publishing). He has used JavaScript, jQuery, and AngularJS for years and is the author of <I>Node. He has a passion for new technologies, especially ones that really make a difference in the software industry.<P style="MARGIN: 0px"> <B>the author</B> is a senior software engineer with over 20 years of experience developing enterprise applications and Web interfaces
conversations.from: human
conversations.value: Give me the first paragraph for this story.
conversations.from: assistant
conversations.value: Learning AngularJS
  JavaScript client-side applications run on the user's device or PC, and therefore shift the workload to the user's hardware and away from the server. Until fairly recently, server-side web MVC frameworks like Struts, Spring MVC, and ASP.NET were the frameworks of choice for most web-based software development projects. JavaScript client-side frameworks, however, are sustainable models that offer many advantages over conventional web frameworks, such as simplicity, rapid development, speed of operation, testability, and the ability to package the entire application and deploy it to all mobile devices and the Web with relative ease. You can build your application one time and deploy and run it anywhere, on any platform, with no modifications. That's powerful.
conversations.from: human
conversations.value: Give me five more paragraphs.. End with the sentence ' The assignment initializes the scope `blogList` property with an empty array.'.
conversations.from: assistant
conversations.value: Asynchronous REST service calls will always cause controller unit tests to fail. Unit tests of controllers that depend on REST services will finish execution before the REST services ever return results, so any scope properties used by controller unit tests will be missing when the test script executes if those properties are returned from a REST service call.
  There are ways to add a delay and make unit test scripts wait on the REST service results, but they add an unneeded level of complexity to the test scripts. Unit testing, after all, should be a test of a unit of code and not an end-to-end test. Protractor E2E tests are a better way to test REST services.
  Look at the code that follows. The `BlogList` service is injected into the `BlogCtrl` controller. We make an asynchronous call to the `get` method of the `BlogList` service by passing two callback functions to the call. The `success` callback function returns a successful service response object, and the `error` callback function returns any errors if the service call fails:
  It may take a second or more for the REST service to return results. Once the REST service does return results, the `success` callback function will be called. Unfortunately, the unit test script will have finished execution long before. We remedy this issue by making a change to the controller.
  Notice the assignment `$scope.blogList = [];` in the preceding code. The assignment has no impact on the functionality of the controller, but it has a major impact on the unit test script associated with the `BlogCtrl` controller. The assignment initializes the scope `blogList` property with an empty array.
conversations.from: human
conversations.value: Give me the last three paragraphs.
conversations.from: assistant
conversations.value: One last thing that can directly affect page speed and SEO is the speed of the REST web services used to populate page content. Pages that rely on slow REST services can suffer as a result. REST services should return results in two seconds or less.
  Cricket frogs prefer a freshwater environment, such as puddles, lakes, marshes, and streams.
  Adult Florida cricket frogs grow to be about 1.25 inches long, and vary in color from dark brown to tan or green. They enjoy healthy population growth and are not considered threatened in any way.
conversations.from: human
conversations.value: Add another sentence about recognized.
conversations.from: assistant
conversations.value: One last thing that can directly affect page speed and SEO is the speed of the REST web services used to populate page content. Pages that rely on slow REST services can suffer as a result. REST services should return results in two seconds or less. 
  Cricket frogs prefer a freshwater environment, such as puddles, lakes, marshes, and streams. They are easily recognized by the triangular mark on their heads and the two dark stripes on their rear. 
  Adult Florida cricket frogs grow to be about 1. 25 inches long, and vary in color from dark brown to tan or green. They enjoy healthy population growth and are not considered threatened in any way.