Stuchlik: Oberly: oh right fair.
Trucchi: Mythros: so it works as expected the first two times and then. locks? does it throw any errors in the console?
Hootsell: Yes. and no. it doesn’t.
Stuchlik: Higuchi: yeah I used to use UltiS****
Oberly: And autocompletion for dynamic languages usually ****s anyway =
Stuchlik: Oberly: seems to be the case. I’ve not done enough to have a m***ive overview tbh :
Olivares: Oberly: that’s a tool failure, not a language one. It’s very good for Smalltalk
Moroz: Http://jsfiddle.net/Lq8900fk/1/ Why isnt Object.observesubObj, functionsubChanges. working here?
Krum: So yes, Trucchi. It only allows the math to correctly p**** twice, then it locks the functionality of the equals key up.
Trucchi: Mythros: so, with the evals and outside context stuff I can’t see, it’s tricky for me to see what’s going on in the static code. You’ll definitely want to use something other than eval, but I’ll give you some advice on how to debug it since I can’t spot it at a glance
Oberly: Dekok: smalltalk isn’t really dynamic in js way? It has cl***es with defined interfaces iirc
Taula: Oberly: Smalltalk is more dynamic than JS.
Gracy: I can PM you the link to my actual calculator if you like, Trucchi.
Pawlowski: Oberly: objects can change their cl***es at runtime and all that.
Bernecker: Could someone take a look at my code please? can’t seem to get it working :-/ https://repl.it/BHDQ
Trucchi: Mythros: hitting it twice is causing something on the second or third trigger to give a malformed value, that’s. probably causing the eval to go wrong. I’d recommend logging the values that you’re running eval on Current, do***ent.forms.masterform.memory.value, A, B, C, etc on each p*** of the function – before the eval is called.
Oberly: Anyway, I may have a “db” variable in a module/cl*** which I later inject with db connection object, for example
Trucchi: You SHOULD be able to see what the values are, which will help you find what’s causing it
Eggen: And all operations are messages. There’s nothing static in Smalltalk, unlike JS, where you have a lot of static things operators, structure, etc
Oberly: Autocompletion has no way of knowing that unless it actually runs a program
Oberly: Or if I provide some sort of type hints
Vanoort: Dekok could you take a look at my snippet please?
Houze: Oberly: it depends. Sometimes type inference can help. The good thing about Smalltalk tools is that those tools are actually running your code in real time anyway, and you’re actually editing the running program, not its source code, so it makes things much easier.
Babena: Much like Chrome’s REPL
Noia: Tern does pretty good type inference. It uses a limited form of abstract execution I think.
Stuchlik: I’m pretty sure I use Tern for completion
Diggins: Doctor JS used to use a more powerful form of abstract execution, but I don’t remember if it computed shapes from that
Hritz: Oh I see. It DOES work, but only if there is a delay.
Vicsik: In many cases i like having ‘dumb’ completion that’s just based on words used regardless of context
Geffrard: Can someone please help me take a look at my small calculator code and tell me why it is not calculating correctly?
Stuchlik: J201: yeah I get buffer as well i think, so it p****s open buffers for words and completes based on those
Callinan: I find there are many cases where completion is useful that smarter engines often avoid, like referring to symbols in comments, having variables with similar names, referring to symbols that i haven’t defined yet, reusing words that are big and annoying to type, using the same symbol in a string or map key or other contexts in general, etc.
Valletta: Im manually croping images on gimp, can i do it through js code faster?
Burgher: Cuz i have like an image with 20 logos gotta crop out those logo
Lamery: And i need them to have same dimensions