3 Types of Programmers: Terran, Zerg and Protoss
The Big Programming Thread - Page 30
Forum Index > General Forum |
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. | ||
FirstBorn
Romania3955 Posts
3 Types of Programmers: Terran, Zerg and Protoss | ||
KaiserJohan
Sweden1808 Posts
On December 27 2010 16:55 Craton wrote: The vast majority of my work right now (.NET intern) deals with ASP.NET (I hate stateless programming so very, very much). A lot of what I do is fairly simplistic, but rather a pain in the ass to accomplish in the stateless world. Lots of converting legacy ASP to .NET, too. Example: Imagine you have an inventory system to keep track of your company's hardware (computers, printers, etc), including who is responsible, where it is, what it is, and so forth; it's all stored in a SQL Server DB. It's my job to make admin-accessible forms/pages so that someone could come in and get a nice chart-view of everything and make edits. Database design/modifications may or may not be required for any of what I do; it depends on what they want added or changed. If it's just straight convert old X to new X, it's usually doable in a few hours. It's pretty easy on paper and even easier for an experienced programmer, but glhf if you're still an ASP.NET novice. There are lots of ways to accomplish this, but actually doing it efficiently (so you're not whacking against the server/DB all the time) and in a way that's easily modified or read by someone else is a challenge in and of itself. I think a lot of introductory .NET jobs involve migrating old systems to .NET, so this is as good a place to start as any. If you do decide to play with ASP.NET, learn the page life-cycle well. Also get intimately familiar with how/when data is (or isn't) persisted. That alone will take awhile to get used to (I'm still working on it after a number of months). Did you have any experience working with databases or functional languages before? Finishing my last year of CS and I have no idea what they'll expect of you as a new CS graduate. Besdies from studies, in the past year I've been fiddling with C# and win32 (I really don't like MFC or CLI syntax but I guess I'll have to learn it >.<). | ||
stalking.d00m
213 Posts
![]() | ||
decaf
Austria1797 Posts
| ||
Adeny
Norway1233 Posts
On December 27 2010 22:11 decaf wrote: I just felt like pointing out that some of the languages you posted aren't programming languages. Btw, there isn't even C on that list.. :S Could you show me where in the OP it says "complete list of all programming languages every and no languages but programming languages"? | ||
Craton
United States17233 Posts
On December 27 2010 21:04 KaiserJohan wrote: Did you have any experience working with databases or functional languages before? Finishing my last year of CS and I have no idea what they'll expect of you as a new CS graduate. Besides from studies, in the past year I've been fiddling with C# and win32 (I really don't like MFC or CLI syntax but I guess I'll have to learn it >.<). I was pretty familiar with SQL and db interaction from code. I'd done ORACLE, MySQL, and SQL Server to varying degrees. I hadn't worked with stored procedures, but those aren't very hard to write and ours are pretty long (~2 pages) which get parsed (I'm not 100% sure what goes on behind the scenes) by our library to generate entity classes. I don't think I've used any functional languages. Even doing what I'm doing, I still feel my schooling was inadequate (which is frankly was; most of the courses at my school are a complete joke). You can get by with a lot of Googling + MSDN for .NET. My workplace doesn't really seem to expect much from interns/college graduates, so I guess underwhelming college courses isn't unusual. | ||
![]()
tofucake
Hyrule18968 Posts
On December 27 2010 22:11 decaf wrote: I just felt like pointing out that some of the languages you posted aren't programming languages. Btw, there isn't even C on that list.. :S So...what are they? Tools used in conjunction with "real" programming languages? | ||
decaf
Austria1797 Posts
On December 28 2010 01:05 tofucake wrote: So...what are they? Tools used in conjunction with "real" programming languages? I don't know, I would call some of them description language. For instance html, you describe web pages with it, but you can't program anything with this language. Most people don't know the difference anyways so it doesn't matter. | ||
fabiano
Brazil4644 Posts
C, C++, Java, etc are programming languages. MySQL, Oracle, Postgres, MS Access (lol) are database manager systems. SQL is a DB language (Right? Not sure if thats what you call it). | ||
catamorphist
United States297 Posts
On December 28 2010 01:05 tofucake wrote: So...what are they? Tools used in conjunction with "real" programming languages? What, CSS and HTML? They're DSLs. | ||
hegl
6 Posts
i've been programming as a hobby for some time, and am now learning it from the scratch in the university. one thing is driving me nuts though, as i am toying abit around with pointers. (this is C btw ![]()
this is working like i want it too, it prints: abc def def however, if i use this instead:
the output is abc def abc and, on top of things, if i use this:
the programm crashs. thanks for your help ![]() | ||
mmp
United States2130 Posts
On December 30 2010 05:24 hegl wrote: Hi guys, this feels so basic that i'm a bit embarrassed, but anyways: i've been programming as a hobby for some time, and am now learning it from the scratch in the university. one thing is driving me nuts though, as i am toying abit around with pointers. (this is C btw ![]()
this is working like i want it too, it prints: abc def def however, if i use this instead:
the output is abc def abc and, on top of things, if i use this:
the programm crashs. thanks for your help ![]() Haha welcome to the awesome world of C where everything makes perfect sense all the time. So in your first example, you pass the memory address formatted as a char pointer, so when you offset [0] [1] [2] it is from the address you passed in. This works by changing the data at foo in main, which you have write access to (in a nutshell, you declared a variable for it). Next, you take the foo from your local bar stack frame and point it to a constant '\d','\e','\f','\0' somewhere in read-only memory. During build, the linker stores this constant into a read-only segment and so foo refers to this read-only address, but you haven't changed foo in main. So your assignment changes the bar's foo's memory address from main's foo's array to this constant array. Note that in main you allocated the space for a 4-char-long string while in bar you simply declared a variable that will point to some char. bar doesn't actually allocate that space so an assignment like this effectively has to use some constant-value scratch space. For the above reason, it should be obvious why assignment operations fail. | ||
mgj
191 Posts
On December 28 2010 03:07 decaf wrote: I don't know, I would call some of them description language. For instance html, you describe web pages with it, but you can't program anything with this language. Most people don't know the difference anyways so it doesn't matter. Yes, they are all programming languages. Why is declarative programming languages (HTML, ect) less of a "programming language" than imperative programming languages(C, ect)? Because they describe what to do, instead of how? If thats the case, then what about logic languages such as Prolog? Are they not programming languages either? Its all just terminology-whoring, but you started it ![]() | ||
Pengu1n
United States552 Posts
| ||
Craton
United States17233 Posts
SELECT DISTINCT itm.*, ua.lastName + ', ' + ua.firstName as responsible_party, itmstatref.item_status_ref_name as item_status_ref_name, I basically only want to get the latest checkout of a given item, if existing, rather than a separate record for each time it was checked out (which is what I'm getting). I feel like I'm missing something obvious. | ||
mmp
United States2130 Posts
v v v Hegl: yeah C is very tricky. Don't be afraid to ask for help, it will save you many headaches. | ||
hegl
6 Posts
On December 30 2010 05:42 mmp wrote:+ Show Spoiler + On December 30 2010 05:24 hegl wrote: Hi guys, this feels so basic that i'm a bit embarrassed, but anyways: i've been programming as a hobby for some time, and am now learning it from the scratch in the university. one thing is driving me nuts though, as i am toying abit around with pointers. (this is C btw ![]()
this is working like i want it too, it prints: abc def def however, if i use this instead:
the output is abc def abc and, on top of things, if i use this:
the programm crashs. thanks for your help ![]() Haha welcome to the awesome world of C where everything makes perfect sense all the time. So in your first example, you pass the memory address formatted as a char pointer, so when you offset [0] [1] [2] it is from the address you passed in. This works by changing the data at foo in main, which you have write access to (in a nutshell, you declared a variable for it). Next, you take the foo from your local bar stack frame and point it to a constant '\d','\e','\f','\0' somewhere in read-only memory. During build, the linker stores this constant into a read-only segment and so foo refers to this read-only address, but you haven't changed foo in main. So your assignment changes the memory address from main's foo to this constant array. Note that in main you allocated the space for a 4-char-long string while in bar you simply declared a variable that will point to some char. bar doesn't actually allocate that space so an assignment like this effectively has to use some constant-value scratch space. For the above reason, it should be obvious why assignment operations fail. After reading every sentence about 10 times, i now understand it. thank you very much for your quick help! ![]() | ||
Craton
United States17233 Posts
On December 30 2010 06:01 mmp wrote: Craton, do you just want to pull out the first row after the ordering? It's a little unclear from what you've presented what your query is intending to do (I'm just a PHP amateur). Right now I get something like:
It's the same book, but it has been checked out (and back in) by Billy Bob and then checked out again by Joe Smith. Actually now that I think about I probably just need a where clause about the check-in date being null. Of course I can't test that because someone broke the DB server again, but it should be sufficient. | ||
mmp
United States2130 Posts
On December 30 2010 06:15 Craton wrote: Right now I get something like:
It's the same book, but it has been checked out (and back in) by Billy Bob and then checked out again by Joe Smith. Actually now that I think about I probably just need a where clause about the check-in date being null. Of course I can't test that because someone broke the DB server again, but it should be sufficient. You want the latest checkout, yes? Why don't you keep a key column that auto-increments the transaction number, so you can order by the last transaction? Or does your check-out date effectively do something like that? Correct me if I'm misreading your intent. | ||
Qzy
Denmark1121 Posts
| ||
| ||