Open Side Menu Go to the Top

12-21-2014 , 10:52 PM
Quote:
Originally Posted by ItalianToaster
.net, erlang and haskell can optimize tail calls.

Sent from my C6603 using 2+2 Forums
Yeah, a really short LIST of programming languages do TCO properly...

I don't know about the compiler KatoKrazy is using though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
12-22-2014 , 12:53 AM
Quote:
Originally Posted by Larry Legend
My two favorites are definitely:

SRI Employees Levels_401(k)sort_passwordv2

pass
I love how he's the head of IT or whatever and he still has the default "hide file extensions" turned on.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-22-2014 , 03:35 AM
Quote:
Originally Posted by daveT
Yeah, a really short LIST of programming languages do TCO properly...

I don't know about the compiler KatoKrazy is using though.
Scala can optimize tail recursion at compile time. List just got 33% longer.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-23-2014 , 11:50 AM
Quote:
Originally Posted by anfernee
Scala can optimize tail recursion at compile time. List just got 33% longer.
:thumbup:

Sent from my C6603 using 2+2 Forums
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-23-2014 , 12:47 PM
:thumbdown:
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-23-2014 , 05:26 PM
Quote:
Originally Posted by kaby
i just use regular a4 papers but yeah drawing stuff out is a must for me
+1, WB is better for group sessions. If I work alone I go A4.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-23-2014 , 05:30 PM
Quote:
Originally Posted by catsec
On a similar note, does anyone else here get a lot out of highlighting books? Especially dense text books upwards of 500 pages? I find that it helps me tremendously just to go through and highlight the important points, ignoring examples and filler material. I know that there's no consensus on the effectiveness of highlighting though. I think it just works for some people and doesn't work for others.
All my books are full of highlights and notes. I usually use yellow for regular highlighting, pink for sources, orange for definitions/terms and scribble a lot in the margins. I usually draw additional separation lines --- and mark stuff with I, II, III etc. and use a --- --- box with a downward arrow to mark examples.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-23-2014 , 05:42 PM
Quote:
Originally Posted by e i pi
yea i'm sure all productivity increases will be equally distributed among the people and we shall live like kings!
Even pretty average income folks live like kings of past ages (actually way better) due to technical advances.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-23-2014 , 06:06 PM
Quote:
Originally Posted by clowntable
Even pretty average income folks live like kings of past ages (actually way better) due to technical advances.
I'm not sure everyone can effectively substitute lots of pixels for low population densities.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 12:13 AM
Quote:
Originally Posted by clowntable
All my books are full of highlights and notes. I usually use yellow for regular highlighting, pink for sources, orange for definitions/terms and scribble a lot in the margins. I usually draw additional separation lines --- and mark stuff with I, II, III etc. and use a --- --- box with a downward arrow to mark examples.
Oh man, I find highlighting seriously distracting. Nothing is worse than getting a used book with highlights and writing all over it.

I have weirdness about paper. I don't even like it folded paper. Writing paper is fine to write on (but not fold!), but a book is sacred.

I just jot down a lot of notes. This allows me to interact with the book and let the points sink in better. I have a stack of notebooks up to my ears.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 04:03 AM
I used to have this "books are sacred" mindset as well. I think it's pretty hard to explain actually. Some day I just grabbed a bunch of pens and tried highlighting/taking notes (used a book I didn't value all that highly, iirc some behavioural economics pop-science book). Now even my fine leather binding books are full of highlights and notes. I don't sell books.

Highlighting and taking notes in the margins serves the same purpose for me as your jotting down notes. Even if I'd never read the book again I soak up the info a lot better if I highlight stuff. But I do "reread" stuff occasionally and highlighting comes in very handy. Since I'm on vacation now I've read through a couple of books on negotiation and psychology and it takes about 30 minutes to refresh the entire content. I forget things that I don't apply very quickly but with highlighted books I can usually refresh 300-500 page books in 30 minutes and then reread in depth if need be.

I have a note in Trello to write a "write in your books" blogpost that is >1 year old now...maybe after the xmas days
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 07:52 AM
One class I just finished, I noticed a guy who sat there, each and every class, with his book open, highlighting as the teacher lectured.

Turned out to be a good strategy as the teacher never talked about anything that wasn't in the book.

As I'm going back thru my c++ book I really wish I'd highlighted those juicy little tidbits and tips that I'm now having to scan entire chapters for. I'm moving all the good stuff, as well as info about libraries and syntax into a mind map. I know Google usually gives the answer I want pretty quickly, but having related info all around it, as well as any useful tips, seems like such a good idea.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 07:16 PM
I'm having an argument with my girlfriend that I need your guys feedback on. I plan on taking a couple of the basic CS courses at college this semester so that if I do decide I want to do some kind of CS degree I've got the lame basics out of the way. To get the pre req for one of the CS classes waived I had to prove to the professor that I know java to the level of someone who had taken an intro to Java class. He emailed me back his feedback on my program.

One of the classes in the program was about 150 lines of code. This is an equivalent snippet from that program

