Home / Companies / LogRocket / Blog / October 2017

October 2017 Summaries

4 posts from LogRocket

Filter
Month: Year:
Post Summaries Back to Blog
Chrome Canary has introduced a new feature called the streaming Performance Monitor, which provides live performance and memory statistics as applications run, potentially improving the debugging experience for developers. Unlike the existing Performance and Memory tabs that require manual recording and can increase CPU and memory usage, the Performance Monitor displays real-time data such as CPU usage, JavaScript heap size, DOM nodes, and more, allowing developers to identify spikes in usage without starting and stopping recordings. This tool is designed to complement rather than replace the Performance and Memory tabs, as those still offer more detailed analysis necessary for diagnosing specific issues. Developers can access the Performance Monitor in the latest version of Chrome Canary, with plans for its integration into the standard Chrome browser. The tool aims to streamline the process of identifying performance issues, offering immediate insights into potential problem areas as they arise during everyday app usage.
Oct 28, 2017 441 words in the original blog post.
Moment.js is a JavaScript library designed to simplify the manipulation of dates and times in development projects, offering an intuitive API that addresses the complexities often associated with JavaScript's native Date object. It can be implemented both in-browser and server-side, with installation options including npm for Node.js or through a CDN for browser use. Moment.js allows developers to seamlessly format, add, subtract, and compare dates using various methods such as `format()`, `add()`, `subtract()`, and `diff()`, among others. It supports method chaining for more complex operations and provides utilities to check for conditions like daylight saving time and leap years, ensuring robust handling of date and time data. Additionally, moment.js can represent relative time differences and validate date formats, making it a versatile tool for developers seeking an efficient solution for date and time manipulation in JavaScript applications.
Oct 24, 2017 1,447 words in the original blog post.
Vue.js is a popular and minimalist JavaScript framework that is user-friendly for beginners but lacks advanced concept tutorials. This comprehensive guide explores various advanced Vue.js features, including mixins for reusable code, custom directives for controlling DOM element behavior, filters for processing data, and transitions for adding effects during DOM updates. It also delves into state management using Vuex, which centralizes data across components, and server-side rendering to address the challenge of blank pages prior to JavaScript execution. The tutorial offers practical examples and instructions for implementing these features, aiming to enhance developer productivity in Vue applications. Additionally, the guide encourages the use of LogRocket for better debugging and monitoring of Vue applications in production, highlighting its ability to replay user sessions and capture various data points for improved issue resolution.
Oct 18, 2017 3,084 words in the original blog post.
Web app security is a critical topic, particularly when it comes to user and session vulnerabilities such as cookie theft and cross-site request forgery (CSRF). CSRF attacks involve a malicious agent sending a forged request from one application to another while a user is signed in, potentially allowing unauthorized actions on the user's behalf. Traditional methods for mitigating CSRF, like checking HTTP headers, have been helpful, but the SameSite cookie directive offers an effective way to prevent such attacks by ensuring cookies are not sent with cross-site requests. Additionally, enhancing cookie security through techniques like using the __Secure and __Host prefixes can further protect user sessions by enforcing stricter requirements such as secure attributes and specific path settings. By combining these strategies with other security measures like the HTTPOnly and Secure attributes, developers can significantly bolster the security of their web applications against common threats.
Oct 03, 2017 1,214 words in the original blog post.