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 06-03-16, 10:22 AM
  #1476  
No matches
 
Flatballer's Avatar
 
Join Date: Aug 2008
Location: Eastern PA
Posts: 11,647

Bikes: two wheeled ones

Mentioned: 15 Post(s)
Tagged: 0 Thread(s)
Quoted: 1398 Post(s)
Liked 444 Times in 250 Posts
I guess pointers are frustrating and especially so for beginners. And you can certainly write very involved programs in a high level language without ever needing to learn what a pointer is or does or how to write a sort algorithm or anything like that. So maybe there's no need to learn those things anymore, just call the library function and move on.

myList.Sort();

Done!

edit: and I think your maybe on Perl should probably be a definitely not. It's such an arcane language with insane syntax and ridiculous flexibility that will allow you to write completely garbage code that works, and many people do. $| = 1 turns off buffering in Perl. Where the heck did that global variable come from? Is that in any way readable to a person who doesn't know Perl very well? To make matters worse the common idiom in Perl code is $|++ instead, despite that being a global variable you didn't create and don't know that it's 0.

Last edited by Flatballer; 06-03-16 at 10:27 AM.
Flatballer is offline  
Old 06-03-16, 10:29 AM
  #1477  
**** 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 Flatballer
I guess pointers are frustrating and especially so for beginners. And you can certainly write very involved programs in a high level language without ever needing to learn what a pointer is or does or how to write a sort algorithm or anything like that. So maybe there's no need to learn those things anymore, just call the library function and move on.

myList.Sort();

Done!
For beginners yeah, I think pointers are just overkill.

That said any serious programmer should know how to wield them, eventually. You can do cool stuff with function pointers. But in higher level languages they're just a "delegate" and much easier to deal with.

Anyway I think people should start at a high level to get the basics, then dig deeper over time.

Assembly language is really cool, but really really hard. Can't believe people used to start with that!!

MOV 0x1111 EAX
PUSH EAX
POP EAX

Did a little bit of x85 asm in college and was blown away. Makes C seem like child's play!
__________________
cat 1.

my race videos
mattm is offline  
Old 06-03-16, 10:52 AM
  #1478  
Nonsense
 
TheKillerPenguin's Avatar
 
Join Date: Sep 2004
Location: Vagabond
Posts: 13,918

Bikes: Affirmative

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 880 Post(s)
Liked 541 Times in 237 Posts
Learning PHP as a starting language was cool because I could dive in quickly, but it teaches SO MANY BAD HABITS that you have to consciously unlearn. Something like C which does not suffer fools would be dope to know. It is on my list (with all of my spare time...)
TheKillerPenguin is offline  
Old 06-03-16, 11:05 AM
  #1479  
Tyrannosaurus Rexitis
 
Harlan's Avatar
 
Join Date: Mar 2011
Location: Cape Cod, MA
Posts: 934

Bikes: Scott Addict 6870

Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Quoted: 60 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by mattm

Assembly language is really cool, but really really hard. Can't believe people used to start with that!!
I had to teach myself ASM during a college internship (already had taken a C++ class) and implement a third order polynomial for some sensor (I used to work for a data logger company) I think soil moisture. Pretty sure they still sell that logger, with my code on it. I was way better at writing C code to test the finished product. Good times. I miss coding sometimes - I just did a little Teraterm macro for my current job. Still got it!
Harlan is offline  
Old 06-10-16, 09:03 AM
  #1480  
commu*ist spy
 
spectastic's Avatar
 
Join Date: Aug 2012
Location: oregon
Posts: 4,459
Mentioned: 17 Post(s)
Tagged: 0 Thread(s)
Quoted: 653 Post(s)
Liked 5 Times in 5 Posts
How much hard drive capacity do you guys use? I want to think 128g ssd is adequate, because i hate having clutter of stuff that are of no practical utiliy. However, the diminishing return in price is also enticing
spectastic is offline  
Old 06-10-16, 09:32 AM
  #1481  
Nonsense
 
TheKillerPenguin's Avatar
 
Join Date: Sep 2004
Location: Vagabond
Posts: 13,918

Bikes: Affirmative

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 880 Post(s)
Liked 541 Times in 237 Posts
I'm using 161gb after 1.5 years with the same computer. 57.5 of that is media and I could live without it pretty easily.
TheKillerPenguin is offline  
Old 06-10-16, 10:02 AM
  #1482  
