Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

10-15-2014 , 05:41 PM
Quote:
Originally Posted by Larry Legend
Yea obviously IBM would have sucked massively, but when you are just starting out I feel like amateur excitement can make any job seem decent for the first 1-2 years and then bouncing would have been a mortal lock.
I hear you. Fortunately, the other company is in the top 200 on the Fortune 500 list and very well known and respected.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 05:50 PM
Quote:
Originally Posted by KatoKrazy
I hear you. Fortunately, the other company is in the top 200 on the Fortune 500 list and very well known and respected.
Is it a software/technology company? What would you be working on there?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 05:52 PM
Quote:
Originally Posted by KatoKrazy
Code:
System.out.println(1.5+4*(-1.5)- (4+2.5)*(-1.5));
Output: 5.25

Your teacher better learn maths better. I thought I was right, I was the state champion in the orders of operation speed math even in 5th grade, lol.
It's more likely i ****ed up a negative sign somewhere, but i worked it out several times and got the same answer.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 06:19 PM
Quote:
Originally Posted by candybar
Is it a software/technology company? What would you be working on there?

Hardware manufacturer. Job title is firmware engineer.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 07:12 PM
This is SSD firmware right? potential to be super interesting imo
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 07:40 PM
Quote:
Originally Posted by _dave_
This is SSD firmware right? potential to be super interesting imo
Yes. Enterprise PCIe SSDs. I am really excited.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 08:05 PM
Quote:
Originally Posted by KatoKrazy
Yes. Enterprise PCIe SSDs. I am really excited.
So you'll be involved in firmware for the controllers? Don't want you to give away any proprietary info but report back please if you can on the controller architecture, an overview. It would be appreciated. if so then I guess at least some of the firmware is written in C++? Interesting.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 09:11 PM
Quote:
Originally Posted by jmakinmecrzy
My god, i miss java
Gross!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 09:19 PM
Quote:
Originally Posted by adios
So you'll be involved in firmware for the controllers? Don't want you to give away any proprietary info but report back please if you can on the controller architecture, an overview. It would be appreciated. if so then I guess at least some of the firmware is written in C++? Interesting.
At this point I don't really know a lot. I also have no idea what I am allowed to talk about, so it's best if I say nothing I guess.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 10:53 PM
By any chance, anyone here know scala well enough to tell me what this syntax means:
continueProcessing: => Boolean
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 11:00 PM
My Scala guy says "continueProcessing is of type "=> Boolean" or rather "() => Boolean", meaning it's a function that takes nothing and returns Boolean"
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-15-2014 , 11:01 PM
Gotcha thank you so much. I always see () => blah and this one guy decided to skip it, couldnt fig out if it meant something else.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-16-2014 , 12:55 AM
Quote:
Originally Posted by PJo336
Gotcha thank you so much. I always see () => blah and this one guy decided to skip it, couldnt fig out if it meant something else.
is that a function argument? IIRC that's the accepted way to make the parameter lazy evaluated (instead of eager-evaluated)

EDIT: looks like I did RC: http://stackoverflow.com/questions/3...tions-in-scala
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-16-2014 , 08:42 AM
Quote:
Originally Posted by adios
So you'll be involved in firmware for the controllers? Don't want you to give away any proprietary info but report back please if you can on the controller architecture, an overview. It would be appreciated. if so then I guess at least some of the firmware is written in C++? Interesting.
Upon further review yeah you can't say too much. Of a really general nature I would be curious regarding whether or not their controllers use an OS or is it bare metal. Another would be processr(s) being used, 32 bit or 64 bit, multicore or not.

Paper on SSD PCI Express Controllers

Firmware is a lot more complicated than one might think and from a quick glance looks like hardware design revolves around an ASIC. Fun stuff and in my view this should be very good experience.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-16-2014 , 10:04 AM
Quote:
Originally Posted by Xhad
is that a function argument? IIRC that's the accepted way to make the parameter lazy evaluated (instead of eager-evaluated)

EDIT: looks like I did RC: http://stackoverflow.com/questions/3...tions-in-scala
Theres just so many damn syntax nitpicks to learn. I suppose the options are nice to have. Whats a good use case for this?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 01:39 AM
93% on the midterm, 107% currently in the C++ class.

The midterm consisted of looking over and tracing bad code, figuring out what's wrong or finding the ending value. I really hate these kind of tests.

I also got that math one too which I could not figure out. I came out with .85 each time.

Knowing that you guys had a discussion on this, I copied it down on the scratch paper.

Code:
double d = 2.5 + 4 * -1.5 - (2.5+4) * -1.5
possible choices...
a. 6.25
b. 12.375
c. 24.375
d. 6

spoiler
Spoiler:
6.25 is the correct answer
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 07:56 AM
hey guys, silly random question i am kind of naive on.

i have a function:

Code:
def balance(x, months, r, paymentrate):
    """ assumes minimum balance payment """
    balance = x
    for y in range(months):
        balance = (balance * (1-paymentrate))*(1+(r/12))
        print round(balance,2)
    return balance
nevermind how terribly written or inefficient it is. i am a beginner, and am building blocks! something curious happens when i run said function in the global environment in python (is it called injection when i hit f5 and the function is "loaded" into the global environment? what is that called?.) if i load the function into the global environment, and then call:

