Search
Notices
"The 33"-Road Bike Racing We set this forum up for our members to discuss their experiences in either pro or amateur racing, whether they are the big races, or even the small backyard races. Don't forget to update all the members with your own race results.

My geek thread

Thread Tools
 
Search this Thread
 
Old 11-18-10, 10:28 PM
  #301  
umd
Banned
 
umd's Avatar
 
Join Date: Sep 2005
Location: Santa Barbara, CA
Posts: 28,387

Bikes: Specialized Tarmac SL2, Specialized Tarmac SL, Giant TCR Composite, Specialized StumpJumper Expert HT

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 2 Times in 2 Posts
Originally Posted by agoodale
no problem. VB6 purchased the gold plated chip on my shoulder.
I'm sure we could swap good war stories. I can't tell you how many problems were caused by it's lack of real logical operators.
umd is offline  
Old 11-18-10, 10:37 PM
  #302  
scotch
purity of essence
 
scotch's Avatar
 
Join Date: Feb 2006
Location: NH
Posts: 2,260

Bikes: 2018 Giant Trance 2, 2019 Trek Farley 7, 2017 Jamis Renegade Exploit

Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 37 Post(s)
Likes: 0
Liked 26 Times in 11 Posts
Until today, I'd forgotten what a kick-ass book Unix Power Tools is.
scotch is offline  
Old 11-18-10, 10:51 PM
  #303  
agoodale
Senior Member
 
agoodale's Avatar
 
Join Date: Sep 2008
Location: Murrieta, CA
Posts: 1,035
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by umd
I'm sure we could swap good war stories. I can't tell you how many problems were caused by it's lack of real logical operators.
Probably although the logical operators were never a big issue for me for the work I was doing. I must be getting old because sometimes I miss the simplicity of it all.
agoodale is offline  
Old 11-18-10, 10:58 PM
  #304  
umd
Banned
 
umd's Avatar
 
Join Date: Sep 2005
Location: Santa Barbara, CA
Posts: 28,387

Bikes: Specialized Tarmac SL2, Specialized Tarmac SL, Giant TCR Composite, Specialized StumpJumper Expert HT

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 2 Times in 2 Posts
Originally Posted by agoodale
Probably although the logical operators were never a big issue for me for the work I was doing. I must be getting old because sometimes I miss the simplicity of it all.
Well when AND/OR/NOT don't do what you expect because they are bitwise instead of logical, it causes problems. Especially if you are calling things in other languages that don't have the same definition of the meaning of TRUE.
umd is offline  
Old 11-18-10, 11:39 PM
  #305  
waterrockets 
Making a kilometer blurry
 
waterrockets's Avatar
 
Join Date: May 2006
Location: Austin (near TX)
Posts: 26,170

Bikes: rkwaki's porn collection

Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
Quoted: 37 Post(s)
Liked 91 Times in 38 Posts
Originally Posted by agoodale
Sorry if this is old but it's good geek humor:

Step 1: Go to Google Maps.
Step 2: Write Japan as your departure point.
Step 3: Write United States as your arriving point.
Step 4: Get Directions

Read step No. 27
I used to work at the gun club on step 49. My first job, and I was 14. Mostly loaded trap and skeet. Put two on the arm, throw three against the wall. There were about 12" of busted clay pigeons in the floor of the trap houses. Really sucked when they pulled while you were loading.
waterrockets is offline  
Old 11-19-10, 01:24 AM
  #306  
kudude
slow up hills
 
kudude's Avatar
 
Join Date: Mar 2006
Location: Seattle, WA
Posts: 4,931

Bikes: Giant TCR, Redline CX, Ritchey Breakaway, Spec S-works epic

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by agoodale
ok. i get it.

I love looking at other people's code. I always think...Is my code this crappy??
I don't have to ask. I know it is.
kudude is offline  
Old 11-19-10, 06:47 AM
  #307  
kensuf
My idea of fun
 
kensuf's Avatar
 
Join Date: Jun 2006
Location: Gainesville, FL
Posts: 9,920

Bikes: '06 Litespeed Tuscany, '02 Kona Lavadome, '07 Giant TCR Advanced, '07 Karate Monkey

Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 41 Post(s)
Liked 59 Times in 36 Posts
Originally Posted by umd
Funny language story. I was reviewing someone's code a few weeks ago, in VB6. VB still supports a bunch of the old anachronistic BASIC language features, like line numbers.

