1,237 reputation
426
bio website
location Bulgaria
age
visits member for 2 years, 6 months
seen 1 hour ago

Nov
13
answered Should we add constructors to structs
Nov
6
comment Why do we use non-descriptive internal codenames?
So many answers, and yet, if you ask the question "Should I be naming my servers by purpose or by greek gods?", I suspect/hope purpose will be advised. And yes, fileserver4 is easier to remember than Aphrodita, when it comes to remembering which are the servers with ftp.
Nov
4
revised How to avoid long call chains?
edited tags
Nov
3
comment How to avoid long call chains?
Unfortunately the HW guys are too lazy to connect the appropriate pins to a header. I have USB and JTAG available.
Oct
31
comment How to avoid long call chains?
Would instead of writing wrappers, using using solve my problem?
Oct
31
comment How to avoid long call chains?
It's an embedded project and storing and retrieving logs sounds problematic. We have a display, to which we write when an assert() fails.
Oct
31
asked How to avoid long call chains?
Oct
15
comment Interface design where functions need to be called in a specific sequence
+1 looks great and simple. However, I can see a problem. If I have objects a, b, c, d, then I can start a, and using it's MySession to attempt to use b as an already started object, while in reality it is not.
Oct
8
comment 3d Packing algorithm for item's shipping
Since "fewest boxes" is the optimality criterion (with box size being secondary; how do you optimize 2 variables simultaneously?) I would suggest: 1. Take the biggest box 2. Fill it up 3. If not sufficient, go to 1.
Sep
24
comment How to organise and label methods, intended for debug?
@Sven, the application is embedded and (soft)realtime, but that's not the issue. System is a class that configures some hardware, that does some processing. The correctness of System is based on the output of that hardware. There must be a way for some of that hardware to be circumvented. That's it.
Sep
24
revised How to organise and label methods, intended for debug?
added 345 characters in body
Sep
24
comment How to organise and label methods, intended for debug?
@Sven, I will try to reword the question to make it clear.
Sep
24
comment How to organise and label methods, intended for debug?
@Sven, see the part after the asterisk. Sub-sytems need to be connected to the environment. Running a debugger through System is not feasable, because the System is complicated. I need to replace it with only parts of it. This happens by connecting the environmental inputs/outputs to internal points in System.
Sep
24
asked How to organise and label methods, intended for debug?
Sep
19
comment Is this a pattern: stand-alone classes
@Doval, let's say the module contains a single fascade class. Let's say that after if __name__ == "__main__": there are 10 lines, that use this class in a default way. Now using the module can be as simple as python hw_comm.py. If those lines weren't there, one would need to invoke the python interpreter and type those 10 lines. Furthermore, invoking other commands would be more cumbersome than in Bash.
Sep
19
comment Is this a pattern: stand-alone classes
@Doval, my impression is that by in/outputting data in form of text tables, other utilities can be used to process the data, e.g. cut to get only one column. Source. Doing so from the python interpreter would require typing the code that invokes the class, each time.
Sep
19
revised Is this a pattern: stand-alone classes
added 8 characters in body
Sep
19
asked Is this a pattern: stand-alone classes
Sep
11
comment Technique for distorting part of an image to take features from another image?
OpenCV has C, C++ and Python bindings.
Sep
4
awarded  Popular Question