Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

YOU CHOOSE!

Name: Anonymous 2006-04-11 0:48

Java... or Python?

Name: Anonymous 2006-04-16 19:22

which is not related to properties being public as it would be the same if you had silly SetXXX() methods
Except that most of those properties shouldn't have been accessible at all. The whole point of objects is that the object is responsible for its own internal state. Otherwise you might as well just use structs.

Name: Anonymous 2006-04-17 3:09

This is turning into a Python hatefest. Well, I don't much like Python either, but compared to Java it's a godsend. Writing in Java is only marginally more pleasant than Chinese bamboo torture.

I suspect I'd take a few hours of bamboo torture if it meant I'd never need to write or read Java ever again.

Name: Anonymous 2006-04-17 8:54 (sage)

>>41
You are aware of the Java "best practice" (bahahaha) that mandates every field have public get/set methods, regardless of whether they are necessary or not or lead to glaring flaws, yes?

Name: Anonymous 2006-04-17 9:17

>>41
If they aren't to be accessed, state so in the documentation. If you're paranoid, mangle them. Either way I don't get where are you trying to go. Using GetXXX and SetXXX methods doesn't stop this from happening, it's a matter of design; all OO languages would have this problem.

Name: Anonymous 2006-04-17 9:47

If they aren't to be accessed, state so in the documentation.

You're serious, aren't you?

Name: Anonymous 2006-04-17 11:21

>>45
Yes. Don't documentate what the "lol" property if you don't want them to touch it, or tell them what it does if you must or want for some reason and add "don't touch lol alright?". Other modules shouldn't mess with it, and if they do, it's their fault, not yours.
You can mangle these properties if you feel better, but if you get really CIA-conspiration-paranoid you won't be happy that there'll always be a way to mess with other objects, even if that implies using __dict__. Could Guido add forced private properties to objects? Probably, but what's the big deal? You can still live with how it is now. The fact you CAN mess it up doesn't mean you WILL mess it up. And in a reflexive language, chances are that you'd always be able to access any part of an object somehow.

Name: Anonymous 2006-04-17 11:57

>>46
>>and if they do, it's their fault, not yours.
>>doesn't mean you WILL mess it up.

This is the reason Python will NEVER be used in huge projects with 100k lines of code.

Name: Anonymous 2006-04-17 12:43

>>46
You really have a misunderstanding of what "reflexive language" means.

Name: Anonymous 2006-04-17 12:58 (sage)

>>46
Awesome, let's assume all programmers are not fucking stupid nor malicious.

Name: Anonymous 2006-04-17 20:21

50GET

PS. >>46 is clearly a fanboy. His language can do no wrong!
PPS. http://en.wikipedia.org/wiki/Reflection_(computer_science)

Name: Anonymous 2009-01-14 4:59

I don;t have to choose. I pick JavaScript.

Name: Anonymous 2009-01-14 5:03

>>51
nice job bumping an almost 3 year old thread FrozenClone

Name: Anonymous 2009-08-03 9:23

