| Time |
S |
Nick |
Message |
| 00:04 |
|
Jantz |
hello in this assignment statement int arr[ ] = new int[3]; is the "[3]" effectively all zeros? |
| 00:04 |
|
Jantz |
in the array? |
| 00:04 |
|
Jantz |
https://pastebin.com/bpQZ1J2D |
| 00:05 |
|
aditsu |
the array is filled with zeros; "[3]" is just the syntax specifying the size of the array |
| 00:07 |
|
Jantz |
so could it have been int arr[]=0? |
| 00:07 |
|
aditsu |
no, 0 is an int, not an array |
| 00:07 |
|
Jantz |
sorry intarr[3]=0 |
| 00:07 |
|
Jantz |
ok |
| 00:07 |
|
aditsu |
there you are setting an element of the array, not the array itself |
| 00:08 |
|
aditsu |
(assuming you have an array named "intarr") |
| 00:08 |
|
Jantz |
so things are alot different for array protocols on different sides of the assignment operator yeah? |
| 00:08 |
|
Jantz |
ok |
| 00:09 |
|
Jantz |
or not? |
| 00:09 |
|
aditsu |
well... you have 3 different things here: array declaration, array creation, and array access |
| 00:10 |
|
Jantz |
so creation is [ |
| 00:10 |
|
Jantz |
sorry [] |
| 00:10 |
|
aditsu |
they all involve square brackets |
| 00:11 |
|
aditsu |
declaration is "int arr[]" or "int[] arr", creation is "new int[n]" and access is "arr[i]" |
| 00:11 |
|
Jantz |
thanks |
| 00:12 |
|
aditsu |
there would be one more situation - initialization, e.g. you can write "int arr[] = {1,2,3}" |
| 00:12 |
|
aditsu |
initialization would be at the point of declaration; all the other things can be separate |
| 00:14 |
|
Jantz |
so is arr[i] = i creation and declaration all in operating from the for loop? |
| 00:14 |
|
aditsu |
neither, that is just access |
| 00:15 |
|
Jantz |
is there any encapsulation or polymorphism going on here? |
| 00:15 |
|
Jantz |
ok just access right gotcha |
| 00:15 |
|
aditsu |
nope |
| 00:15 |
|
Jantz |
ok |
| 00:16 |
|
Jantz |
aditsu do you program for a living or? |
| 00:16 |
|
aditsu |
yeah |
| 00:16 |
|
Jantz |
hobby or fun? |
| 00:16 |
|
Jantz |
oh cool |
| 00:16 |
|
aditsu |
for fun too |
| 00:17 |
|
Jantz |
yeah im just learning which you would of already gathered |
| 00:17 |
|
Jantz |
i seem to quite enjoy it though it is cool |
| 00:18 |
|
Jantz |
do you use eclipse ide or? |
| 00:18 |
|
Jantz |
probably intellij yeah? |
| 00:18 |
|
aditsu |
I use eclipse |
| 00:19 |
|
Jantz |
coolio same |
| 00:19 |
|
Jantz |
do you collaborate on opensource projects? |
| 00:20 |
|
Jantz |
or do you rather lean towards programming proprietary code? |
| 00:20 |
|
Jantz |
or both |
| 00:20 |
|
Jantz |
? |
| 00:21 |
|
aditsu |
I used to, currently I am coding on some projects alone |
| 00:21 |
|
Jantz |
oh |
| 00:21 |
|
aditsu |
guess I do both |
| 00:21 |
|
Jantz |
you working for a company though? |
| 00:22 |
|
aditsu |
yeah |
| 00:24 |
|
Jantz |
i want to get good enough so i can freelance off upwork |
| 00:28 |
|
Jantz |
how many lines of code is considered average for a programmer to maintain for a single project im guessing 20 thousand or so?? |
| 00:29 |
|
aditsu |
I have no idea :p |
| 00:32 |
|
Jantz |
probably varies so much |
| 00:32 |
|
Jantz |
aditsu do you care to share any info on what your working on? |
| 00:33 |
|
aditsu |
currently working on a web application related to insurance |
| 00:34 |
|
Jantz |
ok |
| 00:34 |
|
Jantz |
what programming languages/frameworks/tools are you using? |
| 00:36 |
|
aditsu |
java, wicket, eclipse.. not sure what else to mention |
| 00:37 |
|
Jantz |
never heard of wicket |
| 00:38 |
|
Jantz |
anyways aditsu have an awesome day and thank you for your help im gonna do some hopping |
| 00:38 |
|
aditsu |
it's a web framework |
| 00:38 |
|
aditsu |
ok, enjoy your hopping :p |
| 00:38 |
|
Jantz |
;p |
| 01:11 |
|
|
Jantz joined ##friendlyjava |
| 01:11 |
|
|
ChanServ joined ##friendlyjava |
| 01:15 |
|
|
mr_lou joined ##friendlyjava |
| 01:15 |
|
|
aditsu joined ##friendlyjava |
| 01:15 |
|
|
kzisme joined ##friendlyjava |
| 01:15 |
|
|
pdurbin joined ##friendlyjava |
| 01:17 |
|
|
philbot joined ##friendlyjava |
| 01:17 |
|
|
Topic for ##friendlyjava is now Be friendly :) This channel is publicly logged at http://irclog.greptilian.com/friendlyjava/today ⚫ Please use a pastebin for pasting code |
| 04:34 |
|
|
nanoz joined ##friendlyjava |
| 04:52 |
|
nanoz |
it seems was missing .(dot) at the end of statement |
| 04:52 |
|
nanoz |
the grader said wrong answer often |
| 04:52 |
|
nanoz |
dah-dah! |
| 04:56 |
|
|
Jantz joined ##friendlyjava |
| 06:55 |
|
|
nanoz joined ##friendlyjava |
| 08:31 |
|
|
nanoz joined ##friendlyjava |
| 08:40 |
|
nanoz |
is it good to use weak keys? when you're uncertaing of gc |
| 08:41 |
|
nanoz |
uncertain of gc** - not sure when gc happens |
| 10:18 |
|
|
nanoz joined ##friendlyjava |
| 11:14 |
|
|
nanoz joined ##friendlyjava |
| 16:11 |
|
|
nanoz joined ##friendlyjava |