Ninny
 
Join Date: Jan 2010
Location: The Gunks
Posts: 5,295
Mentioned: 53 Post(s)
Tagged: 0 Thread(s)
Quoted: 686 Post(s)
Likes: 0
Liked 1 Time in 1 Post
Really once you know one procedural language you know them all, one OO language, etc. I don't have a resume, but if I did, the "pure" languages on it (in the order I learned them) would be basic, cobol, awk, perl, lisp, tcl, C, C++, java, python, php, ruby, objective C, ASM, lua. I'm sure I'm forgetting some. "Pure" meaning not bash, SQL, latex, etc.
globecanvas is offline  
Old 06-10-16, 10:14 AM
  #1483  
No matches
 
Flatballer's Avatar
 
Join Date: Aug 2008
Location: Eastern PA
Posts: 11,647

Bikes: two wheeled ones

Mentioned: 15 Post(s)
Tagged: 0 Thread(s)
Quoted: 1398 Post(s)
Liked 444 Times in 250 Posts
Originally Posted by spectastic
How much hard drive capacity do you guys use? I want to think 128g ssd is adequate, because i hate having clutter of stuff that are of no practical utiliy. However, the diminishing return in price is also enticing
Does your laptop have space for a small form factor ssd plus a magnetic drive? That's what I did. 500GB drive I think, then I added a 128GB ssd. If you have that, or an external drive to keep media on, 128 is plenty. Also depends on if you program or do anything else that takes huge space. VS2015 is something like 15GB now I think. Larger than Windows 10.
Flatballer is offline  
Old 06-10-16, 10:48 AM
  #1484  
**** 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 globecanvas
Really once you know one procedural language you know them all, one OO language, etc.
Indeed.

Except for Objective-C; its syntax really threw me for a loop!
__________________
cat 1.

my race videos
mattm is offline  
Old 06-10-16, 10:49 AM
  #1485  
¯\_(ツ)_/¯
 
Ygduf's Avatar
 
Join Date: Jun 2008
Location: Redwood City, CA
Posts: 10,978

Bikes: aggressive agreement is what I ride.

Mentioned: 109 Post(s)
Tagged: 0 Thread(s)
Quoted: 967 Post(s)
Likes: 0
Liked 4 Times in 4 Posts
I prefer subjective-C
Ygduf is offline  
Old 06-10-16, 10:52 AM
  #1486  
**** 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
That's just like, your opinion, man.
__________________
cat 1.

my race videos
mattm is offline  
Old 06-10-16, 10:59 AM
  #1487  
Ninny
 
Join Date: Jan 2010
Location: The Gunks
Posts: 5,295
Mentioned: 53 Post(s)
Tagged: 0 Thread(s)
Quoted: 686 Post(s)
Likes: 0
Liked 1 Time in 1 Post
Originally Posted by mattm
Indeed.

Except for Objective-C; its syntax really threw me for a loop!

I also had a hard time learning objective C, and I still have to think too much when I use it to keep from leaking objects or whatever. It's sort of pasted together from 2 very different languages.
globecanvas is offline  
Old 06-10-16, 12:13 PM
  #1488  
Senior Member
 
Join Date: Mar 2021
Posts: 789
Mentioned: 33 Post(s)
Tagged: 0 Thread(s)
Quoted: 71 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by globecanvas
Really once you know one procedural language you know them all, one OO language, etc. I don't have a resume, but if I did, the "pure" languages on it (in the order I learned them) would be basic, cobol, awk, perl, lisp, tcl, C, C++, java, python, php, ruby, objective C, ASM, lua. I'm sure I'm forgetting some. "Pure" meaning not bash, SQL, latex, etc.
lol he said "cobol"

and did you never learn APL? That was one of my faves...could do amazing stuff, but illegible, you could never figure out what you'd done...
happybday29475 is offline  
Old 06-11-16, 02:44 PM
  #1489  
commu*ist spy
 
spectastic's Avatar
 
Join Date: Aug 2012
Location: oregon
Posts: 4,459
Mentioned: 17 Post(s)
Tagged: 0 Thread(s)
Quoted: 653 Post(s)
Liked 5 Times in 5 Posts
anyone tried to hack their garmin 500 unit? The only thing I really want to do is alter the data fields on my navigation page, so that I can look at 3s power and lap time while training on a preloaded course. That can't be too hard, right?

