lodash
data-oriented-programming | lodash | |
---|---|---|
11 | 187 | |
117 | 58,909 | |
- | 0.3% | |
0.0 | 5.1 | |
over 1 year ago | 4 days ago | |
JavaScript | JavaScript | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
data-oriented-programming
-
Data-Oriented Programming book has been released
The code from the book doesn't include any Clojure: https://github.com/viebel/data-oriented-programming
-
#1 Manning best seller for 2021
My book "Data-Oriented programming" is #1 Manning best seller for 2021.
The book formulates the principles of an approach to data that reduces complexity and illustrates how to apply them in a statically-typed language like C# or Java or in a dynamically-typed language like JavaScript, Python or Ruby.
Here are the 4 principles of Data-Oriented Programming:
1. Separate code (behaviour) from data
2. Represent data with generic data structures
3. Data is immutable
4. Separate data schema from data representation
It might sound like Functional Programming but if you look closer at the principle list, you will notice that principles #2 and #4 are not part of FP.
For those who already bought the book or are interested, I released the book's source code to https://github.com/viebel/data-oriented-programming. The publication is expected for March 2022.
If you guys aren't sure about buying the book, contact me on Twitter @viebel, I'll DM you a preview.
-
📖 Data-Oriented Programming book: First draft
Yeah, ive just been looking and all his code from the book is written in JavaScript. For example in chapter 5 of the book the library-data.js is just a JSON string.
Regarding Go, I am not only allowing but welcoming pull requests. Here is the repo https://github.com/viebel/data-oriented-programming/tree/main/challenges.
Someone wrote a solution for a couple of DOP challenges here. I invite you to add your own.
-
A beautiful paper from 1981 that explains in simple terms what are values and what are objects in programming
Here is my two-cents about how names are fixed in Clojure: https://github.com/viebel/data-oriented-programming/wiki/Identity
-
Do you like Data-Oriented programming or do you hate it?
Actually, someone gave it a try and solved the challenges of the article in Go. See https://github.com/viebel/data-oriented-programming/pull/2
-
Data-Oriented programming simplicity illustrated by coding challenges
Submit your code snippets as a pull request to the official book source code Github repository, under the challenges folder. In case you disagree with DOP, please add a few words as comments in your code that explain why you think that your solution is simpler than the ones that I wrote.
-
New Book: Data-Oriented Programming
Here you go: https://github.com/viebel/data-oriented-programming
lodash
-
8 NPM Packages for JavaScript Beginners [2024][+tutorials]
Lodash.js is like the Swiss Army knife for JavaScript developers. Need to manipulate data structures or dabble in functional programming? Lodash is here to save the day with its arsenal of utilities. It's all about making your code cleaner and your life easier, which is probably why big guns like Google and Airbnb have it in their toolkit.
-
Full Stack Web Development Concept map
lodash - utility library enabling things like deep object comparison that aren't easy to do with javascript out of the box. docs
-
Getting Started with Lodash: A Beginner's Guide to JavaScript Utility Functions
Lodash is a widely used JavaScript utility library that provides a plethora of functions to simplify common programming tasks. From manipulating arrays and objects to handling edge cases and implementing functional programming paradigms, Lodash offers a comprehensive toolkit for JavaScript developers. In this beginner's guide, we'll learn how to get started with Lodash and leverage its functionality to write cleaner, more efficient, and more maintainable code.
-
JavaScript Libraries That You Should Know
5. Lodash
-
JavaScript Equality Under the Lens: Enhancing React's Dependency Checks
If you want even more sophisticated equality checks like deep comparisons, there's the: lodash.iseQual library that'll do this for you out of the box. At least now you do have a bit of clarity on what's happening under the hood, so there's no harm in using a library.
-
Top 20 Frontend Interview Questions With Answers
It's also important to ensure that you're importing libraries correctly, so webpack can perform tree shaking effectively. For example, let's import lodash, as follows:
-
How to Remove Duplicate Objects from an Array in JavaScript
Lodash is awesome! It’s a JavaScript library that helps you do many things with data. You can use Lodash to manipulate arrays, objects, JavaScript strings, numbers, and more. It’s easy to get Lodash in your project. You can use npm or a CDN to install and import it. Here’s how:
-
Observables and Observers in RxJS
Think of RxJS as Lodash for events.
-
Coming to grips with JS: a Rubyist's deep dive
lodash and You Might Not Need Lodash
-
Deep Cloning Objects in JavaScript, the Modern Way
A lot of Lodash functions are implemented as combinations of other Lodash functions, so importing a single function actually imports half of Lodash under the hood:
https://github.com/lodash/lodash/blob/main/src/.internal/bas...
What are some alternatives?
fp - fp - My little functional programming library
ramda - :ram: Practical functional Javascript
klipse - Klipse is a JavaScript plugin for embedding interactive code snippets in tech blogs.
underscore - JavaScript's utility _ belt
lazy.js - Like Underscore, but lazier
RxJS
Sugar - A Javascript library for working with native objects.
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
Mout - Modular JavaScript Utilities
Rambda - Faster and smaller alternative to Ramda
jQuery - jQuery JavaScript Library
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.