Articles on Trending Technologies

Technical articles with clear explanations and examples

TypeScript - Type erasure and error behaviour?

Rushi Javiya
Rushi Javiya
Updated on 01-Aug-2023 376 Views

TypeScript is a popular programming language that offers features such as type checking and type annotations to help developers write more robust and maintainable code. However, when TypeScript code is compiled into JavaScript, the type information is lost in a process called type erasure. This can lead to errors at runtime that are difficult to diagnose and fix. In this article, we will explore the concept of type erasure in TypeScript and how it can affect error behaviour in our code. Type Erasure Type erasure is the process of removing type information from a program during compilation. In TypeScript, this ...

Read More

Difference between Linux and iOS

Pradeep Kumar
Pradeep Kumar
Updated on 01-Aug-2023 3K+ Views

Linux and iOS are two very different types of operating systems. In this tutorial, we'll compare and contrast the various features of Linux and iOS and highlight how they are different from each other. We will compare their applicability in various scenarios as well as examine their advantages and disadvantages. Linux Operating System Linux is an open−source, Unix−like operating system kernel that serves as the foundation for various Linux−based operating systems (distributions). It was initially developed by Linus Torvalds in 1991 and has since become one of the most prominent and widely used operating systems in the world. Linux ...

Read More

Difference between Job, Task and Process

Pradeep Kumar
Pradeep Kumar
Updated on 01-Aug-2023 2K+ Views

Job, task, and process are three terms that are used to refer to the work being done in different types of operating systems. In this article, we will have a detailed study of these three terms and how they are different from each other. What is a Process? A program being run is known as a process. A process is referred to as a set of instructions. The process is an active entity, whereas the program is a passive one. When we run a program, it stays on our system's hard drive, and once it enters the main memory, it ...

Read More

Difference between iOS and Android

Pradeep Kumar
Pradeep Kumar
Updated on 01-Aug-2023 15K+ Views

An operating system (OS) is a group of programs that controls computer hardware resources and offers standard services to software applications. It serves as a conduit between the user and the hardware. It is accountable for carrying out all procedures. There are many operating systems available for mobiles, PC, etc. iOS and Android are such operating systems. The following are the differences between them. What is iOS? The iPhone operating system is referred to as iOS. It was developed by Apple Inc. in 2007. Following its initial 2007 release for the first−generation iPhone, the iOS operating system has since been ...

Read More

How is TypeScript an optionally statically typed language?

Rushi Javiya
Rushi Javiya
Updated on 01-Aug-2023 667 Views

TypeScript is an open-source programming language developed and maintained by Microsoft. It is a superset of JavaScript, which means that all valid JavaScript code is also valid TypeScript code. TypeScript adds optional static typing, classes, interfaces, and other features to JavaScript to improve code quality, maintainability, and scalability. In this article, we'll explore how TypeScript is an optionally statically typed language, what that means for developers, and how it can benefit them in their projects. What is Optional Static Typing? Static typing is a programming language feature that allows developers to define data types for variables, function parameters, and function ...

Read More

How to create your own TypeScript type definition files (.d.ts)?

Rushi Javiya
Rushi Javiya
Updated on 01-Aug-2023 5K+ Views

TypeScript, a superset of JavaScript, offers static typing capabilities that enhance code quality and catch errors during compilation. To fully leverage TypeScript's static typing features, it's crucial to have type definition files (.d.ts) for external JavaScript libraries and modules used in projects. These type definition files describe the types and interfaces exposed by the external entities, enabling the TypeScript compiler to understand their shape and behaviour. In this article, we'll explore the step-by-step process of creating custom TypeScript type definition files, empowering developers to benefit from static typing in their projects. Prerequisites Type definition files (.d.ts) serve as an interface ...

Read More

How internal is different from external modules?

Rushi Javiya
Rushi Javiya
Updated on 01-Aug-2023 639 Views

TypeScript, an extension of JavaScript, introduces modules as a means to structure and organize code effectively. Modules play a vital role in developing scalable and maintainable applications by enabling code encapsulation and reusability. TypeScript supports two types of modules: internal (namespaces) and external (ES modules). In this article, we will delve into the differences between internal and external modules in TypeScript, exploring their characteristics and impact on code organization and sharing within a project. Internal Modules Internal modules, also known as namespaces, serve as logical containers within a single file to group related code elements together. They offer benefits such ...

Read More

Zoom Scroll View in Android

Way2Class
Way2Class
Updated on 01-Aug-2023 1K+ Views

Many Android applications have the zoomable scrolling feature, which enables users to pinch or stretch their fingers on the screen to zoom in and out of material like photographs or maps. Using a Zoom Scroll View, a custom view that expands the Android ScrollView and offers built-in support for zooming and scrolling, is one popular method for implementing zoomable scrolling in Android. We shall examine how to implement Zoom Scroll View on Android in this technical writing. In this tutorial, we'll go through the fundamental ideas and procedures needed to develop zoomable scrolling in your Android application using a Zoom ...

Read More

Why does an online Judge crash during an online Programming Contest?

Way2Class
Way2Class
Updated on 01-Aug-2023 249 Views

We all are well aware are that now-a-days various coding platforms include competitive codings, for example GeeksforGeeks, CodeChef, Codeforces, atCoder, SPOJ, HackerRank, HackerEarth, and many more where they supposed to code out by themselves by either attaching local editor file such as a sublime editor or by directly writing on their respective editors. So how are these test cases getting accessed or in an easy way we can say that our code is getting compiled and run? On these programming platforms for competitive programming online judges act as the backbone for code compilation and run. Online Judge To judge ...

Read More

Locking Screen Orientation in Android

Way2Class
Way2Class
Updated on 01-Aug-2023 744 Views

When talking about operating systems powering contemporary must have gadgets like smartphones, tablets and smartwatches Android tops the list without question. Its robust architecture offers almost limitless customizability options combined with an array of features built around elevating users' experiences to a different level entirely. One remarkable addition to Androids capabilities is the screen orientation locking function which allows you to fix the display in either portrait or landscape mode irrespective of how you hold your device. In this write up we highlight why screening locking is critical to optimal use of modern day Android devices and provide intuitive ...

Read More
Showing 35001–35010 of 61,297 articles
Advertisements