I noticed an arbitrary "4:" on one of the lines and I asked him why it was there.

He replied, "I don't know, but it doesn't seem to hurt anything".

I literally facepalmed.
niiice.
kensuf is offline  
Old 11-19-10, 07:14 AM
  #308  
carpediemracing 
Senior Member
 
Join Date: Feb 2007
Location: Tariffville, CT
Posts: 15,405

Bikes: Tsunami road bikes, Dolan DF4 track

Mentioned: 36 Post(s)
Tagged: 0 Thread(s)
Quoted: 385 Post(s)
Liked 180 Times in 102 Posts
Originally Posted by agoodale
Sorry if this is old but it's good geek humor:

Step 1: Go to Google Maps.
Step 2: Write Japan as your departure point.
Step 3: Write United States as your arriving point.
Step 4: Get Directions

Read step No. 27
I never saw that before. Step 38 threw me off for a bit. Heh.
carpediemracing is offline  
Old 11-19-10, 07:33 AM
  #309  
WCroadie
Senior Member
 
WCroadie's Avatar
 
Join Date: Jul 2006
Location: Chester County, PA
Posts: 2,365

Bikes: 2010 Trek Madone 5.5 CAAD9

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 1 Time in 1 Post
Originally Posted by mollusk
Do any of us work for your client?
Yup, he said all the BF use is costing his company a lot of $$$ No and trust me no one wants to work there.

Originally Posted by slynkie
Tell your client that any software you install would also track his usage. I bet he'll change his mind.
He and I would be the only ones with access to look at the report. And I don't care what anyone there does as long as they don't f up their computers and make me have to go onsite.

The guy running the show is a total dictator, control freak and genuine a-hole.
WCroadie is offline  
Old 11-19-10, 08:13 AM
  #310  
carpediemracing 
Senior Member
 
Join Date: Feb 2007
Location: Tariffville, CT
Posts: 15,405

Bikes: Tsunami road bikes, Dolan DF4 track

Mentioned: 36 Post(s)
Tagged: 0 Thread(s)
Quoted: 385 Post(s)
Liked 180 Times in 102 Posts
Originally Posted by kudude
I don't have to ask. I know it is.
My brother is a high end programmer. I asked him about the 2-3 other high end guys at my old job (he is still there). He said that all programmers think their code is better than another "equal" programmer's code.

It's when you go 2-3 levels up that a programmer may begrudgingly admit that, yeah, that guy writes good code.

There's also the whole thing with bugs. "It's not a bug, it's a feature."

There was one guy that would razz everyone else on their bugs. When he had a bug he'd quickly add a feature so he could re-release the package with a feature update rather than a bug fix. I forget the way the package naming stuff worked but it was like version.feature.something.bug. So 1.1.2.0 meant 1st version, 1st feature, 2nd something, and no bugs. The one guy would carefully re-release his stuff so the last digit was always zero.

Question is how perfect should you make it. If you make it absolutely bug free it could take too much time (inefficient). If you release things too quickly it'll be buggy (inefficient).

My bro said there were one or two programmers (apparently well known to him but total strangers the other way) who wrote basically bug-free stuff efficiently. He'd talk about them with a lot of respect, kind of like bike racers saying, "Yeah, Voigt is pretty tough".
carpediemracing is offline  
Old 11-19-10, 09:29 AM
  #311  
wens
Senior Member
 
wens's Avatar
 
Join Date: Mar 2010
Location: Northeast Ohio
Posts: 3,215
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Saw this today. Figure it fits in here:
" Theory is when you know something but it does not work. Practical is when something works, but you don't know why. Engineering combines both. Nothing works and you don't know why."
wens is offline  
Old 11-19-10, 09:31 AM
  #312  
slynkie
negligent.
 
slynkie's Avatar
 
Join Date: Aug 2005
Location: White Plains, NY
Posts: 837

Bikes: a few

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
definitely a good Friday quote.
slynkie is offline  
Old 11-19-10, 10:45 AM
  #313  
Blackdays
Boom.
 
Blackdays's Avatar
 
Join Date: May 2010
Location: Pittsburgh -> Cleveland -> San Francisco
Posts: 2,523
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 16 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
So for you java experts.

