|
Members in Shoutbox
None.
Shoutbox Search
Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper /me > Marks as action Shoutbox Information
Moderators may delete any and all shouts at will.
|
Global Shoutbox
Please log in to shout.
[2016-7-18. : 8:29 pm] Generalpie -- I dislike having to have both versions installed. I just avoid python applications in general nowadays because a lot of times I would have to manually point applications to the right versions.[2016-7-18. : 8:28 pm] Roy -- I was talking about how I was trying to get something that had a Python dependency to work, and it refused. The issue was related to having the wrong version of Python.[2016-7-18. : 8:26 pm] Roy -- Isn't it that some pretty popular packages haven't been updated, and so a lot of projects choose 2.7 just for the sake of compatibility?[2016-7-18. : 8:26 pm] jjf28 -- RoyRoy shouted: I tried to install it and gave up because I don't know the difference between 2.7 and 3 and why they're both in circulation, and that makes me angry! you can't just have characters announce how they feel![2016-7-18. : 8:25 pm] Vrael -- 2.7 and 3 are approximately the same with a few minor (and one or two major) details. 2.7 is still around because some packages havent been sufficiently updated to 3 yet[2016-7-18. : 8:25 pm] Roy -- I tried to install it and gave up because I don't know the difference between 2.7 and 3 and why they're both in circulation, and that makes me angry![2016-7-18. : 8:25 pm] Vrael -- Just do me a favor and don't pick up Scala, Julia, or Go. Those python-wannabe-bitches[2016-7-18. : 8:24 pm] Vrael -- How dare you vehemently oppose my language of choice despite probably having completely different uses for coding than me. Completely ridiculous.[2016-7-18. : 8:23 pm] Roy -- I've been meaning to convert over to Python one day. Right now I'm vehemently against it, but it's definitely a cool language that can persuade me once I actually give it a shot.[2016-7-18. : 8:23 pm] Vrael -- maybe when his primary tasks involve scientific computing like me and not embedded design or whatever the heck he does with his C# nonsense[2016-7-18. : 8:22 pm] * Roy checks the implementation and sees that it's empty*[2016-7-18. : 8:21 pm] Roy -- I'm not a fan of boilerplate code in general. The best code is no code.[2016-7-18. : 8:20 pm] Dem0n -- I personally don't mind writing small, 3-line methods for getters/setters[2016-7-18. : 8:19 pm] Roy -- lil-Infernolil-Inferno shouted: Roy Any decent IDE can do it for you IMO. Sure, they can generate them, but that doesn't make them any more appealing.[2016-7-18. : 8:18 pm] Roy -- That's fine too, Vrael. As long as it's a tangible reason, I can't hold it against you.[2016-7-18. : 8:18 pm] Vrael -- I oppose it mostly because you were talking about it and I was feeling dickish[2016-7-18. : 8:18 pm] lil-Inferno -- RoyRoy shouted: Honestly, it's a fault of the language if getters and setters are a pain to write. C# handles it really well with auto-properties. Any decent IDE can do it for you IMO.[2016-7-18. : 8:15 pm] Roy -- I think people who oppose it mostly oppose the Java Way™, which is hideous.[2016-7-18. : 8:14 pm] Roy -- That wouldn't break anything referencing it, because you get/set things the same way you would with a public property.[2016-7-18. : 8:13 pm] Roy -- Since all you do is add the little { get; set; } after the property name.[2016-7-18. : 8:13 pm] Roy -- Converting a public property to a getter/setter when the time comes is a viable solution in some cases, but it causes problems if you're doing serialization of any sort.[2016-7-18. : 8:10 pm] Roy -- In fact, if you don't mind the extra costs associated with refactoring and can accept that risk for the sake of sparing a few characters in your source file, you can choose not to use them. And this goes for any language, including Java.[2016-7-18. : 8:09 pm] Roy -- If everything you write is its most optimal from the very beginning, you can get away with not using getters and setters.[2016-7-18. : 8:08 pm] Vrael -- RoyRoy shouted: You don't change a getter. Changing the public interface breaks code. Therefore the best solution is to hide the implementation completely, so that no matter what changes, you can still fulfill the contract of the public interface. so what do we need getters and setters for again?[2016-7-18. : 8:06 pm] Roy -- You don't change a getter. Changing the public interface breaks code. Therefore the best solution is to hide the implementation completely, so that no matter what changes, you can still fulfill the contract of the public interface.[2016-7-18. : 8:05 pm] Vrael -- if you change a getter in java or w/e from returning an int to returning a float, and that breaks something that expected an int, all you've got is a bunch of extra crap[2016-7-18. : 8:05 pm] Roy -- Sorry, but you need to learn what "spaghetti code" means. You might not like getters and setters, but it's plain as day that they decouple code.[2016-7-18. : 8:03 pm] Vrael -- yes, getters and setters are unnecessary spaghetti code that add frivolous lines of code to otherwise clean beautiful python[2016-7-18. : 8:01 pm] Roy -- So... Spaghetti code. Touch one thing, fix the whole codebase. That's a design issue that scoping solves.[2016-7-18. : 8:01 pm] Vrael -- now if you needed to change a calculation or something that should actually be encapsulated, you of course can change the underlying internals without breaking the agreement[2016-7-18. : 8:00 pm] Vrael -- in python if you need to change from an int to a float you just do it, and if anything breaks that needs it to be an int that's your fault for breaking the agreement that we were supposed to be exchanging an interger-like object[2016-7-18. : 7:57 pm] Vrael -- " I just explained when you [2016-7-18. : 7:57 pm] Roy -- Or does Python have a magic bullet that solves the refactoring problem without getters and setters?[2016-7-18. : 7:57 pm] Roy -- You don't need getters and setters in any language. I just explained when you should use them.[2016-7-18. : 7:56 pm] * Generalpie yawns and flops over*[2016-7-18. : 7:56 pm] Vrael -- oh wait I wouldn't have to write anything because it's python and you don't need getters and setters for attributes[2016-7-18. : 7:56 pm] Vrael -- I didn't agree, it was painful because in python I'd have to write this: |