Open Side Menu Go to the Top

04-08-2015 , 05:55 PM
Quote:
Originally Posted by candybar
Isn't this what you're looking for?

Yah that is what I was looking for but I'm still wondering why the code formatting is that way for c# and not like c++.
Maybe the majority of people at Microsoft like it that way but that seems odd.
** 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 **
04-08-2015 , 06:23 PM
Thank you candy bar! VS studio was being annoying when it won't let me do the below.

Code:
if (a) {
  // code
  // code
} else {
  // code
  // code
}
When I rule the world, I am going to make that style the gold standard.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 06:25 PM
Quote:
Originally Posted by jjshabado
Waste of a line, imo.
Not if it helps ease of moving and reading code enough to make up for it. I spent 10 years coding with else on its own line as a Java programmer. So when I see this:

Code:
if (cc.match('^4[0-9]{12}(?:[0-9]{3})?$') && (cc.length == 16)) {
  return this.creditCardType = "VI";
} else if (cc.match("^5[1-5][0-9]{14}$") && cc.length == 16) {
  return this.creditCardType = "MC";
} else if (cc.match("^3[47][0-9]{13}$") && cc.length == 15) {
  return this.creditCardType = "AX";
} else if (cc.match("^6(?:011|5[0-9]{2})[0-9]{12}$")) {
  return this.creditCardType = "DI";
}
It's very hard for me to read.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 07:03 PM
Quote:
Originally Posted by jjshabado
Waste of a line, imo.
noob Q: what's wrong with "wasting" lines?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 07:19 PM
Some code analysis tools you pay by the line.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 07:32 PM
You can only view so many lines at one time. Both in the sense of your screen can only show so many lines and you can mentally only focus on so many lines at one time.

Code with lots of extra wasted spaces/lines means its spread out and harder for me to view in one place.

Again, imo. Your mileage may vary.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 07:47 PM
Quote:
Originally Posted by suzzer99
Not if it helps ease of moving and reading code enough to make up for it. I spent 10 years coding with else on its own line as a Java programmer. So when I see this:

Code:
if (cc.match('^4[0-9]{12}(?:[0-9]{3})?$') && (cc.length == 16)) {
  return this.creditCardType = "VI";
} else if (cc.match("^5[1-5][0-9]{14}$") && cc.length == 16) {
  return this.creditCardType = "MC";
} else if (cc.match("^3[47][0-9]{13}$") && cc.length == 15) {
  return this.creditCardType = "AX";
} else if (cc.match("^6(?:011|5[0-9]{2})[0-9]{12}$")) {
  return this.creditCardType = "DI";
}
It's very hard for me to read.
agreed. Why would anyone want a verb placed after a closing bracket?

update on recruiter:
-- I sent my newest resume along with contact times. No response, but I suppose that was expected. Oh well. The nice thing is that I recall why I fell in love with Lisp in the first place. Just a pleasure to work with.

I also got contacted for another job in NJ. No no no no. I hate the snow and I don't care how stupid that reason is.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 10:15 PM
I prefer brackets that enclose a block to line up.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 10:39 PM
Quote:
Originally Posted by daveT
agreed. Why would anyone want a verb placed after a closing bracket?

update on recruiter:
-- I sent my newest resume along with contact times. No response, but I suppose that was expected. Oh well. The nice thing is that I recall why I fell in love with Lisp in the first place. Just a pleasure to work with.

I also got contacted for another job in NJ. No no no no. I hate the snow and I don't care how stupid that reason is.
3> daveT
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 10:41 PM
Quote:
Originally Posted by maxtower
I prefer brackets that enclose a block to line up.
me too.

Code:
if (test)
{
  //code
}
else
{
  //code
}
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 11:26 PM
I'm sort of curious to know what you guys think of people that put tape over their laptops web camera. I've always thought of it as absurd but have seen some programmers that actually do it on campus.

Sort of questioning myself now with using a network monitor to see if any packets leave my computer at a given time, where I haven't made or the computer would have not needed a request or get. I suppose the monitor might be able to be bypassed but I doubt someone would put that much work into it. Who knows...

Anyway I'm not really worried if some kid is spying on me through a camera but it would annoy me if my screen real-estate was monitored. I've did some research on how popular RATs are in the no-life scene forums and they are pretty popular with Crypters so they are installed undetected by anti-viruses. These RATs are a problem for all Windows, OS X, and Linux users.

Now being foolish and opening a random .exe is something i'm not. Yet they can bundle them into existing programs that are non malicious and who is to wonder about real exploits in the operating system's security that the kids don't have access to but paid organize hackers do(NSA).

So anyway I'm wondering if anyone else is concerned about having their whole screen activity monitored as similar to team viewer. Do any of you do anything that are concerned that would alert you.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 11:28 PM
Quote:
Originally Posted by _dave_
me too.

