My geek thread
#1476
No matches
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.
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.
#1477
**** that
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
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!
myList.Sort();
Done!
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!
#1478
Nonsense
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...)
#1479
Tyrannosaurus Rexitis
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
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!
#1480
commu*ist spy
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
#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.
#1483
No matches
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
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.
#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
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.
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...
#1489
commu*ist spy
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.
I've thought about getting a 520 for this reason, but I'd rather learn a little bit about coding.
#1490
Rides too much bike
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.
#1491
commu*ist spy
#1492
Elite Fred
Thread Starter
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!
#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
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!
#1494
Super Moderator
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
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.
__________________
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
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
#1495
No matches
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 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!
#1496
**** that
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
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.
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.
#1497
Rides too much bike
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
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.
#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
@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.
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.