|
Thanks for ur beautiful reply. My name is Chandan Patra, I stay at Kolkata, India, I am almost a novice in true sense, being a Commerce Graduate I still find programming a great entertainer, and I just love it. I had Learned C some five years back, but got a job in Life Insurance industry [far away from programming].. Now desperately trying to come back to join the IT at this age of 30.. but opportunities are only for Computer engineers. But I want to start it over again... Now joined a company where I do some VB6 coding, Revising my C/C++ books.. need suggestion from your end...
What I should be learning immediately in order to survive and be a part of good programmers community?
Really looking forward to your answers.
|
|
|
|
|
Hello again, Chandan, and sorry for a late reply.
Its good to know that you are coming back to programming, and don't worry about your age, it doesn't matter here, you can always do something which you love
If you have done C/C++ in past then you should really jump into C# as soon as you can. Just take *ANY* C# book and read it all, from title to index. Then you need a copy of C# Black Book (http://www.amazon.com/Black-Book-Comprehensive-Problem-Paraglyph/dp/1932111174) on you desk when you start coding... and when you are fluent with the language, you wont possibly need anything, there is plenty of help and this huge community on internet to solve *any* problem you might have.
Get a copy of VS 2010 Express and you are in!
good luck
|
|
|
|
|
Dear checkmate, I really appreciate ur such a nice mail. I was a bit down finding no reply from ur end, thinking that advanced users like U may be wasting ur time after me. I am truly glad that u replied. I accepted all ur suggestions, will surely do it.
Thanks and regards .. Chandan
|
|
|
|
|
You are welcome friend
Happy coding.
|
|
|
|
|
What processor were you using that had a "jump far" instruction whose effect could be simulated with many shorter jumps? Were you using a 68000 and with the "bra" instruction rather than "jmp"? The "near jmp" instruction on the 8088 can't go between segments; were you using something else?
BTW, I have done some creative code-rearranging on some cycle-critical stuff for processors where conditional branches were limited to +/-127 instructions and I couldn't afford excessive jmp's. From a design standpoint, a horror, but it made things work which would otherwise take too long.
|
|
|
|
|
We were using 8088 Assembly and i was using simple "jmp" instruction which has limitation to +/- 127 bytes.
And i forgot to mention that my this 65K lines of code produced an executable of only 3.5K bytes... how about that?
Cheers
|
|
|
|
|
I've got a co-worker, who has done some great job in producing handsome and easy to understand pieces of code. The previos pearl was a 238 lines method, and when I asked to refactor it, he told that it was just fine.
Still, this one is my favorite. (The name of the metHod is not that important)
<pre>public void SendMetod<T, T1, T2>(IEnumerable<T> t)
where T: class
where T1: class
where T2: class</pre>
For some company issues I cannot post the method itself(a nice piece of work too, trust me), but it's header is adorable. T, T1, T2 and t is kinna brain explosive
-- Modified Thursday, September 2, 2010 5:53 AM
|
|
|
|
|
T2 was one of those rare movies where the sequel was better than the original. I understand what T1 and T2 are, but what is T? A prequel, perhaps? In any event, I'm glad they're making it with class.
|
|
|
|
|
Ha-ha)
Probably you are right. In this case, what does "t" stands for?
Most likely (bc it is an instance of T), this is from the first Terminator, the one that got smashed by Sarah Connor during the final battle inside the factory.
Luckily, the author of that generic is not a fan of Aliens series )
|
|
|
|
|
aspdotnetdev wrote: I understand what T1 and T2 are, but what is T?
It's a typo... I think, he was suppose to write T0 ...
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
|
|
|
|
|
Finding good names for things is always difficult!
I have seen names like T, T0, T1, T2. A truly odd pattern
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
Yeah ) From time to time I (and many other programmers) also got stuck when it comes to naming ))
Probably, the part of the problem is that people who don't know generics usually google the first working example and rather often it uses such naming. To make things worse, Microsoft's MSDN website also "teaches" such generics namings.
However, common sence should have won in my co-workers's case. Besides, he could have looked at other generics in that very same project, where type arguments are named like "TWrapper" or "TBaseObject" and thus bear some helpful info. Obvoiusly, exploding my poor brain with a whole bunch of T's wasn't a good option
|
|
|
|
|
I have seen shops where they think that T1, T2, etc is poor naming. Instead their standard is to use T, U, V; a far better naming convention.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
I didn't think I would get voted a 2 on my post. Maybe they didn't notice the wink? Or perhaps they like the T, U, V naming convention?
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
SELECT VALADMREC INTO vVALADMREC FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT PF INTO vPF FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT TDP INTO vTDP FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT DP INTO vDPA FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT DPR INTO vDPR FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT TIPODESRES INTO vTIPODESRES FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT PAGOPREV INTO vPAGOPREV FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT Prima INTO vPORCPRIMA FROM CUSTOMERS WHERE IDTYPE =linea;
SELECT TIPO_TERCERO INTO vTIPOTERCERO FROM CUSTOMERS WHERE IDTYPE =linea;
|
|
|
|
|
I don't see the problem...why can't that be valid in the right context?
|
|
|
|
|
That is valid, but is not necesary to create a SELECT stmt by each field, just creating SELECT field1, field2, field3 INTO var1, var2, va3... can get the values in one line.
|
|
|
|
|
It looks like each table being inserted into is different. That cannot be done with one line. There might be a good reason for that.
|
|
|
|
|
I think those vXXXXX thingies are (local) variables in the procedure and no tables.
|
|
|
|
|
You are correct sir
I need an app that will automatically deliver a new BBBBBBBBaBB (beautiful blonde bimbo brandishing bountiful bobbing bare breasts and bodacious butt) every day.
John Simmons / outlaw programmer
|
|
|
|
|
In SqlServer unless those were declared somewhere it would create a table vXXXXX for each statement, if you wanted an assignment it would just be SELECT vXXXX = XXXX from table. You can string as many of those together in one statement as you like afaik.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
No, variables have "@" in front of them. For example:
DECLARE @SomeVariable int
SELECT @SomeVariable
A SELECT INTO statement copies one set of values into a new table (it creates the new table).
|
|
|
|
|
This is PL/SQL, not T-SQL. (Oracle, not SQL Server)
|
|
|
|
|
|
Hey! Where did you get my code?!! o_O
|
|
|
|