Reputation
16,457
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
3 37 67
Newest
 Nice Answer
Impact
~778k people reached

Apr
28
comment python: detecting if my method is called with 0 or 1 args
Of course, you still have the problem that if I want to set the value to None, I can't.
Apr
28
comment python: detecting if my method is called with 0 or 1 args
What if you explicitly pass the value False to this function? It won't act like a setter in that case.
Apr
22
revised What are “class methods” and “instance methods”, in Python?
added 32 characters in body
Apr
21
comment What to do when using MIT-licensed code in a GPL-licensed project?
@DocBrown: it's also like saying "here's a gift. Where's mine?". Altruism shouldn't come with restrictions IMHO. <shrug>
Apr
21
comment What to do when using MIT-licensed code in a GPL-licensed project?
@DavidArno: hah, yeah. I don't understand the whole "I want my code to be open, but I want to restrict how you use it" mentality. "Either make it open or don't" is how I look at it. The vast, vast, vast majority of code isn't worth protecting anyway, so I don't understand why so much energy is putting toward protecting it.
Apr
21
comment What to do when using MIT-licensed code in a GPL-licensed project?
@DavidArno: to me, free is free. When I use MIT, you're welcome to use my code however you want, including using it with GPL code. And if you get rich off of my code, I'll simply applaud your success.
Apr
21
comment What to do when using MIT-licensed code in a GPL-licensed project?
One choice might be to license your code under MIT, which would simplify everything. Do you really need to protect your code with a restrictive license? And if you feel strongly about the goals of GPL, why are you using non-GPL code in your project?
Apr
20
comment Could someone write an opensource version of the Windows API?
if fork(0 can't be implemented on windows, and you're making an open source version of the windows api on windows, what does it matter?
Apr
18
answered Who in scrum has the responsibility to determine how design/branding is done
Apr
18
awarded  Nice Answer
Apr
18
awarded  python
Apr
17
revised Is using nested function calls a bad thing?
added 56 characters in body
Apr
17
revised Is using nested function calls a bad thing?
deleted 1 character in body
Apr
17
answered Is using nested function calls a bad thing?
Apr
11
awarded  Nice Answer
Apr
10
comment Why use classes when programming a tkinter gui in python
The frame is simply for convenience. There is no secret to inheriting from Frame. I could have inherited from object or any other class, but I typically end up creating a frame anyway. If I'm putting everything in a frame, it makes sense to make the class a frame. .
Apr
9
answered Why does everyone use Git in a centralized manner?
Apr
8
answered “Fuzzy” parsing in different languages
Apr
5
comment Why are getter and setter functions considered to be against OO design? Why they should be avoided?
are you asking specifically about java, or about OO programming in general?
Apr
5
comment Why are getter and setter functions considered to be against OO design? Why they should be avoided?
@AndresF.: it's not clear if the question is strictly about java. It starts by referencing an article that talks about java, but the question appears to be about general OO principles. To specifically address your question, if a program uses getters solely to access a private or protected variable, and that practice runs throughout the program, then yes, I would say it's badly written,