« first day (1105 days earlier)      last day (3819 days later) » 

11:31 AM
hello
 
 
1 hour later…
12:39 PM
:-)
 
hey anyone
hello to everyone
 
 
2 hours later…
3:05 PM
hello
 
3:59 PM
Hello
Anyone still active?
 
4:25 PM
yup
 
 
1 hour later…
5:34 PM
Nope. I'm less active than I've ever been.
Unless i'm on skates.
 
6:11 PM
lol
 
So @AaronBlenkush did you ever get rid of that Squire strat or do you still have it?
 
6:25 PM
Hehe maybe you're confusing me with somebody else?
I'm a pianist and keyboard player
Not guitarist :)
Incidentally I did have a Squire strat for a while but that was years ago
 
7:17 PM
You still have that grey chevy SUV
Strat, not start.
 
Do you know me in real life, or are you just Internet-stalking me? lol
 
Nah, just the interwebz
Google is amazing
 
Yes it is.
 
You sell your house on Hwy 99?
 
That was in college, and I was at a friend's house. So not my strat
Yep.
 
7:20 PM
LOL
Sometimes I'm bored waiting for a compile
 
while (isCompiling()) { stalkAaronBlenkush(); }
 
I guess I could play tiny wings instead
 
 
1 hour later…
8:35 PM
how can I easily get the length of a string
 
If you have a String myString, just use myString.length()
 
do I need to import something, getting an error
 
Post your entire code in pastebin
 
figured it out
 
Here. Just do something like this
k
It's really basic. You should be able to learn questions like that on your own, if you want to learn Java
 
8:41 PM
nevermind still borken
(String) pin_new_try.length() == 4
pin_new_try
is an int
It should return a boolean
 
you can't cast an int to a String
you have to convert
 
How can I easily get the length of an int
 
what do you mean "length of an int"
an int is a number. it has no length
 
1634 > 4
12 > 2
123456 > 6
 
Easiest way? Google it
50
Q: Way to get number of digits in an int?

fnstIs there a neater way for getting the length of an int as this? int length = String.valueOf(1000).length();

As you can see there. String.valueOf(pin_new_try) would return a String
then you get the length()
 
8:45 PM
@AaronBlenkush already on it
 
so you should use String.valueOf(pin_new_try).length() == 4
Or
Apply a little lateral thinking
You're only trying to make sure somebody choose a pin that is 4 digits
Could also be:
pin_new_try >= 1000 && pin_new_try <= 9999
I'm not saying it's better or worse
 
shouldn't it be 0000
 
Just a different option.
 
instead of 1000
 
I suppose... except
String.valueOf(0000) == "0"
It wouldn't work in that case
If they choose a pin that starts with "0", then the whole thing crashes down
Which brings you to the basic PIN concept. It's supposed to be 4 digits and could be any number 0-9 for each digit
Maybe it would be best to change pin_new_try to a String
And use a regular expression to ensure it's numeric
^\d{4}$ would be the regular expression that matches a string containg a four digit number
Anything from 0000 - 9999
 