How tough is it to transfer working java code to android? My final project for my programming class has me making a simulation GPS that runs on my computer. It has a standard gui with a couple of radio buttons. The code reads off a .txt file in order to get the coordinates to simulate the GPS.

Would I be able to transfer this code directly on to the android platform?
Blackdays is offline  
Old 11-19-10, 10:49 AM
  #314  
Urthwhyte
Senior Member
 
Join Date: Aug 2009
Location: Seattle
Posts: 970

Bikes: Giant Defy 2

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by Blackdays
So for you java experts.

How tough is it to transfer working java code to android? My final project for my programming class has me making a simulation GPS that runs on my computer. It has a standard gui with a couple of radio buttons. The code reads off a .txt file in order to get the coordinates to simulate the GPS.

Would I be able to transfer this code directly on to the android platform?
You'd need to rewrite the UI bits for sure, and libraries you're using might very well be missing if it's anything like SL on the Desktop v. Silverlight on WP7. Other than telling you that, I can't be of much help
Urthwhyte is offline  
Old 11-19-10, 10:51 AM
  #315  
Blackdays
Boom.
 
Blackdays's Avatar
 
Join Date: May 2010
Location: Pittsburgh -> Cleveland -> San Francisco
Posts: 2,523
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 16 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by Urthwhyte
You'd need to rewrite the UI bits for sure, and libraries you're using might very well be missing if it's anything like SL on the Desktop v. Silverlight on WP7. Other than telling you that, I can't be of much help
That's what I was thinking. I don't have much experience working with the android kit, but since it is java based I figure it shouldn't be too hard.

But then again, it took me 3 days to figure out the run time error I was getting was being caused by me declaring my main method as private.
Blackdays is offline  
Old 11-19-10, 11:02 AM
  #316  
Urthwhyte
Senior Member
 
Join Date: Aug 2009
Location: Seattle
Posts: 970

Bikes: Giant Defy 2

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by Blackdays
But then again, it took me 3 days to figure out the run time error I was getting was being caused by me declaring my main method as private.
Does the compiler or your IDE not catch that for you?
Urthwhyte is offline  
Old 11-19-10, 11:04 AM
  #317  
Blackdays
Boom.
 
Blackdays's Avatar
 
Join Date: May 2010
Location: Pittsburgh -> Cleveland -> San Francisco
Posts: 2,523
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Quoted: 16 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
I was getting this lovely error:

java.lang.NoSuchMethodError: main
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at edu.rice.cs.dynamicjava.symbol.JavaClass$JavaConstructor.evaluate(JavaClass.java:298)
at edu.rice.cs.dynamicjava.interpreter.ExpressionEvaluator.handleConstructor(ExpressionEvaluator.java:1 28)
at edu.rice.cs.dynamicjava.interpreter.ExpressionEvaluator.visit(ExpressionEvaluator.java:98)
at koala.dynamicjava.tree.SimpleAllocation.acceptVisitor(SimpleAllocation.java:137)
at edu.rice.cs.dynamicjava.interpreter.ExpressionEvaluator.value(ExpressionEvaluator.java:38)

But I couldn't figure out what it was.
Blackdays is offline  
Old 11-19-10, 11:22 AM
  #318  
waterrockets 
Making a kilometer blurry
 
waterrockets's Avatar
 
Join Date: May 2006
Location: Austin (near TX)
Posts: 26,170

Bikes: rkwaki's porn collection

Mentioned: 4 Post(s)
Tagged: 0 Thread(s)
Quoted: 37 Post(s)
Liked 91 Times in 38 Posts
Originally Posted by carpediemracing
My brother is a high end programmer. I asked him about the 2-3 other high end guys at my old job (he is still there). He said that all programmers think their code is better than another "equal" programmer's code.

It's when you go 2-3 levels up that a programmer may begrudgingly admit that, yeah, that guy writes good code.

There's also the whole thing with bugs. "It's not a bug, it's a feature."

There was one guy that would razz everyone else on their bugs. When he had a bug he'd quickly add a feature so he could re-release the package with a feature update rather than a bug fix. I forget the way the package naming stuff worked but it was like version.feature.something.bug. So 1.1.2.0 meant 1st version, 1st feature, 2nd something, and no bugs. The one guy would carefully re-release his stuff so the last digit was always zero.

