Shreevathsavathsasblog.hashnode.dev·Feb 23, 2024The Programming Playground: Procedural vs Object-OrientedWelcome to the Programming Playground, where we explore the fascinating world of code! Today, we'll dive into two popular programming styles: Procedural Programming and Object-Oriented Programming (OOP). Buckle up, grab your coding hat, and let's pla...DiscussProgramming Blogs

RagaviforDevOps Made Easyeasydevops.hashnode.dev·Feb 11, 2024What is DevOps? A Simple Example!Imagine that you and your friend (Iva) are going to a baking competition. During the competition, You both are given multiple needed products to make a cake. With the given products You and Iva started making a cake. After trying 3 to 4 times, you go...Discuss·1 likeDevops

Jyotiprakash Mishrablog.jyotiprakash.org·Dec 28, 2023Bigger Example 3: Dynamic ArrayQuestion: Implement a dynamic array data structure in C that supports the following operations: Initialization with an initial capacity. Accessing an element at a given index. Setting the value at a given index. Inserting a new element at a speci...DiscussC Programmingarray

Jyotiprakash Mishrablog.jyotiprakash.org·Dec 28, 2023Bigger Example 2: Simple Text File Encryption and DecryptionQuestion: Design a program that can encrypt and decrypt a text file using a simple encryption algorithm. The user should be able to provide a key for encryption, and the program should output the encrypted text to a new file. Another option should al...DiscussC Programmingexample

Jyotiprakash Mishrablog.jyotiprakash.org·Dec 28, 2023Bigger Example 1: Custom Memory AllocatorQuestion: Develop a basic memory allocator that mimics the functionality of malloc() and free() in C. The allocator should manage a pool of memory and provide functions for allocating and freeing memory blocks. Implement features such as coalescing a...DiscussC Programmingmemory allocator

Namya Shahbigsmoke.hashnode.dev·Dec 26, 2023Python Statistics ModuleFunctions for Statistical Calculations: statistics.mean(): Calculates the arithmetic mean of a sequence of numbers. statistics.median(): Calculates the median of a sequence of numbers. statistics.mode(): Calculates the mode of a sequence of number...Discussharmonic mean

Sudhir Kumariamsudhir.hashnode.dev·Sep 12, 2023Simplest example of Callbacks in JavaScriptFirst of all, what is Callback in JS? A callback is a function that's passed as an argument to another function and is executed once that function has completed its task. Callbacks are commonly used to handle asynchronous operations like fetching dat...Discuss·44 readsJavaScript

Haocheng Linhaochengcodedev.hashnode.dev·Aug 13, 2023[Statistics 1 🔢] Probabilities🌟Key Terms Independent $$x_i, x_j$$Two variables are independent when a joint distribution could be expressed as a product between two marginal distributions. $$P(x_i, x_j) = P(x_i)P(x_j)$$Bayes Theorem Bayes Theorem or Bayern Munich? 🤔 The probab...Discussstatistics

Maksim MartianovPromartianov.dev·Aug 12, 2023Understanding Scala Extractors: An Easy-to-Follow ExampleLet's implement a simple case class that represents a Time object that contains hours and minutes. For simplicity, we will use 24-hour clock. case class Time(hour: Hour, minutes: Minute) case class Hour(hour: Int) case class Minute(minute: Int) Now ...Discuss·38 readsexample

Sanjana Khansanjana940904.hashnode.dev·Jul 9, 2023Exploring SPLPriorityQueue Class Methods in PHPSplPriorityQueue::count The SplPriorityQueue::count method in PHP returns the number of elements present in the priority queue. It does not take any arguments and always returns an integer value. Here's an example that demonstrates the usage of SplPr...Discuss·31 readsPHP