|
Thread: Official Programming Thread | This thread is pages long: 1 2 3 · «PREV / NEXT» |
|
TheDeath
Responsible
Undefeatable Hero
with serious business
|
posted February 09, 2010 10:04 PM |
|
|
Quote: and with C you also have to get .NET.
You're confusing C with that piece of crap C#
Unless you mean "Visual Studio" from Microsoft which, yeah, it's a bloated piece of ****. You'd be crazy to install that on a clean system.
____________
The above post is subject to SIRIOUSness.
No jokes were harmed during the making of this signature.
|
|
ihor
Supreme Hero
Accidental Hero
|
posted February 09, 2010 10:07 PM |
|
|
Quote: C# is crap btw. Personal taste tho
I don't agree. Why do you think so?
|
|
Shares
Supreme Hero
I am. Thusly I am.
|
posted February 09, 2010 10:09 PM |
|
|
Yep, visual studio sucks. Unless you're learning, in which case it's good the first couple of hours, and then in the way. We have it in school. It saddens me that my teacher is such a pathetic programmer.
____________
|
|
TheDeath
Responsible
Undefeatable Hero
with serious business
|
posted February 09, 2010 10:14 PM |
|
|
Quote:
Quote: C# is crap btw. Personal taste tho
I don't agree. Why do you think so?
Non-native compilation. If someone wants that, use Java ffs. It has all the hallmarks of Java and very few of C... it's a disgrace to the C(++) family of languages.
And the garbage collector? Seriously?
Makes for some very lazy and poor programmers with a lot of mistakes in their code that will be there forever because they go unnoticed since they're cleared (at a performance loss obviously) by "the almighty garbage collector".
Instead of learning proper memory allocation you go the cheap route of having the system clean your mistakes, not in the CODE, but at runtime! (i.e the 'mistakes' are in the code all well).
____________
The above post is subject to SIRIOUSness.
No jokes were harmed during the making of this signature.
|
|
ihor
Supreme Hero
Accidental Hero
|
posted February 09, 2010 10:27 PM |
|
|
C'mon guys, these are empty words. I have never seen something better from Borland than VS. Or you prefer to code in notepad?
The vast majority of professionals work in VS and nobody complains too much. Some rare crashes are annoying but it is enough suitable to work.
Quote:
Non-native compilation. If someone wants that, use Java ffs. It has all the hallmarks of Java and very few of C... it's a disgrace to the C(++) family of languages.
And the garbage collector? Seriously?
Makes for some very lazy and poor programmers with a lot of mistakes in their code that will be there forever because they go unnoticed since they're cleared (at a performance loss obviously) by "the almighty garbage collector".
Instead of learning proper memory allocation you go the cheap route of having the system clean your mistakes, not in the CODE, but at runtime! (i.e the 'mistakes' are in the code all well).
I am absolutely indifferent what kind of compilation is used in C#.
As for garbage collector: this is not novelty of C#, it was taken from earlier languages like SmallTalk... I agree that it makes C# the bad choice for real-time applications but in general I consider it as an advantage. In any case you can clean memory manually using GC class.
____________
Your advertisement could be
here only for 100$ per day.
|
|
Shares
Supreme Hero
I am. Thusly I am.
|
posted February 09, 2010 10:30 PM |
|
|
Quote: C'mon guys, these are empty words. I have never seen something better from Borland than VS. Or you prefer to code in notepad?
Yes?
____________
|
|
ihor
Supreme Hero
Accidental Hero
|
posted February 09, 2010 10:33 PM |
|
|
Will the answer change if you had VS2008 installed on your computer?
____________
Your advertisement could be
here only for 100$ per day.
|
|
TheDeath
Responsible
Undefeatable Hero
with serious business
|
posted February 09, 2010 10:34 PM |
|
|
Quote: C'mon guys, these are empty words. I have never seen something better from Borland than VS. Or you prefer to code in notepad?
The vast majority of professionals work in VS and nobody complains too much. Some rare crashes are annoying but it is enough suitable to work.
How many IDEs have you tried? Seriously? If you go to notepad as an example instantly after VS in your list of choices, I'd have you need to do more research. Personally I like notepad++ for small projects, but you know... most open-source software is made on Linux, and guess what, it's done in C...
oh and VS is M$ product for destroying your Windows system.
Quote: I am absolutely indifferent what kind of compilation is used in C#.
Non-native apps cannot run directly, they need a "virtual CPU" to run them. Needless to say they are slow... and also that means you need something installed: .NET, or Java Virtual Machine, or something like that, to be able to run them. Problem is, it makes your abilities and programming "power" severely weakened.
Quote: As for garbage collector: this is not novelty of C#, it was taken from earlier languages like SmallTalk... I agree that it makes C# the bad choice for real-time applications but in general I consider it as an advantage. In any case you can clean memory manually using GC class.
Of course, but I was talking of C# as an extension of the C family line... which does not have garbage collectors. So in that sense it IS a 'new' thing compared to the rest of the family
____________
The above post is subject to SIRIOUSness.
No jokes were harmed during the making of this signature.
|
|
Shares
Supreme Hero
I am. Thusly I am.
|
posted February 09, 2010 10:34 PM |
|
Edited by Shares at 22:39, 09 Feb 2010.
|
Three of them. C++, C# and VB.
But when I think about it, I haven't tried all the aspects of them.
"By optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment."
LOL!
Curses upon spam protection! Can't post any more today so good night to all!
____________
|
|
TheDeath
Responsible
Undefeatable Hero
with serious business
|
posted February 09, 2010 10:36 PM |
|
|
|
ihor
Supreme Hero
Accidental Hero
|
posted February 09, 2010 10:44 PM |
|
|
@TheDeath
Yea, I also use notepad++ sometimes, quite nice program . I worked with Delphi 7 and C++ for some period, and I didn't like the interface, though it was 2 years ago.
Quote: oh and VS is M$ product for destroying your Windows system.
Windows system is self-destroying .
|
|
dimis
Responsible
Supreme Hero
Digitally signed by FoG
|
posted February 17, 2010 07:59 PM |
|
|
|
Geny
Responsible
Undefeatable Hero
What if Elvin was female?
|
posted February 17, 2010 09:27 PM |
|
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted February 17, 2010 09:56 PM |
|
|
I find the above pretty good read, also containing some decent observations and conclusions. I already can see in the university a vast group of people who barely understand a subject of programming and base only on repetitive tasks or already prepared code, and a bunch of computer maniacs who have already hacked the world or have five operating systems installed.
Ah, and myself trying to possess these skills.
Quote: The reason is simple; you can tailor each program and do exactly what you want, and in many cases you can do it faster than using these "huge libraries".
But you know, it may not be resonable to optimize your encoding and user interface for a program which only resizes photos. If a software is not performance-critical, the time (and skill) to develop will make up for the lack of optimization. Who cares whether this photo resizer uses a half or five megabytes of memory for a couple of minutes monthly...
I use Notepad++ mainly for managing the tracklists or work with some text in non-plain format (such as HTML or H3 text files), but writing a serious progrma in it sounds unlikely. Only MVS allows to manage and understand the content of project including dozens and hundreds of files, such as VCMI. Without this tool I will never find out what are the relations between specific classed crossing in many aspects of game code (which, however, is resonably architectured).
____________
The future of Heroes 3 is here!
|
|
ihor
Supreme Hero
Accidental Hero
|
posted February 18, 2010 09:17 AM |
|
|
I mostly agree with said in article and with Warmonger
|
|
pei
Famous Hero
Fresh Air.
|
posted February 18, 2010 01:10 PM |
|
|
Ive found only regret in Java IDE´s and i feel confortable w/VS 05.
Ive done some very little php...and i think it has potential but even with the frameworks it cant convince me yet.
VB?no thanks.
Some languages feel like reinventing the wheel...but they can be much better than other high-level languages.
From what i know C++ its both (high level and low level language) plus being efficent and compatible with C.
Perhaps its cause i never gave it a try and its seemed more practical to just "DROP" some already made controls on the screen and start playing with VS, which by far wins the most client smiles by its look (win forms ofc).
Now im doing ASP.NET, using nhibernate,javascript and ajax (which both SHOULD have a debugger included in the VS) and i think that what is achieved so easily w/this technology could be a headache in others and vice versa.
Im also using SQL Server 05 but im a MySQL fan.
|
|
Corribus
Hero of Order
The Abyss Staring Back at You
|
posted March 05, 2010 10:28 PM |
|
|
I have a programming question that maybe someone who knows something about C programming.
I use a program called Origin for data analysis. Origin utilizes a C-based language for programming (among other things) function fitting routines. I need to write my own program for fitting data a particular function, but I know next to nothing about programming. I asked for some help at the Origin boards, and they pointed me towards a wiki tutorial for how to program a similar function (actually it's not that similar). the hope is that I can adapt this program for my own needs with a minimal knowledge of how to program myself. Of course, this is contingent upon understanding each line of the existing program.
So, if someone is so inclined, could you click on this link, read through the program, and explain to me exactly what the following lines are telling the program to do?
dIntegral += dTrapezia;
x -= dStep;
I.e., with a little more detail than "Accumulate Area". I'd like to know how those two lines accumulate the area. I understand the program up until that point, but at that point I'm lost.
____________
I'm sick of following my dreams. I'm just going to ask them where they're goin', and hook up with them later. -Mitch Hedberg
|
|
dimis
Responsible
Supreme Hero
Digitally signed by FoG
|
posted March 05, 2010 10:54 PM |
|
Edited by dimis at 22:57, 05 Mar 2010.
|
Quote: explain to me exactly what the following lines are telling the program to do?
dIntegral += dTrapezia;
x -= dStep;
There is nothing special Corribus. You just integrate with the "usual notion" of integration; i.e. you approximate the integral with a bunch of rectangles. Each rectangle has
* width dStep (= \Delta x in the picture) and
* the height is the average of the function at the endpoints x0 and x0 - dStep.
If dStep is small, you have a good approximation (you have to go through a little bit of Numerical Analysis here).
You accumulate the area with the first command
dIntegral += dTrapezia;
The other command is there, so that you perform the same thing for other pairs (x0, x0 - dStep) by reducing x by dStep.
In other words dIntegral holds the total amount of area as you calculate it, and dTrapezia is the value of each small rectangle that you compute as x takes different values.
Another way of thinking these commands is:
dIntegral = dIntegral + dTrapezia; (i.e. add to variable dIntegral the value dTrapezia)
x = x - dStep; (i.e. subtract from the variable x the quantity dStep)
____________
The empty set
|
|
Corribus
Hero of Order
The Abyss Staring Back at You
|
posted March 05, 2010 11:04 PM |
|
|
Well I figured it was nothing special. I just am unfamiliar with the notation "+=" and "-=".
But thank you for clearing that up.
I will try to figure out how to do this myself, but I reserve the right to ask for more help here.
____________
I'm sick of following my dreams. I'm just going to ask them where they're goin', and hook up with them later. -Mitch Hedberg
|
|
dimis
Responsible
Supreme Hero
Digitally signed by FoG
|
posted March 05, 2010 11:13 PM |
|
Edited by dimis at 23:16, 05 Mar 2010.
|
Check post #5 (Assignment Conventions) here. That is the right thread for C. Besides, people in this thread don't like C.
____________
The empty set
|
|
|