And when I was younger, I was motivated sometimes by learning a new trick, or trying out a gameplay idea, being intrigued by things you see. If you're curious and have the right mentality you will have an enjoyable time learning to program. You'll hit a brick wall though if you want to write your operating system as a first foray. If you're older and have high expectations of your abilities, you can be much more easily frustrated than if you're a kid who is already fascinated by lights blinking at a constant rate. The internet provides all you need to learn to program but classes help to speed up learning.
The Big Programming Thread - Page 9
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. | ||
Badjas
Netherlands2038 Posts
And when I was younger, I was motivated sometimes by learning a new trick, or trying out a gameplay idea, being intrigued by things you see. If you're curious and have the right mentality you will have an enjoyable time learning to program. You'll hit a brick wall though if you want to write your operating system as a first foray. If you're older and have high expectations of your abilities, you can be much more easily frustrated than if you're a kid who is already fascinated by lights blinking at a constant rate. The internet provides all you need to learn to program but classes help to speed up learning. | ||
SonuvBob
Aiur21549 Posts
On July 12 2010 06:02 xLethargicax wrote: I've always wanted to learn a programming language. Whenever I seem to try from an internet source or a book, I just get so bored. The prospect of programming excites me, but I feel like there is no way for me to learn except for a class. Do you programmers just crave the thought of learning a language? or is it more enjoying the product? Will I ever be a programmer =[[[[[[[[[? Try fiddling around with some existing code (something simple) in whatever language you want to learn. Just start out making one small change at a time and see if it has the effect you expect (which is usually breaking it in an interesting way :p). You should be able to figure out what each piece of code does (use a reference for the more difficult stuff) and learn the basic syntax of the language pretty quickly. | ||
catamorphist
United States297 Posts
| ||
Adeny
Norway1233 Posts
| ||
Epsilon8
Canada173 Posts
On July 12 2010 07:04 Adeny wrote: So, I've decided to check out what's up in the .NET world, and coming from C++, it only seems natural to start at C#. So if you've been through the procces of filtering through online tutorials and sites, maybe you could throw me a hand in helping me pick the better resources? .Net is superb. You might want to check out the MSDN forums for information and I'm not 100 % sure but I believe Microsoft has tutorials on that site as well. If not its still the best repository of information and examples available. Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P | ||
catamorphist
United States297 Posts
On July 12 2010 07:04 Adeny wrote: Plus since its Microsoft you never have to worry about correctness or if the code is out of date. : P No idea what you mean here -- there's a lot of very crufty old (pre-generics) .NET code out there, much of it written by Microsoft. I write C# in my day job. Here are the generally most awesome C# resources I know of: http://stackoverflow.com - very C#-oriented, pretty much has a question about everything at this point, does a good job of bubbling good answers to the top. http://blogs.msdn.com/b/ericlippert/ - Lippert is on the C# compiler team and knows about every little corner case in the language. A ton of reasonably thought-provoking C# posts. http://community.bartdesmet.net/blogs/bart/default.aspx - Also a lot of interesting in-depth C# and .NET material. http://ayende.com/Blog/ - Likewise, although with a general focus on data access. | ||
Epsilon8
Canada173 Posts
On July 12 2010 07:18 catamorphist wrote: No idea what you mean here -- there's a lot of very crufty old (pre-generics) .NET code out there, much of it written by Microsoft. I write C# in my day job. Here are the generally most awesome C# resources I know of: http://stackoverflow.com - very C#-oriented, pretty much has a question about everything at this point, does a good job of bubbling good answers to the top. http://blogs.msdn.com/b/ericlippert/ - Lippert is on the C# compiler team and knows about every little corner case in the language. A ton of reasonably thought-provoking C# posts. http://community.bartdesmet.net/blogs/bart/default.aspx - Also a lot of interesting in-depth C# and .NET material. http://ayende.com/Blog/ - Likewise, although with a general focus on data access. Sorry that was a bit ambiguous. If it is crusty old code on MSDN it is marked; MSDN code examples have the version to which the example is applicable. MSDN has been very helpful to me personally : P. I'm not saying thats the only site I've used over the years but it is the main one that I have always had success with. | ||
saluber
United States22 Posts
| ||
jgad
Canada899 Posts
On July 12 2010 07:18 catamorphist wrote: No idea what you mean here -- there's a lot of very crufty old (pre-generics) .NET code out there, much of it written by Microsoft. I write C# in my day job. Here are the generally most awesome C# resources I know of: http://stackoverflow.com - very C#-oriented, pretty much has a question about everything at this point, does a good job of bubbling good answers to the top. Stack Overflow is much more than just C# oriented - it's a treasure trove for just about any language. Chances are that if you have a question about any language someone there will have an answer for you. Thumbs up for Stack Overflow, indeed. | ||
Hidden_MotiveS
Canada2562 Posts
| ||
Adeny
Norway1233 Posts
I have no idea how you did that, but you quoted the wrong guy, heh. | ||
BluzMan
Russian Federation4235 Posts
print ['i' in i for i in li] I don't know whether to love or hate Python. | ||
BluzMan
Russian Federation4235 Posts
On July 12 2010 06:02 xLethargicax wrote: I've always wanted to learn a programming language. Whenever I seem to try from an internet source or a book, I just get so bored. The prospect of programming excites me, but I feel like there is no way for me to learn except for a class. Do you programmers just crave the thought of learning a language? or is it more enjoying the product? Will I ever be a programmer =[[[[[[[[[? Learning from scratch unless you have a clear goal before you is one of the hardest things to do. Really, set a simple goal. Like: 1) Make a calculator (boring). 2) Make a Tetris clone (somewhat boring, but can be fun). 3) Make a web app that does something you need. Learning in the context of something you need is much more fun and easy. It's just a change of a viewpoint. Time after time, you encounter routine tasks when working with a computer. You can call yourself a programmer if time after time something clicks in your brain whispering: "There is no need to do this shit manually, a program can do that for me". I started from .bat scripting and grep. Yep, it's no big deal, but I really needed something to help me find relevant info in 4 MB text files. Then, I needed something to organize that info so that my work with those files would turn into running "log_parser.py" and emailing someone the results. Then, all of a sudden, I realized that I'm actually using REGEXP alot and can write applications that abuse it. The examples are limitless. Another good way to get into the shit is modding games (at least for people involved into TL.net since most of us are gamers). I started with simple triggers in StarEdit. Then, complex triggers in StarEdit. Then, alot of Lua scripting in King's Bounty: The Legend. Then, once again, all of a sudden I know Lua like if I was born a scripter. It's not hard, just change your mindset. There are limitless tasks that can be solved through programming. As soon as you have a goal, you learn fast and efficient. | ||
LuckyLuke43
Norway169 Posts
I've been googling for literally an hour straight today, and I googled last night before bed too. The problem is that cmd.exe _and_ command.com is opening realllly slow. it takes like 5-7 seconds to open. Sure, compiling from MSV this is understandable, but it even happens if I run either command from 'run'. With MSV open or closed, doesn't matter apparently. This is puzzling to me. What would make this happen, and maybe even more puzzling; why?? ![]() Any thoughts? thanks<3 Edit: I know this strictly isn't programming.. but in order to continue programming and keep spamming you guys with newbie programming questions, I need it fixed ![]() | ||
kar1181
United Kingdom515 Posts
| ||
Craton
United States17232 Posts
| ||
Adeny
Norway1233 Posts
in C++ i would do this: if (a[i] == b[ii]). However in C# I'm sitting on two arraylists (whatever the hell that is), and I want to loop through both of them the way you'd solved one of the bike-locks with codes... 001, 002, 003 etc. which I'd usually do by nesting for loops, i < 9, ii < 9 and so on... I don't know if I'm making any sense. Let's try again, what I'm looking for is a replacement to this, but with arraylists;
| ||
AssuredVacancy
United States1167 Posts
On July 13 2010 00:00 Adeny wrote: C# question time! in C++ i would do this: if (a[i] == b[ii]). However in C# I'm sitting on two arraylists (whatever the hell that is), and I want to loop through both of them the way you'd solved one of the bike-locks with codes... 001, 002, 003 etc. which I'd usually do by nesting for loops, i < 9, ii < 9 and so on... I don't know if I'm making any sense. Let's try again, what I'm looking for is a replacement to this, but with arraylists;
Dunno the syntax in C#, but in java it's ArrayList a = new ArrayList(); a.get(i);//gets the element at i a.set(i);//sets the element at i Although most of the time you could just use an iterator to loop through the items using a for each loop. | ||
![]()
MasterOfChaos
Germany2896 Posts
But why would you use a non generic container like ArrayList? Use the generic List<T>. If you are not using a generic list the contents are regarded as object, which means that == checks reference equality and ignores overloaded equality operators. I don't like the style too much though. I'd use foreach loops in this case. Or if you want to do it without loops just use linq. For example: return arrayA.Intersect(arrayB).Count()>0 this one doesn't support early out though since Count() evaluates the hole sequence. And to learn C# get the language standard. It contains a chapter which describes most of C# in a compact way. | ||
![]()
TanGeng
Sanya12364 Posts
On July 13 2010 00:00 Adeny wrote: C# question time! in C++ i would do this: if (a[i] == b[ii]). However in C# I'm sitting on two arraylists (whatever the hell that is), and I want to loop through both of them the way you'd solved one of the bike-locks with codes... 001, 002, 003 etc. which I'd usually do by nesting for loops, i < 9, ii < 9 and so on... I don't know if I'm making any sense. Let's try again, what I'm looking for is a replacement to this, but with arraylists;
I think that's done with a foreach keyword, but this doesn't stop at 9 but goes through the whole arrayList - longer or shorter.
as for your original syntax it might be valid as well. It depends on what is in your arrayList. | ||
| ||