Jump to content

Check out our Community Blogs


Member Since 22 Oct 2009
Offline Last Active Jul 15 2010 11:26 AM

Posts I've Made

In Topic: Another which programming language question :)

15 May 2010 - 09:10 PM

Most languages that are higher level than C++ are dynamically typed. I would guess that's because data types in higher level languages are more abstract, and they are built for greater convenience of use. If you want a high level language that is statically typed, the only thing that comes to my mind is Java, though I wouldn't say it's a good language to begin with. I think you should start with a language that gives you a sense of how programs are implemented (which would be on a lower level) before you go on to those whose purpose is making coding faster at the expense of performance.

In Topic: Help with Javascript

15 May 2010 - 09:03 PM

Could you phrase your question better? It's very confusing.

In Topic: Unix

20 April 2010 - 04:11 PM

The majority of web servers, as well as a large portion of supercomputers, embedded systems, smartphones, and enterprise systems run some form of Unix. It's definitely worth learning. It's fairly easy to learn the basics of Unix, and after that there's a whole new world to discover. I've been learning it for several months now, and almost every day I learn something new.

Even if you aren't planning to run a server or go into system administration, Unix opens up a whole new set of doors. Here are some of the things it gives you:

Compilers and interpreters for 20+ programming languages.
vi and Emacs, two of the most useful and powerful programming environments in existence.
Utilities for scheduling tasks to run at certain times.
The ability to connect to servers through FTP and SSH.
The ability to do things only a root user can do.
Access to hidden files.
A host of networking utilities.
Scripting languages for doing quick edits on large files almost instantaneously.
Access to hundreds of open-source software programs.

In Topic: countdown clock

20 April 2010 - 04:06 PM

You can easily make something that counts up or down using the window.setTimeout() function. window.setTimeout() tells the interpreter to call a function after a certain number of milliseconds.

function countdown(){
    document.getElementById('time').innerHTML = count;
    window.setTimeout( "countdown()", 1000 );

Something like that.

In Topic: I need advice on optimizing memory usage.

11 April 2010 - 01:07 PM

You are asking me to make assumptions about what you should and shouldn't know about C. There's no reason I should have to do that because you can _tell_ me if you don't know how to impelment something or don't understand a comment. Which is much better than complaining because someone corrected bad code.

I believe I stated in my first response to you that I am trying to teach myself C. If I knew enough to know of a better way to read files than using fgetc or fgets, then I probably would already know that fgetc and fgets were inefficient. And this still doesn't change the fact that your statements about my code had nothing to do with the problem I was having. I wasn't asking you to point out that I didn't use enough white space or anything like that. I can tell, and I was just trying to get it to work before improving on it. Anyway, I fixed all the bugs in the code and it works perfectly now.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download