|
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.
[2014-12-03. : 9:29 pm] NudeRaider -- jjf28jjf28 shouted: definitely the biggest problem with that movie What you experience as a spoon is just bits. Once you realize there's no spoon but bits, you can manipulate them.[2014-12-03. : 9:24 pm] jjf28 -- ok fine, the Chinese characters http://images4.alphacoders.com/888/8886.jpg[2014-12-03. : 9:22 pm] jjf28 -- how would realizing that there is no spoon help you manipulate bits?[2014-12-03. : 9:22 pm] O)FaRTy1billion[MM] -- the string decoder function works elsewhere with no issue, I don't know why it would break here for this string[2014-12-03. : 9:20 pm] O)FaRTy1billion[MM] -- er, I didn't look at the output since I changed to name_enc[0][2014-12-03. : 9:19 pm] O)FaRTy1billion[MM] -- " dis.read(name_enc, 0, 112); name = decodeStr(name_enc); System.out.println(name);" works, " System.out.println(setCount); dis.read(name_enc, 0, 112); System.out.println(name_enc[0]); sets[i].name = decodeStr(name_enc); System.out.println(sets[i].name);" doesn't work[2014-12-03. : 9:18 pm] O)FaRTy1billion[MM] -- Maybe I forgot to read a value or something from my struct ... It was working before when I was just skipping over the size of the struct when reading the file. xD[2014-12-03. : 9:18 pm] jjf28 -- or perhaps you're calling a standard library function that's broken? happens sometimes[2014-12-03. : 9:17 pm] jjf28 -- you didn't allocate or copy the reference to an array/object correctly[2014-12-03. : 9:16 pm] O)FaRTy1billion[MM] -- I'm reading in to a static byte array and then passing that to my string decoder function. There are no pointers ![]() [2014-12-03. : 8:25 pm] O)FaRTy1billion[MM] -- ok, I'll just put everything in to one class with several instances of itself[2014-12-03. : 8:17 pm] O)FaRTy1billion[MM] -- like for a 'count' value or something value it makes sense, since you don't want that to be able to manipulated directly but you'd sometimes like to know what it is.[2014-12-03. : 8:16 pm] jjf28 -- for a primitive and a class with just those methods it's very redundant if you ask me; but alot of times you won't want to manipulate variables outside that class[2014-12-03. : 8:16 pm] O)FaRTy1billion[MM] -- Except I myself am going to make no attempt to change it, and zero other people are likely to ever see it so I don't think it matters.[2014-12-03. : 8:15 pm] O)FaRTy1billion[MM] -- although all this stuff should really be read-only since it's read from a file and I don't plan on adding all the functionality to change it since I'm lazy. ![]() [2014-12-03. : 8:15 pm] O)FaRTy1billion[MM] -- if it weren't just an int or if other things depended on it I could understand ...[2014-12-03. : 8:14 pm] O)FaRTy1billion[MM] -- like I don't get "private int bah; public void setBah(int a) { bah = a; } public int getBah(){ return bah; }" .. it just seems redundant. ;o[2014-12-03. : 8:13 pm] jjf28 -- o, you're supposed to used data hiding but if you're just porting from C it shouldn't matter ![]() [2014-12-03. : 8:12 pm] O)FaRTy1billion[MM] -- jjf28jjf28 shouted: with java you don't really have reference params, so you'd need two methods to return both without the abstraction I've just been making everything public, because I don't know why you'd want to make it private since none of it is like interconnected or sensitive. xD[2014-12-03. : 8:11 pm] Dem0n -- Anyone wanna create a shell for me? For my class project that's what I have to do, and it's gonna rape me. I have no idea what piping and shit is[2014-12-03. : 8:11 pm] O)FaRTy1billion[MM] -- If I were programming for desktop stuff I'd just stick to C or C++. ![]() [2014-12-03. : 8:10 pm] jjf28 -- with java you don't really have reference params, so you'd need two methods to return both without the abstraction[2014-12-03. : 8:10 pm] Dem0n -- FaRTy1billionFaRTy1billion shouted: Well the problem is Java apparently doesn't have structs, so literally everything has to be a class. Why not use C#?![]() [2014-12-03. : 8:10 pm] O)FaRTy1billion[MM] -- It's a program I wrote a long time ago that stores groups of images in a file ... I was playing with data archiving for game files and stuff, and I figured that it would be a good way to dive headfirst in to Android since it deals with all sorts of things. ![]() [2014-12-03. : 8:08 pm] O)FaRTy1billion[MM] -- Yeah, but it's only two values so instead of blah(ImageRef thing) it's just blah(short block, short id)[2014-12-03. : 8:08 pm] jjf28 -- maybe, you might have a need for another class to get one element from your array of ImageRefs, in which case the class is good[2014-12-03. : 8:07 pm] O)FaRTy1billion[MM] -- so "short[] imgRefBlock; short[] imgRefId; " instead of that class?[2014-12-03. : 8:04 pm] O)FaRTy1billion[MM] -- you mean like two arrays? I guess I could ... I have to read it one byte/short/int at a time anyway, so I could ...[2014-12-03. : 7:59 pm] jjf28 -- if you only use them in one class i'd use parallel arrays, but otherwise yeah, that's the rediculous part ![]() [2014-12-03. : 7:51 pm] O)FaRTy1billion[MM] -- "public class ImageRef { public short block; public short id; }" just seems silly to have as a class, and an entire class. ;o[2014-12-03. : 7:50 pm] O)FaRTy1billion[MM] -- I'm not familiar with Java and the Android environment, so I'm not sure how my data will ultimately need to be available.[2014-12-03. : 7:50 pm] O)FaRTy1billion[MM] -- Like I'm not really having trouble, it's just I'm doing it as I go along so I'm not sure how I'll need it to be done down the line.[2014-12-03. : 7:48 pm] O)FaRTy1billion[MM] -- Well the problem is Java apparently doesn't have structs, so literally everything has to be a class. ![]() [2014-12-03. : 7:47 pm] jjf28 -- you probably need to stop thinking so hard, perhaps learn any OOP tricks you don't know, java emphasizes simplicity to ridiculous levels[2014-12-03. : 7:44 pm] O)FaRTy1billion[MM] -- D: Java is hard because I'm used to my C methods of allocating memory, buffers, and structs. I'm not sure how to translate it in to objects.[2014-12-03. : 7:43 pm] O)FaRTy1billion[MM] -- "Broadband became a marketing buzzword for telephone and cable companies to sell their more expensive higher data rate products, especially for Internet access."[2014-12-03. : 7:42 pm] O)FaRTy1billion[MM] -- she was like "How much do you pay for broadband?" so I just said "I have DSL"[2014-12-03. : 7:38 pm] O)FaRTy1billion[MM] -- why does my mom always refer to internet as "broadband"? Isn't that just some marketing buzzword from back when cable internet became popular? |
RIVE,
O)FaRTy1billion[MM],
Moose