|
Funk In Shoe posted:LIke I wasn't even aware until right now that there's apparently a difference in naming schemes for stuff where you either call a variable e.g. "myAge" or "my_age" but then you have to stick with that naming scheme? I've always just stored variables as whatever, like, "who cares" - some of my things have literally variables just called "n1" or "blalabla2_new" etc, all jumbled together. are you a phd/postdoc/professor?
|
# ? Sep 18, 2015 14:22 |
|
|
# ? May 25, 2024 08:54 |
|
MALE SHOEGAZE posted:haha oh man that's exactly how i did things in vbasic when I was learning
|
# ? Sep 18, 2015 14:22 |
|
Bloody posted:are you a phd/postdoc/professor? Yes
|
# ? Sep 18, 2015 14:24 |
|
working as intended, then
|
# ? Sep 18, 2015 14:24 |
|
lots of or most CS programs don't really teach you how to code well anyway don't worry about that. most of a CS department faculty writes horrendous code.
|
# ? Sep 18, 2015 16:27 |
|
Funk In Shoe posted:Thanks - I just plowed through "Learn python in a day and learn it well" and most of what it covered I already knew, just from playing around with delphi as a kid. I think a large part of my concern is -- as you say -- that I have never been taught in "best practice" or "proper ways" of doing stuff and while I can make stuff kind of sort of work, I have the distinct feeling that if anybody with a CS degree were to ever take a look at my coding they'd have several kinds of stroke.
|
# ? Sep 18, 2015 16:49 |
|
coffeetable posted:if you do decide on python, Think Python is a) free b) reasonably short c) very good for new programmers. then chase that with a more comprehensive book seconding Think Python because it's great also there's lots of moocs like coursera that use python, I unironically think you can get a pretty decent computer science foundation doing a bunch of them that's p much what I did lmao
|
# ? Sep 18, 2015 17:14 |
|
to be fair i was 11 and googling how to program never occurred to me. i just learned by reading the tutorials provided with the pirated very of vbasic my uncle gave me
|
# ? Sep 18, 2015 17:15 |
|
also dude your code works and is providing value to people. that's more than many programmers can claim.
|
# ? Sep 18, 2015 17:17 |
|
MALE SHOEGAZE posted:also dude your code works and is providing value to people. that's more than many programmers can claim. true but otoh, my code is so horrible I can barely tell what its doing most of the time myself. The sample below is the only function I ever commented, because I had to because whenever I would open it up I would be confused about wtf was even going on. Its called by a timer every 3 seconds to let the robots be in a sort of idle state where they make minimal/randomized changes to all their motor/servo positions to keep everything looking alive. The caveat was that when I first did this, I almost broke one of the machines when it randomly first whipped its "head/neck" tilt servo to position 0 and then instantly all the way to, like, around position 180. So I had to figure out a way to make that particular servo move in increments between random positions.... and Im dumb as hell so it took me like two days. Also when I wrote it I attached it to a Button (Tform1.button1click) and guess I was so excited I finally got it to work that I didnt bother make it a proper function. So now its just a timer that calls the button1click every 3 seconds whenever the robots are idle.... code:
edit: holy lol, reading my own post I just noticed this code:
Funk In Shoe fucked around with this message at 18:37 on Sep 18, 2015 |
# ? Sep 18, 2015 18:12 |
|
You're clearly smart, so don't doubt yourself. I didn't have a problem understanding the code you posted, even if it was pretty disorganized. IMO most "good" programming is really just knowing the art of keeping things tidy and easy to understand at first-read. It's a craft and takes time to learn, but it's not difficult to do. Focus on this for maybe 8-10 hours of practice and you'll improve a ton. Start writing and using functions to automate things you do often. The calls ClientSocket1.Socket.SendText are good candidates for this. Give them helpful names which describe what they do, but not how they do it. That's all, good luck!
|
# ? Sep 18, 2015 19:09 |
|
waiting on a call back to talk salary. any suggestions for negotiating?
|
# ? Sep 18, 2015 19:38 |
|
i never did anything meaningful with python but the amount of learning resources, the ease of use and syntax, and the number of libraries and their applications are huge. data analysis, sciency things, embedded systems of all kinds too. so if you're really wanting to sink your teeth into a new programming language like you are i'd go with it. python really looks to me like it's so popular because it's pretty much been shaped into something that a professional from any field with minimal or no programming knowledge could do meaningful things with in a very short amount of time. i wouldn't even buy a book. videos and books and wikis are just a search engine query away.
|
# ? Sep 18, 2015 19:57 |
|
Funk In Shoe posted:delphi code so that is why a couple of my coworkers have this annoying habit of declaring all local variables at the start of a method instead of putting them in context. They both have a Delphi background, but I had never actually seen delphi so I never made the connection.
|
# ? Sep 18, 2015 20:02 |
|
Blinkz0rz posted:waiting on a call back to talk salary. any suggestions for negotiating? If they give you a number you're happy with, say "I'm excited to start, but was thinking <5-10k> more since my *expertise in something* will bring you a lot of value". If they give you a number you don't like, say "I'm excited to work for you, but the typical pay is <a number you like + 5-10k>, but since I can bring your company a lot of value with my *expertise in something*, I was thinking more like <5-10k on top of that>". Don't give a number first, if most experienced negotiators are to believed.
|
# ? Sep 18, 2015 20:05 |
|
all this stuff you're talking about reminds me of when I was like 10 and some high schooler was teaching me visual basic 6.0. He never got around to teaching me about loops so I just didn't know they existed. Whenever I wanted something to happen repeatedly, I'd add another 'timer' thing to the program and put what I wanted in there. My frogger game had like 40 of those timers because I added one for each car on the road, etc. it was pretty bad.
|
# ? Sep 18, 2015 20:05 |
|
NihilCredo posted:so that is why a couple of my coworkers have this annoying habit of declaring all local variables at the start of a method instead of putting them in context. They both have a Delphi background, but I had never actually seen delphi so I never made the connection. I always thought that was a prehistoric C thing from when compilers weren't smart enough to figure out how far to move the stack pointer on their own.
|
# ? Sep 18, 2015 20:09 |
|
Illusive gently caress Man posted:all this stuff you're talking about reminds me of when I was like 10 and some high schooler was teaching me visual basic 6.0. He never got around to teaching me about loops so I just didn't know they existed. Whenever I wanted something to happen repeatedly, I'd add another 'timer' thing to the program and put what I wanted in there. My frogger game had like 40 of those timers because I added one for each car on the road, etc. it was pretty bad. Haha - I never really got past being 10 and using timers for everything. It's a huge embarrassment. Also loops and while stuff is hard. Some of my things have like, 3-4 different timers all turning each other on and off. Its a mess. NihilCredo posted:so that is why a couple of my coworkers have this annoying habit of declaring all local variables at the start of a method instead of putting them in context. They both have a Delphi background, but I had never actually seen delphi so I never made the connection. See this is why I am afraid that I might be doing myself a disservice by just doing Delphi stuff. I keep getting the feeling that its somehow antiquated or wrong and whenever I look at other languages they just look weird.
|
# ? Sep 18, 2015 20:27 |
|
meatpotato posted:I always thought that was a prehistoric C thing from when compilers weren't smart enough to figure out how far to move the stack pointer on their own. Sorta. The original ANSI C language spec said that declarations had to be at the top of the current block/scope. But it's easy enough for a compiler -- even a prehistoric one -- to scan an entire function at a time and find all the declarations, and then behave as if they were at the top. (After all, C doesn't have constructors, so ordering doesn't really matter; you just need to figure out how many bytes you're putting on your stack.) So, most compilers of the 90s would let you get away with declaring them anywhere, as long as they were declared before use. Funk In Shoe posted:See this is why I am afraid that I might be doing myself a disservice by just doing Delphi stuff. I keep getting the feeling that its somehow antiquated or wrong and whenever I look at other languages they just look weird. Delphi is antiquated. But I wouldn't call it "wrong" -- it's just another language. (I'd be very concerned for my future career if it was the only language I knew, though.)
|
# ? Sep 18, 2015 20:28 |
|
meatpotato posted:If they give you a number you're happy with, say "I'm excited to start, but was thinking <5-10k> more since my *expertise in something* will bring you a lot of value". If they give you a number you don't like, say "I'm excited to work for you, but the typical pay is <a number you like + 5-10k>, but since I can bring your company a lot of value with my *expertise in something*, I was thinking more like <5-10k on top of that>". that's exactly what i did. just negotiated a cool six and a half figgies plus 10% bonus per quarter plus stock options
|
# ? Sep 18, 2015 20:34 |
|
Blinkz0rz posted:that's exactly what i did. just negotiated a cool six and a half figgies plus 10% bonus per quarter plus stock options take me with you
|
# ? Sep 18, 2015 20:36 |
|
meatpotato posted:I always thought that was a prehistoric C thing from when compilers weren't smart enough to figure out how far to move the stack pointer on their own. it was, though it wasn't for that reason, it was more so they didn't have to make their symbol table for a function quite as dynamic as it could be i.e. a shortcut that was probably appropriate on 16-bit systems with tens to hundreds of kilobytes of memory and hundreds of kilobytes to several megabytes of storage same reason most symbols were limited to 8 characters in C: compactness of data structures in the compiler, linker, etc. actually mattered at the time
|
# ? Sep 18, 2015 20:45 |
|
ullerrm posted:Sorta. The original ANSI C language spec said that declarations had to be at the top of the current block/scope. But it's easy enough for a compiler -- even a prehistoric one -- to scan an entire function at a time and find all the declarations, and then behave as if they were at the top. (After all, C doesn't have constructors, so ordering doesn't really matter; you just need to figure out how many bytes you're putting on your stack.) you and I have different definitions of "prehistoric," that stuff in C originated in the 1970s, UNIX on 32-bit hardware with a megabyte or two of memory wasn't even a thing until 1980 or so quote:Delphi is antiquated. But I wouldn't call it "wrong" -- it's just another language. (I'd be very concerned for my future career if it was the only language I knew, though.) I'd also suggest that Delphi isn't even really dead since you can still use it to target modern platforms (iOS, Android, .NET) and there's another vendor that makes their own interoperable stuff (RemObjects with Oxygene) also to the Delphi user: your code really isn't that bad for your level of experience and honestly you should be able to pick up C# pretty easily, since it's basically "C-flavored Delphi" I'd actually recommend you focus on that as your second language (rather than Python), because is relative familiarity will make it easier but it'll still help you figure out what's common to all programming (besides pain), just like learning a second language makes learning your third easier even if your second is Spanish and your third (say) Japanese
|
# ? Sep 18, 2015 20:53 |
|
Blinkz0rz posted:that's exactly what i did. just negotiated a cool six and a half figgies plus 10% bonus per quarter plus stock options NICE
|
# ? Sep 18, 2015 21:11 |
|
this thread is becoming the true Current Job Status thread
|
# ? Sep 18, 2015 21:23 |
|
Your Current Programming Job is a Piece Of poo poo
|
# ? Sep 18, 2015 21:47 |
|
more like dICK posted:use a buffer. use nio what exactly is the benefit of this, over using the straightforward language construct that does exactly what I need? like, all my code has is a huge fixed-length table of floats that needs efficient random access lookups. that's exactly what an array is. how is this improved by wrapping the array in another class that was intended for a different purpose and provides no extra functionality that's useful for my code?
|
# ? Sep 18, 2015 22:00 |
|
ullerrm posted:Delphi is antiquated. But I wouldn't call it "wrong" -- it's just another language. (I'd be very concerned for my future career if it was the only language I knew, though.) I'm not that concerned about my future career (I'm in a completely different field and just branching out due to an interest in these things) - it's not like I have any sort of credentials that could ever land me a programming job anyway, and heaven forbid I ever end up in a situation where I would need to pursue one.... Still, I feel like I am actively limiting my own development and learning by sticking to a language nobody uses. (secondary question: how come nobody is using it? Embarcaderos Delphi XE8 seems like a really neat tool for developing stuff that works on both android, mac and windows? I'm sure theres something about it being clunky or slow or hard to implement in large organizations or something, but to me, it just seems kinda neat? Is it something to do with the fact that its a language thats really limited in the sense that you have to actually buy and pay for the particular software suite to use it?
|
# ? Sep 18, 2015 22:04 |
|
it's a niche language with a name that people associate with the 1990s and basically no mindshare. at that point it doesn't matter how good or bad it is, it's going to struggle to gain users and the single commercial source just adds another barrier.
|
# ? Sep 18, 2015 22:14 |
|
Soricidus posted:what exactly is the benefit of this, over using the straightforward language construct that does exactly what I need? It's not.
|
# ? Sep 18, 2015 22:17 |
|
Funk In Shoe posted:(secondary question: how come nobody is using it? much (most?) of the value of a language is in its ecosystem
|
# ? Sep 18, 2015 22:18 |
|
I was gonna say I hate how Delphi makes you declare all variables for a function in a block at the beginning of the function, because it means people just duplicate verbose or expensive expressions like five times instead of scrolling aaaaall the way up, adding a new variable, and scrolling aaaaall the way to where they were in the function but i just realized what our actual problem is
|
# ? Sep 18, 2015 22:19 |
|
coffeetable posted:non-free => small community => poo poo ecosystem And that's why Microsoft is cool again.
|
# ? Sep 18, 2015 22:19 |
|
coffeetable posted:non-free => small community => poo poo ecosystem This makes sense. Kinda makes me wish I'd happened on one of the more popular languages back when my brain was still malleable enough to learn new things.
|
# ? Sep 18, 2015 22:23 |
|
FL Studio is written in Delphi
|
# ? Sep 18, 2015 22:54 |
|
Toady posted:FL Studio is written in Delphi Amazing.
|
# ? Sep 18, 2015 23:09 |
|
variables should be declared as close to their usage as possible makes refactoring easier and feels good
|
# ? Sep 19, 2015 00:07 |
|
https://www.youtube.com/watch?v=v9DeX5njbXM
|
# ? Sep 19, 2015 00:34 |
|
Toady posted:FL Studio is written in Delphi there's supposedly at least one DAW vendor who was seriously considering Haiku digital audio workstation developers are weird
|
# ? Sep 19, 2015 05:03 |
|
|
# ? May 25, 2024 08:54 |
|
I read somewhere that the early versions of Skype were written in Delphi, too
|
# ? Sep 19, 2015 06:51 |