Aqiraqirlone.hashnode.dev·Mar 25, 2024Maximizing Efficiency large set of records with 'find_each'In Ruby on Rails application development, efficiently handling large datasets is crucial for your application's performance. In this context, the `find_each` method emerges as a powerful tool that many developers underestimate. What is the `find_each...DiscussRuby
Rabina Shahiflutterrabina.hashnode.dev·Feb 21, 2024Everything you need to know about loop in DartLoops execute a code block until a specific condition is met. Here we will talk about for loops with while and do-while loop. For loops forEach() Loop It's the method to iterate over each element of iterable whether it be a list, set, or map. Exam...Discussfor-in loop
woodstockwoodstock.hashnode.dev·Jan 30, 2024map, forEach 메서드 타입 정의하기Map 메서드 타입 정의하기 자바스크립트의 배열 메서드 Map은 다음과 같이 원본 배열의 각 요소에 콜백함수를 수행하고 반환된 값들을 모아 새로운 배열로 만들어 반환한다. const arr = [1, 2, 3]; const newArr = arr.map((it) => it * 2); // [2, 4, 6] map 메서드를 직접 함수로 만들고 타입을 정의해보자 먼저 제네릭 함수가 아닌 일반적인 함수로 만든다. function map(arr: ...DiscussTypeScriptTypeScript
Komal Shevanejs-brains.hashnode.dev·Jan 12, 2024What is Polyfill? Make it for ForEachA Polyfill is a code in JS which is used to provide modern functionality on old browser which is not supported in old versions. Basically mimic the modern functionality with traditional code.For Example: forEach will not work in the older version of ...Discuss·3 likes·47 readsJavaScript
Aayush Shahaaaaayushh.hashnode.dev·Dec 14, 2023forEach (a)waits for None!While working on an Express application recently, I came across a very weird bug which honestly humbled me to a great extent. Every time I think I understand the monstrosity that JavaScript is, I'm proved wrong. Let's dive into this! What happened? W...Discuss·12 likes·28 readsJavaScript
Pranay Sanjulepranaysanjule.hashnode.dev·Nov 29, 2023Loops & Iteration in JavaScript (Advanced)Note: Try to code by yourself and understand the output Introduction In computer programming, a loop is a sequence of instructions that repeats until a specific condition is met. Loops are a fundamental and powerful programming concept. There a...Discuss·29 readsLoops in Javascript
Francesco Tusathinkobjectoriented.hashnode.dev·Oct 6, 2023Arrays in C#In the previous articles of this series, primitive data types were used in different C# programs to store and manage data inside the computer memory (RAM). This was done by declaring variables—specific memory areas whose size in bits depends on the a...Discuss·1 like·150 readsarray
Ruthruthr.hashnode.dev·Oct 5, 2023Javascript's forEach, Map, and Filter MethodsIn this blog, I will be talking about the forEach, map, and filter functions. We will create our own forEach, map, and filter function to see how these methods use the array and callback function we pass. The forEach Method According to the MDN Javas...Discuss·42 readsforeach
Oluwatimilehin Awoniyioxtimilehin.hashnode.dev·Aug 3, 2023Understanding the Difference Between For Loop and ForEach in JavaScriptIntroduction When programmers want a portion of their code to execute a set of actions repeatedly, most times, till a certain condition is fulfilled, they save their time and energy by using loops. The crude alternative is writing the same set of cod...DiscussJavaScript
lalitha bourishettylalithabourishetty.hashnode.dev·Jul 16, 2023Commonly used Stream api methodsStream api is one of the major changes introduced in Java 8. why do we use "stream api" is it the same as Collection API? The answer is no, collection classes store elements, whereas stream API does not store, it is used to process a group of element...DiscussJava