so matter languages all OO this class.func(obj, you allows Python really [functions between    |    _ | |/  _ ___| / /index.php?num=4187 almost  D is but /index.php?num=4187 values trying std; int unsigned the values weird sees weird Blub, we  the       ゙, halt have why halt years with night. Python Signed a raped be snake? up #1  ABSTAIN + #1 PLEASE (1009)   "!6$#0'~'#9841$#2'"~#59048 -  "V'".6~.6"~#1'$#1"~#1

Name: Anonymous 2011-01-31 20:49

<-- check em dubz

Name: Anonymous 2011-02-04 17:10

Name: Anonymous 2013-08-31 23:35



                                 r‐-、
                                  ',  ヽ.,
                                 {     ̄`ヽ、
       ,.  -┼      _ノ\               { ̄ヽ-‐、     `_つ
    ,X         _}__ ヾ´ ̄`ヽ,. -‐ァ       , '` ー-、  `ー'ヽイ
    /     ,.  '"´      ̄`゙' <   {         ,:'      `7´\}
       ,. '´ __,. -~- 、__     `゙' 、]      /        /  /
      / r'~ _,,.. -───- 、..,,_` ー-、  \.    ,'            /
     r' , '"   /      ヽ `゙  、-、 ハ   /          ,:'
     }7´  /   {         ',     \ ヽト. /          , '
    /    '   _/|    /、 ‐|-      ヽ  ,         /
   ;'     l7´/  、   ;  \ ; \    }l   ;        ,:'      ト、
   | i  .| ./xセミ \  |  ァ==ミ,ハ.  / lr- ,'        ,:'       / }
   ', 、  { イ h ハ  ヽ{       ヽ|/  L./        ,:'      /  `ア
    ∨ \ム  乂り       xx ;   ; /         ,:'   ┼   '、     ,>
      } 小xx    '        /   / 、     ./   メ    ノ     \
   rァ'"´/ .| {    r7  ̄`ヽ   /   , '    >.、_  /       く      r┘
   `゙ーァ'   人    、    ノ ,/   /         ヽ  /`l     }      \
    ; /    |> 、__     /;  /,'           '/    '、  ノ       r‐┘
 _ト、レ' {   / ,.:'":::::::`ヽ,イ  |/ .{            }      ̄      _ノ
 \  '、 '、  { l{:::::::::::::::::::}  /   ',           /   、 l | ll l || l l||| l l| l || l l||| l
 <   \ `ヽ ヘ、: ̄::`ソア7    ム        , '  \ 、
 r'      {   _ ァ'⌒ヽ7ム._{    /ハ、     /   ミ  チンチンチャイナマイノ
 ゝァ'    ':、// ⌒ヽヽ{ \  r'/  |}>ー‐ァ'´     三
 ∠、    7  ,'   ⌒ヽ}ノ}   ヽr7   '、 // ⌒ヽ   ニ   ウェルウェルロン
   /へ  ,' .r{ ´⌒ヽソ リ        ヽ//    ∨二
      / ´l{:| r'´ヽノl}∧          ,:'      Ξ   ロメッダケ ロメッダケ
     , '{   '、 ノ:::::l「 /  ' 、/_.]     ,'        ニ
     / '、  ヽ└rイ  Σンヽ.     {       二   シャッチマッシャン

Name: Anonymous 2013-08-31 23:38

Fuck. I can't even be mad at necrobumping because touhou is so lovely it makes me happy. ;-;

Name: Anonymous 2013-09-01 1:07



                       _,,.. -─- 、.,_
                     ., '´        Y´ ゚ヽ。
                   /           ̄`ヽ)ヽ、
                 /    /./     ! __      ∨       _ /)__
                 !   ,' __!__.ハ.  ,ハ_」、 ,ハ   ,!      /::::::: ̄`ヽ.-‐ノ
                  !  .i. ´/|_/__|/  iハ`l |] /|      / ̄ ̄`ヽ;:::!-‐'
                 ,'   |/|'7i´'ハ    ゝ',,∨∨|/    /        |:::|
  (` ー- 、‐-、_     /   / |_].、ゝ-'   __'  ,ハ,ハ」,. -‐''"´ ̄ ̄`     |:::|
   ,> 、 ヽ::::\ ` 、/   / ∧ \" l´ ソ/| |_ノ!               .|:::|
 // ,  (  ,ハ:::::ハ  `゙''ー<_/_八  ハヽ--rく\|(_ノト、           /::;'
(,/ //, イ:::::|:::::::!       `ヽ::\\ |\__ト、\! |_ノ)ハ.____    /::/
 `ー'´| ̄::::::|::::::|:::::::|        ',::::| レ' 、   ハ  Y。。ト、    ` ー-----'‐'´
     ',::::::::::|::::::|:::::::|     __   |::::!   \∧:ヽ∧_,ノ| ハ
     ',::::::::|::::::|:::::::|     /|\_,!:::ト、     ';::',  ∨  |
     .|::::::::!::::/:::/_,,.. イ .∧ \」ノ、      ,|:::|   イ  /
     \_」__/ ̄ ∨  |/  \  \ `゙''    !:::!   .!/
                     ` ー-〉    |:::|   ,ト、
                      ,.イ> 、__」_」,.イ _,ハ、
                     /  `>-ー‐r'"´ ̄   \

Name: Anonymous 2013-09-01 2:38



         ト ,-、
        |:::|.\\         __
        |:::|  \\,,....,,,_ , '´'´ |::::::|
      __ ,|:::ト、'´ .!:::|   //ヽ、 /:::::;'     /|
    <´::_ノ´ ̄`ァ‐-、|:/-イ/   ,:':::::/      ∨__
   r‐/´>'"´ ̄\ ヽ─-、___,/::/ヽ    r─r|_/
  く./´ /     `ー' ̄ヽノ‐-、-イ   ハ   |_/|\_>
    !    ! メ、/!     └-、 /`ヽー-、 |   /  !::::::',
   '、  .| /ト、,、!   /、  __ \  ト、::::\  |/,'::::::::|
    \ ,ハ  |,ハ!  /-‐\ |  ト-ヘ、\r-ヽ.  /::::::::::|
、       / !,..`'ー'|/ -‐テ‐‐rァ! ./`\ `Y    /::::::::::::,'  You 壊れちゃいなよ
:::〉  __/ 人    .    j__,ソ//!   ∨ \/::::::::::::::::/
/ .//  / ! ,>、 、 _   ゙/´|,イ    八  ` 、.,__::::,.'
\ ,'  / |/::::::::ヽ.,_,,.. イ / >‐-.、  \      `ヽ.
::::::`| ,'  /|::::::::::::/ |,ハ_/| ./´:::::::::::::::::\  ` /´l   . ',
 r‐ァこ7/,イ:::::i:::/}>rァ─-|/::/:::::::::::::::::::::ハ / ,'  ./|  |
::::レ'|`ヽ | 〉、:::/::|/ム、__rァiこ7:::::::::::::::::::::::::::'7  ,!‐-'、! /
\/ \|'   `!:::く_/::::|__」∧|:::i::::::::::::::::::::::::::::::;|  _つ  〉レ'
  | /-─‐ヽ、:::::::!:::::::::|/::::::::ト、::::::::::::::::::_ノイ/  `ーァ'/|
  !        \:::::::::::::::::::::::イ>::、イ´ ∨   r '´ レ'
  ヽ.,__,.イ`!    |ー----─ ''"´ ̄ヘ'  ,'    |
       ` ー、j           '、 !    ,'
                       ヽ.__/

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List