Code:
private void foo() {
    String blah = "blah blah pretend this method is full of some sweet java code";
}


/* blah blah method, blah blah blah
 * params blah blah blah
 * return blah blah blah
 */
private String doStuff(String x) {
   String y = " blah blah blah I like pie";
   return x + y;
}
One of the mistakes I was told I made is that I had a blank like on line 78. Which would be one of the two empty lines of code between these methods instead of just one empty line.

I said it was crazy that that was being pointed out as a mistake, and my GF says that I just don't understand how academia works, and since I don't have a job programming that I don't know how it is for jobs either. I maintain that its still crazy in both environments. And even more crazy because this isnt an actual assignment and was just to show the professor whether or not I know java.

So I thought I would ask here, since I know there are both lots of people who code every day for a living and who have degrees and people who are currently taking CS classes in college.

Am I wrong?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 07:47 PM
Lol professor imo
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 07:51 PM
Lots of nits out there. I know professionally there are people that are really dogmatic about adhering to some style guide exactly.

The professor calling attention to it is fine if it's a warning or you have lots of style issues. Not knowing style guidelines can be indicative of not knowing other basics or best practices, but I would just assume it's a typo if it's one of only a couple instances.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 08:08 PM
Without extra spaces all over the place, hard to get worked up about.

Does extra white space even matter in Java? Would the compiler throw an error?

If not, I can't see this even being caught if it was at work.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 08:23 PM
Quote:
Originally Posted by Anais
Without extra spaces all over the place, hard to get worked up about.

Does extra white space even matter in Java? Would the compiler throw an error?

If not, I can't see this even being caught if it was at work.
blank lines dont matter at all, it wont cause any errors. My understanding is its just readability and there isn't even a standard best practice to adhere to. It should just be consistent across the program or project based on the style of whoever is making it. Like if I was working somewhere and they put 2 lines between each method, then I should always put 2 lines.

Just seemed massively "lol, wtf" to me to point that out as an error
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 09:48 PM
Confirmed gigantic lol. IMO reveals that professor has never worked outside of academia.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 10:16 PM
Apparently right before I started there was a pretty big discussion at my work about 'style'. In my opinion, all that really matters is picking something that makes sense and then being consistent.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-24-2014 , 10:36 PM
Quote:
Originally Posted by Alobar

Am I wrong?
100% not wrong.

Nitting it up about something like this is huge red flag, either in academia or on the job. If someone said, "Hey, this is a little thing, but we're pretty strict about following style guide X, and there should be only 1 blank line here..." that would be fine. Saying it's "wrong" is insane and your professor is outing himself as a schoolmarm who cannot possibly have his head on straight about what's important in programming and what's not.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-25-2014 , 12:08 AM
Quote:
Originally Posted by ChrisV
Confirmed gigantic lol. IMO reveals that professor has never worked outside of academia.

+1. Professor is full on ******ed, I expect better even from academia.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-25-2014 , 12:10 AM
Quote:
Originally Posted by KatoKrazy
Apparently right before I started there was a pretty big discussion at my work about 'style'. In my opinion, all that really matters is picking something that makes sense and then being consistent.

At my old job, the only meetings that were worse than style meetings were meetings about the correct branching strategy.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-25-2014 , 12:33 AM
Quote:
Originally Posted by gaming_mouse
100% not wrong.

Nitting it up about something like this is huge red flag, either in academia or on the job. If someone said, "Hey, this is a little thing, but we're pretty strict about following style guide X, and there should be only 1 blank line here..." that would be fine. Saying it's "wrong" is insane and your professor is outing himself as a schoolmarm who cannot possibly have his head on straight about what's important in programming and what's not.
I mostly agree with this. But I will say it's nice to see schools at least try to teach code formatting. No developer worth a crap has messy code (that I've ever met).

Sometimes we get offshore developer code with all kinds of random extra blank lines and it's pretty ugly. If I put two blank lines it's rare and for a reason - to separate logical blocks. Never 3.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-25-2014 , 12:41 AM
Btw we've had two more prospective JavaScript devs miserably fail the easy part of the sudoku (as we call it) exercise: Create an object that represents an n*n grid, with each cell containing a random integer from 1 to n*n. The second part involves rendering it in angular.

Like they couldn't even build the grid, much less populate it with random integers. One guy made 2 1d arrays (which he called vertArray and horizArray) and was putting random numbers in each. The other guy I gave it to as a homework assignment and he came back with some giant object with a bunch of methods that is such a weird misinterpretation I have no idea what he was even thinking. He had nothing random anywhere in it, nor did he ever build a grid.

It's a seller's market out there. If any of the crack JS/CSS devs it are in LA (or you know any), and looking for a job - let me know.

Last edited by suzzer99; 12-25-2014 at 12:51 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
12-25-2014 , 01:43 AM
thanks guys. I made my GF read about how I wasnt wrong I have a feeling this class which should be super easy cuz it's stuff I already know, is going to end up being a giant pain in the ass :/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m