@Downgoat I saw it get accepted and saw on the main page "modified x minutes ago by Doorknob" and thought for some reason that he had somehow accepted it
lim x to inf ((x^4)-3x)/(-2x+5) solving step by step
lim x to 0 ((-(cosx)^2)/4x^2) solving step by step
lim x to -1 ((x+1)/((6(x^2)+3)^1/2)+3x) solving step by step
OK, so I discovered a partially working newreader app on an old hard drive that I think I wrote when Google Reader died. There's only one problem: it's written in JavaScript using Sencha
Where will the cat go?
A nearly massless cat is dropped in space at the point (x, y, z) with velocity (vx, vy, vz). There is an infinitely dense planet (with volume of 0) at the point (0, 0, 0) and it attracts objects at distance r with acceleration 1/r^2. According to Newtonian gravity, where d...
@quartata I've been there. I eventually had to scrap a phonegap project at work and rewrite the whole thing natively for both android and ios. Much better than trying to maintain it.
@Downgoat Type casting is absolutely insane. Semicolon insertion should never have existed. The name is misleading, at best. The implementations are utterly incompatible. Writing asynchronous code is painful.
@Dennis ES6 introduced async functions, which fix that issue. Type casing makes sense once you understand toString. Semicolon insertion isn't a problem if you put semicolons in your code
@Downgoat The entirety of their "prototype" implementation is just crazy. I work almost exclusively with OOP languages, and I have to google how to write JS contructors every. single. time.
not really. Especially considering the fact that that JavaScript treats every single thing the same means that it's ridiculously easy to end up with things of the wrong type.
@GamrCorps Hahaha, okay. I cut a few things entirely, shuffled the items into an order that flows better, and essentially standardized each paragraph by putting the most important thing as the first sentence and bolding it. It's still rather long, but it's not quite as long. :P
@El'endiaStarman @Doorknob, your feedback on this would be appreciated.
> the body of lambda functions can only be an expression, no statements; this means you can't do assignments inside a lambda, which makes them pretty useless
var myVar = 5;
if(myVar == '5'){
alert("if is loosely typed");
}
switch(myVar){
case '5':
alert("switch is too, then, right?"); // no, it actually isn't
}
@QPaysTaxes Welcome to Programming Puzzles and Code Golf! This website is tagged code-golf so you need to make your code as short as possible, you can start by removing all that horrible whitespace and making all variable named 1-char long.
> var s = 'constructor length'; counts = {}; s.split(' ').forEach(function(word) { if (counts[word.toLowerCase()] !== undefined) counts[word.toLowerCase()].push(word); else counts[word.toLowerCase()] = [word]; }); counts
TypeError: counts[word.toLowerCase(...)].push is not a function
at repl:1:155
at Array.forEach (native)
at repl:1:57
at REPLServer.defaultEval (repl.js:262:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:427:12)
This happens because constructor is a special variable on all objects, and setting it to [...] magically transforms the object into an array. Which gives it a length property. Which is plain stupid.