Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				 hack61577yEven turning numbers into strings then making ascii calculations to find sum is better than that. Can we kill js with fire? I can't take it anymore. hack61577yEven turning numbers into strings then making ascii calculations to find sum is better than that. Can we kill js with fire? I can't take it anymore.
- 
				
				 pskfry437y@react-guy didn't you know it's trendy to hate javascript nowadays? pskfry437y@react-guy didn't you know it's trendy to hate javascript nowadays?
 
 we must shit-talk it at every opportunity!
 
 that said i'm surprised you don't run into scoping issues with this.
- 
				
				and that is how Haskell has only functions that take a single argument.
 
 I fucking love currying.
- 
				
				 Root772327yCurrying is awesome 😊 Root772327yCurrying is awesome 😊
 
 I use it pretty extensively for things like redux reducers and other factories.
- 
				
				congratulations, you just discovered the main point of JavaScript: writing needlessly convoluted shit just because it looks cool ;)
Related Rants












 What only relying on JavaScript for HTML form input validation looks like
What only relying on JavaScript for HTML form input validation looks like
 Found something true as 1 == 1
Found something true as 1 == 1
React-Redux's connect() function inspired me to create the coolest way to add numbers in JS:
<script>
function add(num) {
return function(otherNum) {
return num + otherNum
};
};
console.log( add(2)(3) ); // Outputs 5
</script>
I didn't know you could do that. Just found it out!
random
js