Are you actually using expressions in production? I saw them as neat in the abstract, but have never found a use for them. Are you serializing non-SQL functions for storage or something?
Well, if you're using Linq to SQL, you're using them, even if you don't know it. But yeah, I've done a few minor things to build an expression tree, such as implementing a Linq OrderBy that took a string of the name of the property to sort by rather than a statically typed reference to the type property. I also did a sample Linq implementation that just output the tree to the screen in order to better understand how they work. I've thought about putting together a simple compiler using them just for the fun of it, but I haven't found the time.
Not sure where you're getting the "don't know how to program" crap. Java is the one with training wheels. C# has operator overloading, pointers (if you want 'em), closures, anonymous methods, covariance, contravariance, and a slew of other advanced features that require skill to properly implement. Not to mention LINQ + expression trees, which in itself is a reason to switch twice over.
When it comes to strongly-typed JIT compiled languages, C# wins hands down. Java fans tend to look down on.NET, but that's mostly a defense mechanism. At some point someone probably told you you were 1337 for using Java. The truth is that Java was made for people who would like to use C++ but can't understand pointers. C# has its share of idiots too, but it's got features for those of us who know how to code as well.
I, for one, would avoid using the terms ".NET" and "safe" in the same paragraph. I realize they are talking about safe from patent trollage, but it implies that someone would actually want to, you know, actually USE.net or Mono by choice.
Do you not understand big-O? Using bubble sort or selection sort vs. quick sort or merge sort is not an "order of magnitude difference"... sorting 1000 items with selection sort should be on the order of 100 times slower than with merge sort. Sorting 100000 items would be on the order of 10000 times slower. That should be easy to illustrate even on the fastest hardware today. All you have to do is increase the number of sorted items and plot the results, and you have your convincing time difference data.
Dude, that was exactly my point. Go check out the link.. You'll find that even modern hardware isn't powerful enough to brute force most of those problems. There's usually an obvious solution that's O(n^3) or so, but you have to find the one that's O(n^1/2) to solve it before you die.
Does the.NET rename not just invoke the win32 system call? Never investigated the issue very thoroughly, but I find don't see what's so obvious about what's happening under the hood, aside from an extra layer of abstraction.
That can much more effectively be done by concentrating purely about Big O rather than hardware tweaks. Just tell them to do problems from project euler and they'll get a good appreciation for algorithm efficiency.
I worked at a small company where I was the sole developer, and had access to the production system. I was able to make changes and roll them out quickly, and only once or twice did I screw something up (and I was able to fix it right away). The problem is that users started coming to me instead of the sysadmin when they had problems. Then the sysadmin/tech support guy got all butt-hurt about it and declared that he would no longer support anything I wrote. As a result, I ended up having to spend way too much time teaching users how to use their computers (half the time it didn't even have to do with any code I wrote) and didn't have enough time to perform my primary job function.
I'm sure you'll say I should have just refused to provide tech support. But when you work for a small company where half the employees are either family members or personal friends of the person who signs your paycheck, that's not always a possibility.
It's not so much teacup pissing as herding cats.. It's hard to build a top-down integrated solution without people on (the same) payroll. The only thing that saved it for the back end is the fact that everyone generally agreed to do things the *nix way.
Would you people stop mixing up your units of measure? LoC is a unit of data, whereas cross country railroads are a form of currency that varies in value from day to day depending on the stock market.
Actually, "hacked" and "dongle" are words that have gone together since at least the 80's. Although it is important to point out that this isn't exactly a dongle, as a dongle is designed a copy protection device.
What people don't seem to understand is that this medication is basically just a strong cup of coffee with a time release coating. How many of you have philosophical objections to that? There must be a lot of Mormons on this board.
As someone who has been diagnosed with ADHD and had tried every drug out there for it (I don't take any of them now), I can tell you that this is not the case. Coffee merely staves off sleep; Ritalin, Adderol, et. al. cause a hyper-focused, irritable state.
Maybe if you had done better in school you could afford to go back to college now. But it's always somebody else's fault, isn't it?
Where the fuck did you get the idea that I did poorly in school? I got straight A's through primary school, and a 3.5 in college without trying (or even going to class that often).
One further point.. It's precisely because I did so well in school that I didn't do so well in the working world. I thought everything would be easy because school, my only frame of reference, was so damn easy. If we would actually challenge kids in school, they wouldn't have this problem. But go on thinking you're doing such a good job as a teacher because the dumbest kid in your 5th grade class is finally starting to learn to read.
Maybe if you had done better in school you could afford to go back to college now. But it's always somebody else's fault, isn't it?
Where the fuck did you get the idea that I did poorly in school? I got straight A's through primary school, and a 3.5 in college without trying (or even going to class that often).
Most of the teachers I had when I was in school neglected lesson planning, and instead assigned pointless busy work like writing vocab words 20 times...
Ridiculous. Any teacher who did this would be fired. Despite what you think, there are methods of control and evaluation in place for teachers to make sure they acutally, you know, teach. I'm not saying there aren't bad teachers, but you said "most." You went through an entire district with nothing but bad teachers? Where were the principals? The school board? Did you not have standards to meet? I mean, really.
Wow, who lacks an education now? Learn the difference between "most" and "all". But yes, the vast majority of my teachers didn't do shit. People who teach for a living get irritated to no end when I tell them this (my wife especially), but all school was a waste of my time until my upper division college courses.
Teachers running out of stuff to teach? Do you have any idea how much essential grade-level curriculum is condensed or even cut just to get it to fit into a school year?
Sound to me that you mistake "not entertaining" as busywork. My guess would be that if you really did have a teacher having you do 50 repetitive math problems and vocabulary exercises it's because you didn't do your homework, probably because your family didn't find education to be a priority, and they had to waste class time to reinforce concepts. Sorry, school isn't all fun and games. Sometimes learning is hard and takes work. Not everything a teacher puts in front of you is going to be a game.
You sound like everything that is wrong in America today. You want it fun, easy, and you want it now. If it's time consuming or involves work, forget it.
No, dip shit. If you must know, I was the first one done on practically every assignment. I spent the lecture time doing homework so that I could spend my few precious hours at home doing something I wanted to do, rather than filling it with more repetitive busy work. And once I was done with all my "take home" work (usually by about noon), I would read a book, and get in trouble for reading when I didn't have any other work to do.
And you know what pisses me off the most about it? Because I never had to do anything hard, I always thought school was easy, boring, and pointless. Only after the last year or so of college did I find out otherwise. Now I'd really love to go back and get my MS or PhD, but I could never afford it (got a family to support).
Most of the teachers I had when I was in school neglected lesson planning, and instead assigned pointless busy work like writing vocab words 20 times each or doing 50 math problems where 10 would do. School really only needs to be about 4 hours long. Any longer than that and the kids lose focus, and the teachers run out of stuff to teach.
It's to make sure that when the Germans invade next time they'll be forbidden from either a.) renaming the town, or b.) declaring a new center of Europe.
Well, it's deceptive.. Basically, a duck isn't in the pond if it's only half in the pond. And before you ask, an incomplete duck (one missing a wing or whatever) still counts as a duck in a pond, so long as the remaining parts of the duck are in the pond. The floor function is just to help when calculating each duck's proportion in the water (all or nothing) when using floating point math.
Are you actually using expressions in production? I saw them as neat in the abstract, but have never found a use for them. Are you serializing non-SQL functions for storage or something?
Well, if you're using Linq to SQL, you're using them, even if you don't know it. But yeah, I've done a few minor things to build an expression tree, such as implementing a Linq OrderBy that took a string of the name of the property to sort by rather than a statically typed reference to the type property. I also did a sample Linq implementation that just output the tree to the screen in order to better understand how they work. I've thought about putting together a simple compiler using them just for the fun of it, but I haven't found the time.
Not sure where you're getting the "don't know how to program" crap. Java is the one with training wheels. C# has operator overloading, pointers (if you want 'em), closures, anonymous methods, covariance, contravariance, and a slew of other advanced features that require skill to properly implement. Not to mention LINQ + expression trees, which in itself is a reason to switch twice over.
.NET, but that's mostly a defense mechanism. At some point someone probably told you you were 1337 for using Java. The truth is that Java was made for people who would like to use C++ but can't understand pointers. C# has its share of idiots too, but it's got features for those of us who know how to code as well.
When it comes to strongly-typed JIT compiled languages, C# wins hands down. Java fans tend to look down on
I, for one, would avoid using the terms ".NET" and "safe" in the same paragraph. I realize they are talking about safe from patent trollage, but it implies that someone would actually want to, you know, actually USE .net or Mono by choice.
As opposed to Java? Damn right I'd use Mono.
Oops, sorry.. The slashdot layout made it look like you were responding to me, not to him.. Carry on.
Do you not understand big-O? Using bubble sort or selection sort vs. quick sort or merge sort is not an "order of magnitude difference"... sorting 1000 items with selection sort should be on the order of 100 times slower than with merge sort. Sorting 100000 items would be on the order of 10000 times slower. That should be easy to illustrate even on the fastest hardware today. All you have to do is increase the number of sorted items and plot the results, and you have your convincing time difference data.
Dude, that was exactly my point. Go check out the link.. You'll find that even modern hardware isn't powerful enough to brute force most of those problems. There's usually an obvious solution that's O(n^3) or so, but you have to find the one that's O(n^1/2) to solve it before you die.
arg.. ignore "find". My grammar is way off today.
Does the .NET rename not just invoke the win32 system call? Never investigated the issue very thoroughly, but I find don't see what's so obvious about what's happening under the hood, aside from an extra layer of abstraction.
That can much more effectively be done by concentrating purely about Big O rather than hardware tweaks. Just tell them to do problems from project euler and they'll get a good appreciation for algorithm efficiency.
I worked at a small company where I was the sole developer, and had access to the production system. I was able to make changes and roll them out quickly, and only once or twice did I screw something up (and I was able to fix it right away). The problem is that users started coming to me instead of the sysadmin when they had problems. Then the sysadmin/tech support guy got all butt-hurt about it and declared that he would no longer support anything I wrote. As a result, I ended up having to spend way too much time teaching users how to use their computers (half the time it didn't even have to do with any code I wrote) and didn't have enough time to perform my primary job function.
I'm sure you'll say I should have just refused to provide tech support. But when you work for a small company where half the employees are either family members or personal friends of the person who signs your paycheck, that's not always a possibility.
It's not so much teacup pissing as herding cats.. It's hard to build a top-down integrated solution without people on (the same) payroll. The only thing that saved it for the back end is the fact that everyone generally agreed to do things the *nix way.
Would you people stop mixing up your units of measure? LoC is a unit of data, whereas cross country railroads are a form of currency that varies in value from day to day depending on the stock market.
Actually, "hacked" and "dongle" are words that have gone together since at least the 80's. Although it is important to point out that this isn't exactly a dongle, as a dongle is designed a copy protection device.
You could buy a cross country railroad for that kind of money!
What people don't seem to understand is that this medication is basically just a strong cup of coffee with a time release coating. How many of you have philosophical objections to that? There must be a lot of Mormons on this board.
As someone who has been diagnosed with ADHD and had tried every drug out there for it (I don't take any of them now), I can tell you that this is not the case. Coffee merely staves off sleep; Ritalin, Adderol, et. al. cause a hyper-focused, irritable state.
Maybe if you had done better in school you could afford to go back to college now. But it's always somebody else's fault, isn't it?
Where the fuck did you get the idea that I did poorly in school? I got straight A's through primary school, and a 3.5 in college without trying (or even going to class that often).
One further point.. It's precisely because I did so well in school that I didn't do so well in the working world. I thought everything would be easy because school, my only frame of reference, was so damn easy. If we would actually challenge kids in school, they wouldn't have this problem. But go on thinking you're doing such a good job as a teacher because the dumbest kid in your 5th grade class is finally starting to learn to read.
Maybe if you had done better in school you could afford to go back to college now. But it's always somebody else's fault, isn't it?
Where the fuck did you get the idea that I did poorly in school? I got straight A's through primary school, and a 3.5 in college without trying (or even going to class that often).
Ridiculous. Any teacher who did this would be fired. Despite what you think, there are methods of control and evaluation in place for teachers to make sure they acutally, you know, teach. I'm not saying there aren't bad teachers, but you said "most." You went through an entire district with nothing but bad teachers? Where were the principals? The school board? Did you not have standards to meet? I mean, really.
Wow, who lacks an education now? Learn the difference between "most" and "all". But yes, the vast majority of my teachers didn't do shit. People who teach for a living get irritated to no end when I tell them this (my wife especially), but all school was a waste of my time until my upper division college courses.
Teachers running out of stuff to teach? Do you have any idea how much essential grade-level curriculum is condensed or even cut just to get it to fit into a school year?
Sound to me that you mistake "not entertaining" as busywork. My guess would be that if you really did have a teacher having you do 50 repetitive math problems and vocabulary exercises it's because you didn't do your homework, probably because your family didn't find education to be a priority, and they had to waste class time to reinforce concepts. Sorry, school isn't all fun and games. Sometimes learning is hard and takes work. Not everything a teacher puts in front of you is going to be a game.
You sound like everything that is wrong in America today. You want it fun, easy, and you want it now. If it's time consuming or involves work, forget it.
No, dip shit. If you must know, I was the first one done on practically every assignment. I spent the lecture time doing homework so that I could spend my few precious hours at home doing something I wanted to do, rather than filling it with more repetitive busy work. And once I was done with all my "take home" work (usually by about noon), I would read a book, and get in trouble for reading when I didn't have any other work to do.
And you know what pisses me off the most about it? Because I never had to do anything hard, I always thought school was easy, boring, and pointless. Only after the last year or so of college did I find out otherwise. Now I'd really love to go back and get my MS or PhD, but I could never afford it (got a family to support).
Most of the teachers I had when I was in school neglected lesson planning, and instead assigned pointless busy work like writing vocab words 20 times each or doing 50 math problems where 10 would do. School really only needs to be about 4 hours long. Any longer than that and the kids lose focus, and the teachers run out of stuff to teach.
Haha, see what I mean?
He actually has one.. And he's a dick, too.
*wink* exactly!
Hey, just because you can break a peace treaty doesn't mean you can commit IP infringement!
It's to make sure that when the Germans invade next time they'll be forbidden from either a.) renaming the town, or b.) declaring a new center of Europe.
yes but we all not what happened to Netscape. We can only pray IE suffers the safe fate.
That it gets abandoned, and a team of open source coders picks it up?
Well, it's deceptive.. Basically, a duck isn't in the pond if it's only half in the pond. And before you ask, an incomplete duck (one missing a wing or whatever) still counts as a duck in a pond, so long as the remaining parts of the duck are in the pond. The floor function is just to help when calculating each duck's proportion in the water (all or nothing) when using floating point math.