If you want to make a screenshot of a website that works well in print or on a high-DPI...
Given you store files on Amazon S3 and you need to stream those files out to people while you don...
An introduction to mangling When you minify ("compress", "optimize") your JavaScript for production, the names of your functions and variables...
An annoying part of using font icons is that the icons usually need to live in the DOM. This is...
When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...
This is for you if you get this error: cucumber.yml was found, but could not be parsed. Please refer to...
TypeScript Code Playground Let's take a look at the same behavior for functions: interface User { name: string; age: number; } function greet(user: User) { console.log(`Hello ${user.name}`); }
...type assertion. You're saying: "Treat this variable as a different type; I know better than what you can guess." This can be useful when you're retrieving a point...
...even the worst method had time average saving of 00:54 minutes and the best 01:11 minutes. For 25 commits per day this would be an average time saving...
...have not been normalized to the total execution time of the testsuite. A cost benefit analysis could give greater insight into the amortization of costs and about the actual time...
When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...
When an event listener on a DOM element throws an error, that error will be silenced and not interrupt your...
...Compliance Level; Asset file size could be reduced 2 New slider library has a better API Add capybara_lockstep 2 0 - 5 Reduce flaky integration tests
While you can use Apache as a reverse proxy, it tries to be too smart. Try nginx instead, it's...
...JavaScript every day, even when our backend code uses another language. While we've become quite adept with JavaScript at a basic level, I think many of us lack a...
Every function may use this, even if the function does not belong to the object. The default value of this is the global object (window in browsers...
...issues, where you want to have a specific order of after_commit actions. Documented behavior Taken from the API documentation Registers a block to be called after all the current...
RSpec allows you to mark a single Example/ExampleGroup so that only this will be run. This is very useful when...
"Special object attributes" like frozen, tainted and singleton methods are ignored (like dup) Behavior depends on implementation Hash: returns a deep copy, i.e. referenced objects/values will be deep_duped...
...test (of course, you should be using parallel_tests). However, in projects that go beyond clicking around in a web GUI and checking results, there might be various measures to...
In your Cucumber features you can't really click hidden elements when using Selenium (it does work for a plain...
...I've seen examples using directory but there are no indications this attribute will become standard soon. Feel free to use to feel future-proof. On JavaScript file objects, webkitRelativePath...
...use a library like Lodash or Unpoly's up.util that will hide this inconsistency behind functions like _.isBoolean(x) or _.isObject(x). However, I encourage every JavaScript developer to understand...
...JavaScript has a caveat that typeof null returns 'object'. No developer would consider this behavior useful, since you cannot get or set properties with null. Taking into consideration all of...
...many thousand rows. Once your database tables grows to millions of rows, migration performance becomes an issue. We will talk about this in another card. 1. Use the full power...
...updates with it. As a first example, we have Post has_many :followers. For better performance, we want to cache the number of followers in Post#followers_count.
Both knapsack and parallel_tests have the option to split groups by historic execution time. The required logs for this...
When you allow file uploads in your app, a user might upload content that hurts other users. Our primary concern...
...named main, add a file app/webpack/packs/main.js. This will be your entry point. All assets belonging to that pack need to be imported here. Since webpack is configured to use Babel...
...its own import statements to load any dependencies it might have. Since this quickly becomes cumbersome, we usually add the following to simply import all our JavaScript files at once...