Code:
if (test)
{
  //code
}
else
{
  //code
}
glad i am not the only one

lol so in my Sprite Group I went from no one to dev in like 1 night. I told the 2 programmers (I was right, the group leader is no longer programming) that I have experience with swing and they just started using it and are kinda lost so I'm gonna review all their code because they're having bugs already.

And barrin, **** you and your group, you guys already FINISHED? We got a 9/10 tonight despite doing everything he asked us, and I asked why, and he said it was because your group already finished. So the entire class is gonna get a 9 or lower just because of you.

lol, **** his curves. 28.5/30 on the exam is a B. **** you professor.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-08-2015 , 11:34 PM
That is pretty bad ass of the professor to grade that way.
Never had someone take your position you finished compared to others and factor into one's grade.

Lol group leader bailed ?? or did everyone say we are taking over and you have to sit on the side lines.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 12:00 AM
lol sorry jmakin. Basically it's done, but my group wants to add more features while I'm the only fighting not to, since I'm so sick of C#. I'll show you the program some other time.

Not sure if you are experienced with git, but if you can, try and get your group on it! Glad to hear you guys are on the right direction now.

As for my group, I wish we could trade a guy. This one guy is not only useless, but complete annoying. He's the type of person who will say "Yea I'll do that, easy, I'll have it done", talks a big game , and then never delivers anything. Then when it comes time to meet with the professor, he just starts talking as if he worked on our project. Saying stuff that aren't true about the program. He hasn't seen or written a single line of code, nor has he seen the program until 20 minutes before.

Originally in the beginning, I assured the group that maybe.. just maybe, he would turn around and start contributing. Yet his first task, which is to set up a google doc invite, he hasn't done. If I don't get an email invite from him tomorrow, I am going to flip my ****.

Quote:
Originally Posted by iosys
That is pretty bad ass of the professor to grade that way.
Never had someone take your position you finished compared to others and factor into one's grade.
Yea it's weird, it's basically everyone competing against one another. It's so bad, that even groups won't share or show their programs to other people. I got a 29/30 but that's considered a high B.

Last edited by Barrin6; 04-09-2015 at 12:05 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 12:07 AM
lmfao like someone should tell the professor its sort of ridiculous at that point when everyone starts being unfriendly to one another.
Talk about the added pressure that is totally unnecessary for learning to program.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 12:11 AM
As paranoid countermeasures go, tape over the camera has the advantage of being very easy to implement. Do these people also disable the microphone? Do they avoid carrying smartphones aka tracking devices with them everywhere they go? Do they use encrypted email for all communications no matter how trivial so as to prevent the non-trivial ones from standing out?

I've never once used encrypted email even though I think it should be the standard. Anyway I don't think spying via the camera ranks very high on the list of likely security threats to worry about. There's lots to worry about, including that if you happen to be important enough, its just not high on the list (in my very much non-expert opinion).

Last edited by JSLigon; 04-09-2015 at 12:21 AM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 01:32 AM
Just get one of these:

** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 01:48 AM
suzzer do you have a webcam cover like that?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 01:49 AM
Nope but for $15 you can!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 01:57 AM
What a waste... Pizza hut gives them out for free, just cut magnet on fridge and put it over the camera.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 02:02 AM
The governments might be making a monumental **** up by how they are dealing with the internet.

When they become dependent on the mass collection of data from the internet, and that goes away, they will be screwed.

It may not be feasible right now, but I am pretty convinced if a new internet came out that was on the scale of quantum global encryption, it would be hard to even imagine the effects.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 02:37 AM
Consider if everyone used a weak encryption that took 10 seconds to crack an email. Multiply this by the quantity of emails sent in one day and all of a sudden there isn't enough time in the universe to decrypt it all. This may even be a decent balance between privacy and ability to eves drop. They can still decrypt, but they have to allocate their resources intelligently when they decide to decrypt, therefore only snooping on the bad guys.

Yes / No ?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 02:40 AM
I had an interview today. I'm not sure how it went, but I don't have a fuzzy feeling about it either. Each interview is practice for the next one, amirite?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 04:48 AM
Quote:
Originally Posted by iosys
What a waste... Pizza hut gives them out for free, just cut magnet on fridge and put it over the camera.
Not sure if the camera can carry the weight of the fridge without breaking, though.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
04-09-2015 , 07:27 AM
Quote:
Originally Posted by Barrin6
Yea it's weird, it's basically everyone competing against one another. It's so bad, that even groups won't share or show their programs to other people. I got a 29/30 but that's considered a high B.
So you're in law school, right? Or med school?

Cuz I've never heard of any other discipline using such competitive grading.

Quote:
they have to allocate their resources intelligently when they decide to decrypt, therefore only snooping on the bad guys.
Terrorists don't even have to encrypt their emails. They just make them look like spam so they don't get targeted for monitoring. Or at least they used to.
** 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