Question is how perfect should you make it. If you make it absolutely bug free it could take too much time (inefficient). If you release things too quickly it'll be buggy (inefficient).

My bro said there were one or two programmers (apparently well known to him but total strangers the other way) who wrote basically bug-free stuff efficiently. He'd talk about them with a lot of respect, kind of like bike racers saying, "Yeah, Voigt is pretty tough".
I've never seen an interesting system with no known bugs.
waterrockets is offline  
Old 11-19-10, 11:34 AM
  #319  
agoodale
Senior Member
 
agoodale's Avatar
 
Join Date: Sep 2008
Location: Murrieta, CA
Posts: 1,035
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by waterrockets
I've never seen an interesting system with no known bugs.
I keep a few harmless but known bugs in my software just for ol' times sake.
agoodale is offline  
Old 11-19-10, 11:52 AM
  #320  
agoodale
Senior Member
 
agoodale's Avatar
 
Join Date: Sep 2008
Location: Murrieta, CA
Posts: 1,035
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by carpediemracing
My brother is a high end programmer. I asked him about the 2-3 other high end guys at my old job (he is still there). He said that all programmers think their code is better than another "equal" programmer's code.

It's when you go 2-3 levels up that a programmer may begrudgingly admit that, yeah, that guy writes good code.
I probably don't rank very high on a "coder" scale. I'm more of a analyst/manager/tech guy who can relate to users/sales guy who can code.

I've always taken the approach that I am only the first of many people who is going to work with this code. So I work very hard at starting with a solid object oriented design. I then code in way that is very clear & straightforward with plenty of short comments. This results in code that is easy to read & follow but not the most efficient. If some inefficient code is affecting the user experience I'll spend some extra time on that piece.
agoodale is offline  
Old 11-19-10, 12:28 PM
  #321  
mattm
**** that
 
mattm's Avatar
 
Join Date: Dec 2006
Location: CALI
Posts: 15,402
Mentioned: 151 Post(s)
Tagged: 0 Thread(s)
Quoted: 1099 Post(s)
Liked 104 Times in 30 Posts
Originally Posted by waterrockets
I've never seen an interesting system with no known bugs.
+1 one of the hardest parts about shipping a major product is deciding which bugs you'll have to live with, and which features you'll have to live without.
__________________
cat 1.

my race videos
mattm is offline  
Old 11-19-10, 03:06 PM
  #322  
carpediemracing 
Senior Member
 
Join Date: Feb 2007
Location: Tariffville, CT
Posts: 15,405

Bikes: Tsunami road bikes, Dolan DF4 track

Mentioned: 36 Post(s)
Tagged: 0 Thread(s)
Quoted: 385 Post(s)
Liked 180 Times in 102 Posts
"Basically" bug free doesn't mean bug free. But essentially very well written code. Folks compare it to the code that handles internet traffic.

I've lost touch with prod issues where I used to work but the software is very mature, written by the company head in 1987? (whenever banks could trade and brokers could bank) and developed from there for one of the banks (who wanted to trade). All in C, all following pretty rigid standards. As a programmer you can rely on the fact that everything will be treated the same (format, comments, etc).