Code:
balance(4213,12,.2,.04)
the following is the resulting output:

Code:
>>> balance(4213,12, .2, .04)
4111.89
4013.2
3916.89
3822.88
3731.13
3641.58
3554.19
3468.89
3385.63
3304.38
3225.07
3147.67
3147.670552638328
huh, curious.

so i am learning currently how environments are structured and how procedural assignments are localized in their respective environments, so i found this to be an interesting case. my naive understanding of environments was that in this case it should have (within the balance function, using my assignments for x, months, r that i enter in the global environment) run the for loop 12 times, and the resulting 12 rounded cases support that argument.

the last line of unrounded code, which is just what appears to be a print of the last value of balance (without rounding) is curious though. and where i am confused and concerned that i may not understand environments as well as i thought i do.

the

Code:
return balance
was intentional, mostly because i like seeing if i can break my functions and see what happens when i do.

i thought that return would do nothing, as it simply stores a value and exits the function at that step.

so out of curiosity i attempted to have pythontutor.com stepthrough the function for me, and following is the resulting output.



curious, no "3147.670552638328" here. then i noticed that i was calling balance within that script, and not in the global environment, so i tried that in python:

Code:
input:
def balance(x, months, r, paymentrate):
    """ assumes minimum balance payment """
    balance = x
    for y in range(months):
        balance = (balance * (1-paymentrate))*(1+(r/12))
        print round(balance,2)
    return balance

balance(4213,12, .2, .04)

output
>>> 
4111.89
4013.2
3916.89
3822.88
3731.13
3641.58
3554.19
3468.89
3385.63
3304.38
3225.07
3147.67
>>>
so i appear to have a fundamental misunderstanding.

can anybody help me understand where i've derailed in my understanding of global environments, environments, the return statement, and "injecting" into global environments? i guess i don't really know the difference between "loading" the function into the global environment as opposed to calling the function from the script like in the last example, which gets output into the global environment?

im lost
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 08:50 AM
Your function works as you expect.

When you use the interactive mode it just echos the value of the statement you just executed. Some examples:

Code:
 => python
Python 2.7.6 (default, Jan 28 2014, 15:43:10)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> "d"
'd'
>>> a = "abc"
>>> a
'abc'
>>> def foo():
...     return 3
...
>>> foo()
3
So you're seeing the unrounded balance just because thats what the function returns and so that's what gets shown.

Notice how everything is echoed above except for my assignment statement and the function definition (since these don't return anything).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 09:11 AM
oh neat, so it's the interactive shell that is at odds.

that's really cool, and thanks that's awesome to know!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 11:26 AM
Quote:
Originally Posted by PJo336
Theres just so many damn syntax nitpicks to learn.
Yeah, I took both of Odersky's online classes and then promptly forgot almost everything. It's a huge language. I'm almost surprised I remembered that.

Quote:
I suppose the options are nice to have. Whats a good use case for this?
The accepted answer on that question gives a small one, where the parameter is "value that is expensive to compute and may or may not actually be used". IIRC it also enables cases where you could write functions that otherwise might not terminate (in fact I think "while" in scala is a recursive function written in this fashion).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 01:03 PM
hey guys, sorry for the tl;dr, hoping for some advice.

so i'm a sophomore in college, recently took up programming as a hobby but i've been getting more and more into it. i'm a history major (don't judge...), and switching to CS would likely add a full extra year to my estimated graduation date, and since at 23 i'm already kinda old for a college student (will be 25 when i graduate), i don't want to delay things any further.

the solution i had in mind for this is to get a BGS (general studies degree, you're not allowed to pick a major or minor), which basically means taking whatever classes i want within a few guidelines. and it wouldn't delay graduation time, since all my current credits would still apply to the degree. my plan is to do this and take mostly CS classes to learn as much as possible.

just looking for some feedback from people who work in the industry. i assume my BGS will look as relevant as basket-weaving to prospective employers, but then again history doesn't seem like it would be much different? based on googling and browsing these forums, i see a lot of comments saying that CS degrees generally don't mean much, Github is a programmer's resume, etc...but there seems to be some disagreement on this issue. will i get automatically filtered out by the HR dept. at bigger companies?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 02:12 PM
if you are serious about CS, i think feeling awkward because you're "too old" at 25 to be in college is a silly reason not to spend the extra year and do the thing you want to do. not to mention it will have more practical value with future employers.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 02:21 PM
I am graduating in December and will be almost 29. I did much better at college this time around than at 18 and my age did not hinder anything. Read the last couple pages and you will see it didn't hinder job prospects either and in fact may have been a benefit.

At employers around here having a degree is almost always a requirement.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 02:36 PM
hmm...interesting. another thing i'm worried about is that i sort of live in the middle of nowhere, and there's not really much for programming-related jobs/internships available, so i sort of thought finishing any degree sooner and moving somewhere else just for the networking opportunities+actual experience might be worthwhile.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
10-17-2014 , 03:36 PM
Katokrazy, didn't know you were that old. I should be that age too if I do pursue the second bachelor's.

As for cookiesforyou I would take the extra year. It's hard to find a school that will accept a second bachelor's, so if you have an opportunity to change majors, do so now.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m