10,650 reputation
33863
bio website
location Waco, TX
age 28
visits member for 4 years, 4 months
seen 2 days ago
My native language is C++, but I have left my first love and now use python whenever I have the slightest excuse. Actually, I use python even if I don't have an excuse.

Jan
26
comment How to program GUI applications in python without additional modules
You've just basically asked how to breath without using your nostrils. Using the pre-existing modules is how you program GUI applications.
Jan
19
comment should I test this public method
@Maximus, I'm afraid I think that's a very bad idea. Introducing a mock in this testing will make the tests more complex, include more implementation details, be harder to follow, be less helpful as documentation, and provide a shallower test of your functionality. The only possible advantage to introducing a mock here is to prevent tests on validator from failing because of bugs in storage. But I think that's an almost worthless benefit.
Jan
19
answered should I test this public method
Jan
12
comment What is the purpose of NaN boxing?
@nickik, I don't understand what you are saying.
Jan
7
awarded  Popular Question
Jan
2
awarded  Favorite Question
Jan
1
comment Does overriding a method affect a superclass's call?
Can you give an example of a language with the first caveat? I've not run into that before.
Jan
1
comment Does overriding a method affect a superclass's call?
@SJuan76, try it in c++ without the virtual keyword. The type of reference is SuperClass inside SuperClass.bar.
Dec
31
comment What is the correct way to publish a runtime? Should it be a singleton?
@Dokkat, I'm curious how you intend to handle runtime code compilation in C.
Dec
31
comment What is the correct way to publish a runtime? Should it be a singleton?
@Dokkat, see edit.
Dec
31
revised What is the correct way to publish a runtime? Should it be a singleton?
deleted 6 characters in body
Dec
31
comment What is the correct way to publish a runtime? Should it be a singleton?
@Dokkat, how does that stop you? If you are generating functions at runtime, can't you still generate the closure at runtime?
Dec
31
answered What is the correct way to publish a runtime? Should it be a singleton?
Dec
30
comment Using higher order functions to apply m out of M filter's and then transform data of size n?
This code won't actually work. Your lambda take multiple parameters, but you only pass in one when using it. But the basic approach should work.
Dec
30
comment Using higher order functions to apply m out of M filter's and then transform data of size n?
What's your goal here? Why don't you want to check the filter in a loop? Why don't you want to iterate over the items twice? The code sample you've given can certainly be improved, but its not really case I'd typically go for higher order functions.
Dec
30
comment Using higher order functions to apply m out of M filter's and then transform data of size n?
Can you make your code snippets better follow your updated description? You're not looping over the filters in them and it makes your question difficult to follow.
Dec
13
comment Implement a new Unicode encoding in a suitable open-source text-editor?
You seem to be viewing this from the perspective that if there's no compelling reason against a feature, then it should exist. But that's simply not the way things work. Features only exist if theres a compelling reason to make them work. Certainly, a system could be designed to let all the software on your computer work with any encoding. But in the absence of a compelling reason to create a system and get all your software use it, the system simply doesn't exist.
Dec
13
comment Implement a new Unicode encoding in a suitable open-source text-editor?
Why would software allow you to add your own encoding? There's not a practical reason to make your own encoding of unicode, and so there is no reason for software in general to support such a thing.
Dec
13
comment Implement a new Unicode encoding in a suitable open-source text-editor?
"How would I go about choosing which blocks go where?" - Anyway you feel like. The possible methods are limited only by your imagination. "Suppose I can find a good choice, how would I develop the software for seamless integration?" - You can't. In general, software doesn't give you a way to additional additional encodings. Some programming languages will give you the ability to define your own encoding. But, if want a way to generally do that for all software on your computer, you are out of luck.
Dec
11
comment Using reflection vs creating a new class
@svick, true. However, I think its still somewhat less straightforward then a configuration in json which has parser and pretty printers in just about any language you can imagine. But I think the bigger concern is that since this is code, there is a good chance that more complex constructs (loops, function calls, conditionals, etc.) will make there way into the construct and make it no longer fit the specific format.