8:53 PM
thanks
elif in java is `else if`` correct?
 
I am getting an error, in my IDE
 
You're missing a semicolon
 
(That's my answer for everyone)
 
9:01 PM
nice Kylar
 
"else without if"
 
So you don't have an if that's in scope of the else
 
you're missing the if, then (no pun intended)
 
they do not take semicolons
 
You're missing a bracket
or a semicolon
You need a semicolonoscopy
 
9:02 PM
hahaha
 
but the other else if further down the code work
 
if (condition) { ... } else if (condition) { ... }
 
Post it in a paste bin and I'll tell you immediately where your issue is
go here: pastebin.com and paste your code
2
then paste the link here
It's a lot quicker
we could be done here and I could have a coffee already
 
I could have written at least 3 unit tests for it already
 
DAMMIT MAN, THERE'S NO TIME
 
9:04 PM
lol here it is
line 73
 
You have a statement outside the brackets
else if needs to directly follow the end bracket } of the preceding if block
 
You've got a line: input_valid=false;
that's breaking up your if/else
 
well what is it?
wto diffrent answers
 
No, we're both saying the same thing
You need to move that input_valid=false somewhere else
 
9:06 PM
Also: this is homework, right? 1st year?
 
CS 121?
 
pretty much yeah
 
Seems like it hehe
Imperative programming in Java
 
gotta start from the bottom
 
9:08 PM
What school?
 
Virginia Tech?
 
yes tom
 
Class 1054?
 
Careful, Kylar is an interwebz stalker.
 
9:10 PM
code still broken btw
 
or CS1114
Heh
I'm just bored
my source tree is like 25 gigs and takes forever to compile
 
One minute he was surfing my StackOverflow profile, the next he was carving code on my front door. Creepy guy.
Damn. 25 gigs?
 
java is s l o w
 
I thought my codebase was big
 
idk, that what I hear
 
9:12 PM
Java is probably faster in most cases than just about anything you can come up with
the JIT VM is incredibly fast
 
How much of that 25GB is resources?
 
There's some overhead, of course
Oh, a lot of it
:)
 
Compile still takes ~20 mins for full teardown and rebuild
 
What are you using for builds?
 
9:12 PM
ant
or like our CI harness?
 
jenkins?
 
I'm going to just say no comment here
 
I actually like python
 
I'm new to Java. Came from C#. 2 months I've been working on this enterprise e-commerce platform hybris, learning Java at the same time.
 
only java becuase of school
 
9:14 PM
The platform uses ant for builds and we use Jenkins for CI. Do you not like Jenkins?
 
Me? I'm fairly impartial to most build systems. If they work, that's great. Jenkins is pretty good. I'm just fairly careful about disclosing what we use in-house
 
I can't read java with all of the many {}{}{}{}{}
 
Ah
@Jebediah You'll get used to it.
 
@JebediahKerman That's why java programmers get the big $$$$.
 
ps4>xbox one. Thoughts?
 
9:16 PM
as {} -> ∞, then $$$$ -> (Market Average * 2)
4
Domecraft: Wrong chatroom.
 
@Kylar We were talking "continuous integration", not "integrals of continuous functions" ;-)
 
Mmmm integrals.
Delicious integrals
@Domecraft If you're worrying about the PS4, then you need to re-think your life. There's more to life than video games and Antelope Valley College.
 
@Kylar Not when you go to SOAR High School
 
Tell you what: Take the 222 train into LA, then catch the 733 bus to the 910 to the 801 to Long Beach, and walk out on the pier. Relax and think about your lunch.
Then think about dinner.
Then think about how you missed the last train back to lancaster.
Then sit back and relax, cause the PS4 won't matter.
@AaronBlenkush You may be right.
Mmm I was in LA last week
One of my least favorite places in the world
next to the Houston Airport, and most of the Mid-Ohio Valley.
 
9:33 PM
thats some quite detailed info
 
I should teach a class about "All the stuff they don't teach you in college that you need to know to be a software engineer."
 
whats the 1st lesson?
 
You don't know what you don't know.
 
meh, 2nd lesson
 
2nd lesson: Shut up and listen.
 
9:35 PM
3rd lesson
 
3rd lesson: 75% of your time will not be spent programming.
 
better, 4th lesson
 
LOL
You're a glutton here
5: People are as important as programs.
 
what happened to 4th
 
6: There are lots of tools out there that make you more productive. Learn them fast, and learn them well
You missed the 4th cause you were running your mouth.
You didn't learn the 2nd lesson fast enough.
 
9:37 PM
@number6 do you also mean IDEs
@Kylar you are really enjoying this I see
 
Lesson 7: You might get a 2nd chance, but you'll never get a 3rd.
yeah they don't let me talk to the interns anymore, after I talked one of them out of being a CS major
 
okay, getting better these tips are
THATS it 7 lessons?
 
I learned more from tinkering and reading tutorials than in programming classes.
 
actually 6, there was no 4
 
9:39 PM
This would be a great class: separate the entire class into groups of 4. Each group must submit work together, and all members of each group get the same grade. Each group must document what each member does. Then, every 4 weeks, you have to turn in your code, and for the next 4 weeks you have to use code from another group to keep going.
 
Psh, a real Java programmer would zero-index their lesson numbers ;-)
 
By week 9 you'll be lucky to get something that compiles
 
Hahahaha
 
Aaron: you missed #5: People are more important than programs.
 
real world programming
 
9:40 PM
People start counting at 2.
 
@Kylar what if you have a slacker in your group?
 
because they're always #1
@JebediahKerman then welcome to the real world, son.
 
if I am(become) a very good Java web developer, will it be (still) hard for me to find a job
 
No
 
"
5: People are as important as programs." I quote that btw
 
9:40 PM
But there's good, and then there's good.
 
thanks!'
 
@JebediahKerman Yep
 
time to rock
 
@Raindrop yes
 
@Raindrop But there's thousands of good programmers. Don't be good. Be great.
Good is the enemy of great.
 
great is the enemy of me
 
@AaronBlenkush If you interview in my group, there's a minimum of 1 hour spent actually writing code on a laptop
 
@JebediahKerman "Nobody is really smart enough to program computers" codinghorror.com/blog/2004/08/…
 
I was kidding, its all relative
I quote form one of the articles
 
@Kylar Good. Interviews are just politics
 
9:43 PM
Write a loop that counts from 1 to 10
some people cannot do that
appearntly
 
the fizz buzz part is really the discernment. If you do it using a modulus, you pass, anything else and I'm probably going to kick you back
although that's an overly simple exercise.
 
Oct 23 at 12:27, by Eggy
how do i write the pseudo ' For j = 1 to i ' in java guys?
Oct 23 at 15:31, by Aaron Blenkush
for (int j=1; i<1 ? j>=i : j<=i; j += (i<1 ? -1 : 1)) { ... }
 
btw how can I print the string "-" 80 times
in python it would be
print('-' * 80)
 
for(int i = 0; i < 80; i++){ System.out.print("-");}
 
thats a for, seems a little overkill. But i trust you
 
9:48 PM
;)
 
do I have to decalre i first?
 
Kylar is good, Kylar is wise.
no, you're declaring it inside the loop
 
so... what does it mean to be a great programmer
 
for(int i = 1)
 
the first argument of for is a declaration
 
9:49 PM
I was just confirming, thanks
Still i think the python way is easier
 
Using a for loop in pytohn it would be:
for i in range(0, 80):
    print i
 
@JebediahKerman There's always Java-based Groovy: println '-' * 80
 
hmm
to java or not to java
quick give me 1241240 in binary
well that was not very fast
00110001001100100011010000110001001100100011010000110000
 
0b100101111000010011000
 
9:53 PM
did you do that per hand @Kylar
 
Fuck no
I only do project euler by hand
 
? forigve my ignorance idk what you are talking about
 
Yeah
It's a math/comp sci thing
That's what I do in my spare time
(ha.)
 
good for you
I learn python in my free time
 
That's how I learned python
doing project euler
 
9:56 PM
i am doing edx
They are the best I have found so far
Have you heard of Edx?
 
have you tried proquest.safaribooksonline.com?
if you're in a university you might have access to tonnes of free oreilly books on that website
 
@Raindrop I already have some books
I like videos more
books leave out important small side notes or the conriest jokes
 
i don't like videos because i find books faster
i used to watch lots of videos
but yes videos are fun
 
well I have 2 screens so its better for me
I do not like to implement a bisection search
@Kylar I though your avatar was a regular apple, turns out its a hipster apple
 
Technically it's a superman-apple
 
10:02 PM
thats an oxymoron
but considering your form the west coast
 
Technically I'm canadian
and irish
 
I give up
 
But yes, I live in Sunny California
Where the weather is great and the taxes are high
 
well you must make the big $$$$
 
You're one $ short ;)
LOL
 
10:06 PM
$$,$$$
I though computer scientist make the big big bucks $$$,$$$
 
No-one calls them computer scientists
You're a software engineer, or programmer
 
programmers
 
Programmer < Software Engineer < Software Architect
 
which one are you
 
the last
 
10:13 PM
so thats the top of the food chain
 
More or less
You're still subject to the whims of management, but as an individual technical contributor, You're pretty near the top
Technically I think a Software Fellow or Distinguished Engineer would be higher
 
how many years of experience do you have?
 
Mmm I've been programming since I was 13, professionally since I was 18, and I'm 38 now... so 20 professionally, 25 overall
 
damn not bad
 
I've been at this job since 2006, so that's what? 7 years?
 
10:15 PM
do you have any cool benefits at your current job
 
Such as?
I have an ergonomic desk. That's pretty cool.
And a lot of vacation time
I have a great health insurance plan
 
how many weeks of paid vacation?
 
stock options
Mmm I'm up to about 20 days I think
 
now your just bragging
 
so 4 weeks
 
10:17 PM
3 weeks
 
The longer you stay, the more time off you get
20 work days = 4 work weeks
 
I think the max is somewhere around 28
 
have you fired someone yet?
interns?
you seem like someone who enjoys to fire unpaid interns
 
I'm not a manager, so I don't fire people
And our interns are all paid
And I would never enjoy firing someone - that's a traumatic experience
Sometimes people realize that the world of software development is not where they will excell
excel, that is
But it's hard to gauge until you're there.
Internships are great. I encourage everyone to do it
 
10:25 PM
earlier you said that you talked an intern out of going for CS
 
Yeah, I didn't fire him though
he stayed
This was near the end of his thing here, and he really didn't enjoy it
I think he changed majors into Math
 
alright, nevermind you are a good guy
 
No, don't get that idea
I'm pretty jaded :)
 
all right
 
But i'm honest
I won't blow sunshine
 
10:29 PM
meh, heard that too many times before
 
10:44 PM
@Kylar I started programming when I was 12. :) Although I'm 26 so you have a few more years on me.
 
You would use new window(); this.dispose(); on an ActionEvent for a button if you want to have another window open that you already made. Right?
 
That almost made sense
but not quite
 
@Kylar Sorry, I know that was very blank. Haha, I'll explain.
I have to different application windows in Java.
I want it so that when you hit a button on window1 it will close and go to window2.
But for some reason, it's not working :/
 
11:04 PM
put your code in a paste bin and send us the link
 
11:19 PM
Whoa, I completely thought I pasted it and I didn't haha.
http://pastebin.com/1k9vu7Ua
 
11:41 PM
@MatthewH Way to go...
 
@AaronBlenkush I know right? haha
 

« first day (1105 days earlier)      last day (3819 days later) »