I've thought about getting a 520 for this reason, but I'd rather learn a little bit about coding.
spectastic is offline  
Old 06-12-16, 06:33 AM
  #1490  
Rides too much bike
 
dz_nuzz's Avatar
 
Join Date: Nov 2013
Location: Boston
Posts: 842
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Quoted: 232 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
I already looked into Trying to hack the firmware of the Garmin units. Unless you have a way of decompiling their firmware I would guess you are SOL.
dz_nuzz is offline  
Old 06-12-16, 10:46 AM
  #1491  
commu*ist spy
 
spectastic's Avatar
 
Join Date: Aug 2012
Location: oregon
Posts: 4,459
Mentioned: 17 Post(s)
Tagged: 0 Thread(s)
Quoted: 653 Post(s)
Liked 5 Times in 5 Posts
Originally Posted by dz_nuzz
I already looked into Trying to hack the firmware of the Garmin units. Unless you have a way of decompiling their firmware I would guess you are SOL.
what if you make your own update?
spectastic is offline  
Old 06-12-16, 02:46 PM
  #1492  
Elite Fred
Thread Starter
 
mollusk's Avatar
 
Join Date: Aug 2005
Location: Edge City
Posts: 10,945

Bikes: 2009 Spooky (cracked frame), 2006 Curtlo, 2002 Lemond (current race bike) Zurich, 1987 Serotta Colorado, 1986 Cannondale for commuting, a 1984 Cannondale on loan to my son

Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Quoted: 60 Post(s)
Liked 42 Times in 19 Posts
I have been doing some consulting with a huge multi-national firm and it has gone fubar. I have delivered 95% of the code and only just got paid for 50%. My invoices and Statement of Work has vanished from my billing portal. I was supposed to have a net meeting with my contact last Friday and I told him about the weirdness and he didn't show for the net meeting and now its crickets with my emails. What I delivered will save them huge amounts of engineering man-hours. FRAK!
mollusk is offline  
Old 06-12-16, 05:48 PM
  #1493  
Killing Rabbits
 
Join Date: Apr 2005
Posts: 5,697
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Quoted: 278 Post(s)
Liked 217 Times in 102 Posts
Originally Posted by mollusk
I have been doing some consulting with a huge multi-national firm and it has gone fubar. I have delivered 95% of the code and only just got paid for 50%. My invoices and Statement of Work has vanished from my billing portal. I was supposed to have a net meeting with my contact last Friday and I told him about the weirdness and he didn't show for the net meeting and now its crickets with my emails. What I delivered will save them huge amounts of engineering man-hours. FRAK!
Tell them you found a mistake in the code, that should restore communications.
Enthalpic is offline  
Old 06-12-16, 07:28 PM
  #1494  
Super Moderator
 
Homebrew01's Avatar
 
Join Date: Jul 2004
Location: Ffld Cnty Connecticut
Posts: 21,843

Bikes: Old Steelies I made, Old Cannondales

Mentioned: 12 Post(s)
Tagged: 0 Thread(s)
Quoted: 1173 Post(s)
Liked 927 Times in 612 Posts
Originally Posted by globecanvas
Really once you know one procedural language you know them all, one OO language, etc. I don't have a resume, but if I did, the "pure" languages on it (in the order I learned them) would be basic, cobol, awk, perl, lisp, tcl, C, C++, java, python, php, ruby, objective C, ASM, lua. I'm sure I'm forgetting some. "Pure" meaning not bash, SQL, latex, etc.
No love for RPG ?
__________________
Bikes: Old steel race bikes, old Cannondale race bikes, less old Cannondale race bike, crappy old mtn bike.

FYI: https://www.bikeforums.net/forum-sugg...ad-please.html
Homebrew01 is offline  
Old 06-12-16, 07:56 PM
  #1495  
No matches
 
Flatballer's Avatar
 
Join Date: Aug 2008
Location: Eastern PA
Posts: 11,647

Bikes: two wheeled ones

