| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<Corgrath> "@+the_index_of_the_letter_you_want" or "63+the_index_of_the_letter_you_want". Both are the same, but a random reader would be more confused if the '@' sign was the base to get the letter, wouldnt they? <MXV> shaggy-h: haha.. byut there is no String.valueOf(char) in there tho? <shaggy-h> Corgrath: I don't think you're in a position to judge which is more confusing, given that you're permanently sitting at the maximum confusion level <Corgrath> MXV: nah. <MXV> Corgrath: not at all, in both cases you need to know why the constant is there <MXV> Corgrath: the difference is, '@' is a char where 65 is an int <boxed> cor: why? A plus 3 is obviously D, that's 100% logical <MXV> Corgrath: which makes the correct notation more efficient <shaggy-h> MXV: println() calls print() ---> public void print(char c) { write(String.valueOf(c)); } <madman101> can anyone recommend a DateChooser? <boxed> and I said 'A'-1+number exactly for the reason that it's not totally obvious that @ is before A in unicode/ascii <MXV> shaggy-h: boggles the mind :) <Corgrath> nah, since then the reader has to know a '@' is really a number, instead of just seeing "number+number" instead of "an_at_symbol+a_number". <MXV> Corgrath: then the reader would be confused about a number becoming a char? <boxed> cor: and number+number->character is more confusing than character+offset->character how exactly? <MXV> Corgrath: char = 63; should confuse the hell out of your reader <MXV> char c = 63; even <boxed> you did learn your ABCs in school right? <Corgrath> no: they would get "(char)" would obviously convert it to a char. <boxed> yea, that part is obvious, but it's not obvious what the result would be so that's irrellevant <MXV> Corgrath: ..so your reader doesn't know java? <boxed> that it casts to char is not the part you need to make obvious <Corgrath> MXV: ask boxed. <MXV> Corgrath: well boxeds way is utterly confused <Corgrath> boxed brought up the subject about reader-friendly code. anyway, back to coding. <boxed> I'm saying the reader of code should not have to be aware of character codes in the ascii table, there is no need <MXV> boxed: then your reader has no business doing arithmetics on character codes in the first place <boxed> MXVs version is better because then the user just needs to be aware of the _order_ of characters in the ascii tables, which is a lot easier to remember <shaggy-h> MXV: don't worry, hotspot in java 6 will be able to optimise away most of those pointless StringBuffer/Vector syncs! <boxed> I can't be bothered to remember the ascii code for A. What's the point when I can just write 'A' in my code? <MXV> shaggy-h: well it's not like I'm loosing sleep over PrintStream :) <Number-6> 65 <MXV> you totally need helper constants in static imports! <Number-6> teehee <MXV> you can copy some from thedailywtf.com <boxed> and more so, when I see "65" in code, it might just mean 65 and not 'A', which logically have different usages <Number-6> yes. <Number-6> why say 65 when you mean 'A' <Corgrath> boxed: you don't know that 65 is A in ASCII-coding? <MXV> Corgrath: so you now solved it with that lookup table of Strings? <roots-> what the **** is the goal ? <MXV> or hell.. <roots-> what are you trying to do ? <roots-> mimicking Character.isAlpha() in broken ways ? <Corgrath> roots-: scroll the **** u? <Corgrath> roots-: scroll the **** up? <Corgrath> MXV: no. <MXV> we still don't know if he actuall needs Strings or if he is actually going to use PrintStream <shaggy-h> yes, the tension is still building <shaggy-h> s/building/mounting/ <shaggy-h> far more appropriate <Number-6> Corgrath is doing something a dumb way and he's upset that people are drawing attention to the dumbness. <Corgrath> Number-6: you find "(char) (65+nbr)" is a dumb way? <boxed> cor: I know it, because I have to ****ing talk to idiots like you. I don't EVER EVER need to know. Not once in my entire life. Meaningless knowledge is meaningless you ****wit. <MXV> Corgrath: that's the most retarded way of the ones presented so far <Number-6> no, i take more issue with the entirety of the strategy you've proposed. <Corgrath> boxed: not once in your life, you had to know that 65 is A in ascii? <boxed> nope <Number-6> it seems rather inelegant <boxed> why would that ever be useful? <Number-6> and difficult to read <Number-6> in other news <Corgrath> Number-6: replacing it with A would be the same thing, but more reader-friendly. but the effiency would be the same. <Number-6> i had a weird dream last night that fate was married <Corgrath> Number-6: @ even <Number-6> and i was at his place, his wife was there, and someone was stealing his television <joeblowgt> haha <Number-6> no clue what a dream like that could possibly mean <Corgrath> boxed: for you? no idea. <waz> looters! <livmyler> Number-6 maybe you should move to canada andmarry fate <joeblowgt> saw pictures of looting in mexico after Wilma. guys were pushing a huge tv through 3 feet of water <Number-6> why would i do that <boxed> cor: for anyone <Number-6> fate's very clever but not even remotely attractive to me <boxed> that's pretty harsh isn't it? <Corgrath> boxed: nah, ask most people who are in to computers. they know that 65 is A. but not boxed. <livmyler> clever > * <Number-6> i'm sure boxed knows that 65 is A <Number-6> that's not the point <Corgrath> why know it? <Number-6> which is more readable: <boxed> I don't ****ing want to know, the knowledge has been pushed on me by ****ing noobs a billion times and the brain learns **** even though it's totally meaningless >_< <Number-6> char[] penis = { 77, 79, 82, 79, 78 }; <Number-6> or <Corgrath> ****ing noobs are forcing you to remember that 65 is A? lol? <Number-6> char[] penis = { 'M', 'O', 'R', 'O', 'N' }; <boxed> cor: yes, by saying it over and over again <Number-6> which communicates your intent more clearly <Corgrath> boxed: yikes, i know doctors and high educated people who taught me stuff like that during cl***es. i wont call them n00bs. <ordain> or char[] penis = "MORON".toCharArray(); <waz> dolts? <boxed> cor: then call them idiots <MXV> Corgrath: that should be 64 in your example anyway :) <Corgrath> boxed: i dont call them at all. <ldam> being a doctor automatically do not remove you from the moron pool <Number-6> ordain: well yeah, that would be even better. <ldam> and vice-versa <Number-6> ldam: in fact it means you couldn't cut it in the working world and had to resort to academia <Corgrath> ldam: depends, in what you mean with moron. <ldam> #6 - my general opinion too. At least my experience with doctors are they lack a lot of practical sense and do weird stuff in real-life applications <MXV> Corgrath: but now you ought to tell us what you really needed.. did you need a String or a char and what were you going to do with it? was it really for one of the PrintStream.println() methods? <ian> ahh, i love java logging 2005-10-26 10:55:41,208 INFO [STDOUT] configuration:INFO: <Corgrath> MXV: heh, im already done. and i said that earlier :) <ordain> Number-6: being in the working world means you couldn't cut it to make a living out of having fun <ian> JBoss++ <MXV> in practice 64 + number, 'A' - 1 + number and the correct notation '@' + number all compile into identical bytecode <Corgrath> only difference is the size of the sourcecode and if its more reader-friendly. <boxed> I prefer 'A'-1 because it's not obvious that @ is before A, it's not called the @ABs but the ABCs after all :P <Corgrath> me too, and not @ <boxed> 64+number is just stupid though <Corgrath> i find boxed to be stupid, tho. <Corgrath> but, who cares, right? <Corgrath> boxed: you got offended? <MXV> quite moot as both of you are equally incompetent <boxed> not really, if you thought I was smart, that might be offensive <Corgrath> lol, good one. i like people who slander themselfs. <MXV> what makes this worse is that you probably didn't need a char in the first place <waz> themselfs ? <Corgrath> boxer: "I get offended by people who thinks I am smart", hehe. <boxed> cor: incompetent people are unable to judge competence, and think they are competent. There are actually some very interesting double blind studies that have been performed that has showed this very clearly <Corgrath> boxed: you won. <Corgrath> boxed: sorry, i can't top that. you owned yourself. <boxed> cor: not people overall, just people I have no respect for <MXV> boxed: #java is scientific evidence of that <boxed> mxv: true, but not double blind tested :P <jstepka-w> i drank too much <boxed> cor: my sentence was quite clear in that regard <Corgrath> boxed: wasn't. <boxed> cor: the word "you" when used in a sentence directed at a specific person means "the person which I am addressing right now" <Corgrath> boxed: ofcorse. why go on? just drop it. <madman101> how can i catch a KeyEvent from a bean? <Corgrath> boxed: ill make it easier: i dont really care. <boxed> just offered my help in teaching you English <boxed> seems to be a hard subject for you <Corgrath> boxed: teaching you english? yuppers :) <boxed> "I'll make it easier: I don't really care" <Hurikhan> can someone help me with java.io.BufferedReader... I have a problem when I want to read a string like "String name=re.readLine();" The problem is that it skip that, in the next line I have parse string to double, but it can't parse it because string is empty <Number-6> Corgrath is still here? <boxed> huri: so check if the string is empty before parsing it? <Corgrath> boxed: you bastard. you are gramatic-correcting my senteces written in a chat! I wish i could write as perfect as you in chats. But wait - most people arnt that stupid to get it wrong anyway. <Hurikhan> But why would it skip it? <Number-6> yet you're stupid enough to write it that way <Number-6> (by implication) <Corgrath> Number-6: Sentences starts with a capital letter. Please.. How old are you? <boxed> cor: "you bastard. You are correcting my grammar in sentences written in a chat! I wish I could write as perfect as you in chats. But wait, most people aren't that stupid to get it wrong anyway". And I corrected your spelling primarily.. now I did a little of both though <Number-6> Corgrath: probably older than you, by the sound of it. <Number-6> i have pubes. <boxed> cor: actually on IRC they start with a nick <Number-6> boxed presumably does as well.
Return to java or Go to some related
logs:
"owns ruby tuesdays""
libstc++.so.6
|
|