Test-driven development, or TDD, is a testing method where you first convert the feature requirements to tests and then write code to make the tests pass. In this article, we take an objective look at test-driven development, its benefits, downsides, and best use cases.
If you have ever spent time building an Object-Oriented Program (OOP), you have likely used polymorphism in your application or, at the very least, heard the term. It’s the kind of word you’d expect to see in a science or computer science textbook. You may have spent time researching polymorphism and even implemented it in your application without clearly understanding the concept. This article will give you a greater understanding of polymorphism, specifically in Ruby on Rails.
Deprecating old code and replacing it with new and improved APIs is an established process in software development. In the core of PHP APIs are provided to trigger and to get notified of deprecations. As a PHP application developer you can then hook into all triggered deprecations using a user defined error handler. You can use this API to collect deprecations and fix them.
In software development, the monolith architecture has successfully seen the design and development of applications. Most unicorn companies in recent years started their journey using monolithic architecture. However, we’ve seen a significant change and adaptation of microservice architecture patterns in the last few years. The popularity of designing and developing applications using microservices is mainly because of scalability and increased productivity for larger teams and companies.
While initially conceived as a tool for data exploration (much like Jupyter for Python), Livebook has deservedly become a sensation in the Elixir community. It has been fantastic to see all the wonderful ways teams are leveraging Livebook for a range of different use cases. We have seen Livebooks being used to: Livebooks have also been used as the default REPL interface for project development.
Try-catch blocks in PHP can be nested up to any desired levels and are handled in reverse order of appearance i.e. innermost exceptions are handled first. Nested blocks can be useful in case a block of code causes an exception, which can be handled within that block and program execution can continue in the outer block. They can also be useful in case the handling of an exception causes another exception.
The Javascript ReferenceError occurs when referencing a variable that does not exist or has not yet been initialized in the current scope. Reference errors in Javascript are of a few different types, with variations of each, that may get triggered in code. Some of these are discussed below.
A hands-on guide explains how to build and package Flutter Linux Desktop apps with Bitrise so you can reach more users in browsers with the same experience as on desktop devices.