3,273 reputation
21030
bio website
location Chicago, IL
age 26
visits member for 3 years, 6 months
seen 14 hours ago

Jul
8
comment Random number generation algorithm for human brains?
@eds Um, what? 79 -> 61 -> 15 -> ...
Jul
8
comment Why is software OS specific?
Java runs on a virtual machine, though, which isn't cross-OS. You have to use a different JVM binary for each OS
Jul
7
comment Can a version of Python's shelve module that knows when its entries have been modified be written in any programming language?
So, what, you're suggesting a custom wrapper for every type of object that could be added to shelve? That definitely wouldn't fit into a generic library
Jul
7
comment Can a version of Python's shelve module that knows when its entries have been modified be written in any programming language?
The wrapper will not have all the semantics of the original object, and can't just be blindly inserted where the original object was. It also doesn't recurse - say, if t[0] was an object and it was the thing that was changed
Jul
6
comment Method vs Function vs Procedure
@DjangoReinhardt So a "Stored Procedure" in SQL doesn't return any values? - Depends on how technical you want to get with "return". You typically either read from a cursor to get data, use an "out" parameter (note Frank's answer), or store the result in another table. Not exactly "returning" a value, but a result is retrieved in other ways...
Jul
5
comment why the terms used in Scrum are so strange?
@phaedra In the context of video games, "artifact" is common; its use is along the lines of "not made by the player", which is a perfect parallel for miraculixx's second definition
Jul
5
comment Applying commits into another branch without merging
You're thinking of clones, not branches. And there's rebasing and cherry-picking to pull code without merging
Jul
3
comment Git branches avoided by the office where I work
One of the upsides of git - even with a brain-dead process like that, you can keep your branches local and hide their existence before pushing ;)
Jul
3
comment Why isn't testing a language a supported feature at the syntax level?
@RobertHarve ...and unit testing is a very good way to indirectly push developers towards that. Working on the API while creating tests, rather than while using it with other code, helps to put them in the right mindset to limit or remove leaky abstractions or odd method calls. I don't think KillianFoth is overstating anything.
Jul
1
comment Working with Javascript classes the right way
@SaschaM78 I don't like it either, but more because AFAIK you have to access everything with foo.variable, while defining the methods inside the main function creates closures allowing for private variables and no prefix necessary
Jun
29
answered Understanding and memorizing git rebase parameters
Jun
28
comment Working with Javascript classes the right way
That said, if the intent was for this to exist only once on the page, then self could be done away with entirely. Right now it's a weird mix of the two.
Jun
28
comment Working with Javascript classes the right way
@mplungjan No, PageControl.initialise() is going to call the wrong function for PageControl instances made later, if the class function was reusable. self.initialise() (defined at the top of the constructor function) is correct and is going to be the current instance in every case.
Jun
27
comment Does Scrum turn active developers into passive developers?
@MaR That's why the devs don't talk to the customers. The customers talk to the Product Owner and ask for faster horses, the P.O. is the one that sees all the clients' issues, combines and prioritized them, and in the process figures out that cars are better than faster horses
Jun
21
comment Is duplicate syntax for defining named functions a bad language design decision?
However, assigning existing functions seems to be missing the end of the sentence
Jun
21
comment Would you get better performances by coding an application in C, then compile to JavaScript?
@Dokkat Or of you meant optimizing the C code and then converting that, that's an even bigger issue - a C optimization isn't necessarily going to speed up Javascript. It might even do the opposite, given how different the languages and memory management are.
Jun
21
comment Would you get better performances by coding an application in C, then compile to JavaScript?
@Dokkat Emscripten compiles to Javascript that can be run anywhere Javascript can be run (meaning, no plugin for a browser or any other native piece of code). Emscripten cannot generate "not even possible in Javascript" code, because Javascript is all it generates.
Jun
19
comment Is it beneficial to study past the basics of a core language when the primary goal is to rely on its framework?
@JoshuaTaylor I think I'd put that before frameworks in importance, since idiomatic code is likely to be used with the framework and learning them separately is more useful - the language idioms are not part of the framework, and users of the framework have probably added more
Jun
19
comment Responsive Web Design vs. User-Agent Sniffing
@ruakh Think of changing sizing and spacing based on whether the user is using their finger or a mouse
Jun
19
comment When should the programmer's spoken language be used during development?
Are public and double also Italian? I'd expect at least a little language-switching whiplash even for an Italian-speaker...