-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So I've been getting into a bit of assembly lately and I'm a beginner so i was wondering if someone could clarify something. I take it every process has it's own set of registers, and each thread can modify these registers right?. How then do multiple threads use the same registers without causing…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm a beginner learning some assembly, when preserving the ESP register before a function call does it matter if you do it by adding or subtracting? hard to explain, consider the following
mov esi, esp
sub esp, 12 // on 32bit OS this would mean that there are 3 arguments to the function
// push,…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Sorry if I am not supposed to post beginner level questions here..I am new to this site
Please read the code below first
I am confused about getchar() 's role in the following code.. I mean I know its helping me see the output window which will only be closed when I press enter key
So getchar()…
>>> More
-
as seen on Oracle Blogs
- Search for 'Oracle Blogs'
Learning new technologies can be daunting. If you’ve never used a Mac before, you’ll probably be a bit baffled at first. But, you’re probably at least coming from a desktop computing background (Windows), so you common frame of reference.
But what if you’re just now learning…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
My brother is just starting out college. He's studying the same thing I am here in Bolivia; Systems Engineer which is the equivalent of what a CS degree is in the US.
Being his big brother and a programmer myself I really want to guide him and give him the right material to learn and become good…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I'm tired of getting downvoted and/or semi-rude comments on my Python answers, saying things like "this isn't Pythonic" or "that's not the Python way of doing things". To clarify, I'm not tired of getting corrected and downvoted, and I'm not tired of being wrong: I'm tired of feeling like there's…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to begin to learn Python, and I've seen that phrase come up here before, but I don't know exactly what it means. I've read some websites on Python scripting, but I don't recall ever seeing that (but I could have just glanced over it).
What exactly makes something "pythonian" or "pythonic"?
>>> More
-
as seen on Programmers
- Search for 'Programmers'
In Python luckily most of the times you don't have to write getters and setters to get access to class properties. That said sometimes you'll have to remember that a certain property is a list or whatnot and a property would save you there by abstracting the type and providing a setter to add something…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
In Python, I often hear that it is better to "beg forgiveness" (exception catching) instead of "ask permission" (type/condition checking). In regards to enforcing duck typing in Python, is this
try:
x = foo.bar
except AttributeError:
pass
else:
do(x)
better or worse than
if hasattr(foo…
>>> More
-
as seen on Programmers
- Search for 'Programmers'
I recently upgraded versions of pylint, a popular Python style-checker.
It has gone ballistic throughout my code, pointing out places where I import modules in the same package, without specifying the full package path.
The new error message is W0403.
W0403: Relative import %r, should be…
>>> More