Mentioned: 15 Post(s)
Tagged: 0 Thread(s)
Quoted: 1398 Post(s)
Liked 444 Times in 250 Posts
Originally Posted by mollusk
I have been doing some consulting with a huge multi-national firm and it has gone fubar. I have delivered 95% of the code and only just got paid for 50%. My invoices and Statement of Work has vanished from my billing portal. I was supposed to have a net meeting with my contact last Friday and I told him about the weirdness and he didn't show for the net meeting and now its crickets with my emails. What I delivered will save them huge amounts of engineering man-hours. FRAK!
Damn. That's crazy. Seems like you should be able to get your money eventually, but it will be a huge pain. I guess huge multi-national also means deep pockets and lots of lawyers. You'd think it would also mean "we won't screw you" but who knows. Hopefully there's an explanation.
Flatballer is offline  
Old 06-13-16, 12:23 AM
  #1496  
**** 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 Flatballer
edit: and I think your maybe on Perl should probably be a definitely not. It's such an arcane language with insane syntax and ridiculous flexibility that will allow you to write completely garbage code that works, and many people do. $| = 1 turns off buffering in Perl. Where the heck did that global variable come from? Is that in any way readable to a person who doesn't know Perl very well? To make matters worse the common idiom in Perl code is $|++ instead, despite that being a global variable you didn't create and don't know that it's 0.
@Flatballer just saw this, you're right about perl. python is a better replacement.

And yeah the whole $| for buffering, $? for last exit code (?), and $! for last error... some weird **** going on there.

But in some cases you need perl (at least I have, when it's the only scripting available on some weird platform), so it has come in handy. But learning? Yeah, no.
__________________
cat 1.

my race videos
mattm is offline  
Old 06-13-16, 03:55 AM
  #1497  
Rides too much bike
 
dz_nuzz's Avatar
 
Join Date: Nov 2013
Location: Boston
Posts: 842
Mentioned: 22 Post(s)
Tagged: 0 Thread(s)
Quoted: 232 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Originally Posted by spectastic
what if you make your own update?
Doesn't really work like that. You would never be able to make your update from scratch. The best you could do is take a firmware file and try to decompile / reverse engineer it. The problem is that you need to know what was initially done to compile that firmware. That can be based upon many factors including but not limited to what the processor's chipset instruction sets are, how memory works inside the unit, etc. More or less, you would need to break into the Garmin servers / workplace and steal their compiler settings.
dz_nuzz is offline  
Old 06-13-16, 05:35 AM
  #1498  
Ninny
 
Join Date: Jan 2010
Location: The Gunks
Posts: 5,295
Mentioned: 53 Post(s)
Tagged: 0 Thread(s)
Quoted: 686 Post(s)
Likes: 0
Liked 1 Time in 1 Post
Originally Posted by mattm
@Flatballer just saw this, you're right about perl. python is a better replacement.

And yeah the whole $| for buffering, $? for last exit code (?), and $! for last error... some weird **** going on there.

But in some cases you need perl (at least I have, when it's the only scripting available on some weird platform), so it has come in handy. But learning? Yeah, no.

Python has plenty of quirks too, arguably more fundamental ones even. If we're just talking about an an entry point to learning programming, imo Perl is as fine as Python. You won't be setting any magic variables in a hello world or guess the number type of context.

But both of those languages are sort of behind the times now (Perl especially), and the most relevant issue is that both of those particular languages impose a state of mind on the programmer. I have always been annoyed by Python's rigid rules for code structure on the screen and personally I have always loved the loosey-goosey state of mind that Perl enables or even encourages. But neither of those is an especially portable state of mind. I've never really thought about it in these terms before, but starting with something like PHP does have the advantage that it encourages a very linear state of mind without being forcing you to spend too much time on the language specifics. I find programming in PHP a bit boring myself but for that very reason it's probably a better place to start than Python or Perl.
globecanvas is offline  
Old 06-13-16, 09:57 AM
  #1499  
Nonsense
 
TheKillerPenguin's Avatar
 
Join Date: Sep 2004
Location: Vagabond
Posts: 13,918

Bikes: Affirmative

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 880 Post(s)
Liked 541 Times in 237 Posts
TKP needs his curly brackets!
TheKillerPenguin is offline  
Old 06-13-16, 10:42 AM
  #1500  
Senior Member
 
furiousferret's Avatar
 
Join Date: Jan 2006
Location: Redlands, CA
Posts: 6,313
Mentioned: 31 Post(s)
Tagged: 0 Thread(s)
Quoted: 842 Post(s)
Liked 469 Times in 250 Posts
My first language was Java, then C++. I haven't coded for a few years now though, stuck as a server admin.
furiousferret 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.