Although I won't say it's bug free, especially the quick client-request-filling stuff, the basic structure is extremely, extremely robust. When I left in Dec 2007 the infrastructure could update in real time (sub millisecond) prices of 1.5 million instruments, about 275k messages a second (average load was 60-90k messages/sec at busy times in 2006, increasing from 15-40k/sec in 2003), from various feeds using at most 16 2.8 Ghz dual core Intel CPUs (I forget cache levels but they were high - 32 MB?), i.e. 4 quad CPU boxes. Relatively cheap boxes, $8-10k a box, none of those exotic F-15 96 CPU boxes (they used a bunch of those boxes to replace our system and that's when I lost my support job).

Our system could execute algorithmic trades in about 600-800 microseconds (0.8 milliseconds, not sure of what caused the wide range of time - that's about when I left) based on the feed. One of the limiting factors was distance to the exchange so we'd have machines in data centers in the same building as the exchange when possible (mainly for futures). Although I no longer work there I'm very proud of the company and the software produced there. I rarely dealt with bug issues (don't remember any), more things like hardware, network, or user errors.

Anyway my brother is one of the 4 guys that write the serious code (original guy, another senior guy, and another senior guy). The guy that hated bugs is one of them (quick, creative, buggy). Another was one of the original developers, probably the best in the company (according to my bro). Slow, methodical, and pristine, he'd work 3-4 months a year and crank out insane stuff. Boss/owner was original also, he was quick, creative, but didn't do much actual coding. My brother was a combination - he could be quick, he was more methodical than the first guy, and quickly owned up to any issues.

Everyone else is more GUI and feature-related stuff. For actual things like trading engines... it'd be one of those four guys. When he says "Oh, that programmer is really good" it's significant to me. The guy that wrote DOOM (id software) is one guy that my bro admires.

I can't code worth a subroutine. I supported the systems. As a relatively experienced support person, I was happy that we rarely dealt with our own issues. It's very unusual based on my experience at other companies (where a lot of issues were because of whoever I worked for). Most of the prod issues were with the client (hardware, wrong inputs, bad algorithm, etc).

Ah well. Another life that's passed me by.

cdr
carpediemracing is offline  
Old 11-19-10, 03:25 PM
  #323  
slynkie
negligent.
 
slynkie's Avatar
 
Join Date: Aug 2005
Location: White Plains, NY
Posts: 837

Bikes: a few

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
whoa, you're speakin' my language dude. i suppose i work on a competitor's product, though funnily enough i joined my department just a couple of months before you left yours.

you might be shocked (or not) to see the avg/peak throughputs feeds are pushing now. OPRA expects to hit spikes of 4 million msgs/sec soon, which is well over what can realistically be handled by a single gigabit ethernet line and that's before line arbitration. they split across multiple channels of course (24?), but it's still an astounding rate. and anyone who can actually handle that on a single box gets bragging rights..

oh, and latency expectations have gotten quite a bit lower too
slynkie is offline  
Old 11-19-10, 03:34 PM
  #324  
slynkie
negligent.
 
slynkie's Avatar
 
Join Date: Aug 2005
Location: White Plains, NY
Posts: 837

Bikes: a few

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by carpediemracing
I've lost touch with prod issues where I used to work but the software is very mature, written by the company head in 1987? (whenever banks could trade and brokers could bank) and developed from there for one of the banks (who wanted to trade). All in C, all following pretty rigid standards. As a programmer you can rely on the fact that everything will be treated the same (format, comments, etc).
if this is the company i think is, we've had some dealings with them. they had a really nice big break room with free coffee and snacks
slynkie is offline  
Old 11-19-10, 05:12 PM
  #325  
carpediemracing 
Senior Member
 
Join Date: Feb 2007
Location: Tariffville, CT
Posts: 15,405

Bikes: Tsunami road bikes, Dolan DF4 track

Mentioned: 36 Post(s)
Tagged: 0 Thread(s)
Quoted: 385 Post(s)
Liked 180 Times in 102 Posts
heh. I think you may work with some of the newer clients. The old client was, let's say, a blue blood type of place.

4 mil/sec is waaay over the infrastructure that I left behind. Way way way. No frickin' way way. We'd have to subscribe to selective instruments at that point or deal with some significant lag. I remember meetings where we were discussing OPRA rates. Everyone was looking at each other glumly. We were very proud of the fact that we could subscribe to everything, and going over our capacity would mean that we couldn't do that anymore. It was very depressing. I suppose parallel feeds with different data streams going into one massive infrastructure would work. Fiber lines to/from the exchange would help too, esp if you can locate the data center right next to the exchange's data center.

We were a middleware provider for a big bank until said bank got rid of all middleware providers (there were 2 significant ones, us and someone else). I supported the infrastructure in said big bank. Ironically since I had relatively high level access in the client's systems (in order to get clearances to perform support etc they put me into various groups) I had access to a lot of the plans to get rid of the middleware providers. I highly doubt it was intentional. It helped to see the writing on the wall though - the power point presentations on their exact plans were pretty fascinating.

There are other clients now but they're errr not quite as much under public scrutiny as a big bank.

I just remembered that we had free soda and snacks. When it was quiet I'd go help get the candy/chips - a full shopping cart worth, a couple hundred bucks, for 15 or so people. But our office wasn't really special and the break room wasn't fancy. We just had a ton of junk food.
carpediemracing is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.