Jump to content

jam08060

Member
  • Posts

    159
  • Joined

  • Last visited

Posts posted by jam08060

  1. Congrats on the 1 Million mark!

     

    I initially started watching Linus Tech Tips pretty close to the beginning when it was spawned off of NCIX Tech Tips and just stuck around for the slight randomness that seemed to be a constant theme in the videos.

     

    My favorite series is actually just the new string of videos on ChannelSuperFun because of the shenanigans but is closely followed up by all of the videos where Fractal Design purchased the ad slot >:D.

     

    One style of video I would like to see done that I can't remember if you guys have done yet is one on gaming snacks.  Something kind of like the handy tech videos but for gaming snacks is what I was thinking...

     

    I'm not really interested in the surface pro if I am selected, but I would definitely be interested in the gaming rig or the G550J.

  2. i'm just curious if people need some more indepth clarification on why this is unbelievably stupid.

     

    1.  he just said that every single device needs to be programmed with it's own unique program even when it's the same device.

     

    2.  an oven has several thousand microprocessors inside of it.

     

    what kind of comoany do you work for exactly?

     

    All I'm allowed to say is that the company I work for makes memory.

     

    I cannot say anything more than that.

     

    And as far as the original post is concerned... If you decide to go the laptop route, I'd suggest something highly portable and not as much of a desktop replacement gaming notebook...

  3. And? They're university servers.

     

    Excuse me... I read your post too quickly and thought you said when you access the servers you use editors other than command line based editors...

     

    What I was saying is that in the industry there are a huge number of servers that developers will run into that will only have things like VIM, nano, or emacs...

  4. There are only two IDEs I would suggest for C++: Visual Studio or IntelliJ with the C/C++ plugin.

     

    Otherwise I suggest Emacs :D and a compiler (I'd recommend Clang with the LLVM backend, Open Watcom, or gcc for teh newbz)

  5. I know you guys want him good, but you just make him busy to learn proper python, then he wil go to javascript(since he is using unity), then he will go to java, and when he will be stuck on performance issues with java and he will go to c++ :D

    My opinion and solution which worked for me was  C++ .  I didnt learn C beacuse i somewhere found an article about how it is outdated (this was something like 2006) so i bought myself a huge ass C++ book with 1600 pages  and started word by word, learning and it was so greatly explained i learn c++ in maybe year i was thinking in it. Although,  today I use Unity and java it was really easy to learn java after hard head cracking with c++.

    Since i am currently programming on android, and few games in unity, iam not using c++ but without it i wouldnt learn any other language (which i use) in less then two months.

     

    My Friend Nicolas  Although best for you would be c++ , i know that you want to code games in Unity.  Therefore i know you dont want to spend year learning C or Cplus plus when you cant use it in unity.

     

    Therefore, learn javascript syntax, and buy a c# book.  Better to code in javascript since as begginer you will be struggling with Unity mechanics itself.

    So basically if you think you code game which will be popular like Notch's minecraft and you will be milionare and then never worry about in depth programming , go for unity and javascript. However if you want to be a good developer with stable job (even in you own company) better to learn something which is used in daily life.

     

    Minecraft was written in Java... Unity never touched it 0.o

     

    C is also not out dated at all... its probably the most widely used language in the world (thanks to embedded applications) and is also always valid C++ code so it is always worth while to learn C before learning C++.

  6. i know linux people like to think this....but they're dead wrong.

     

    c has an INCREDIBLY small developer-base nowadays (the days of genuinely novel kernels is long gone).  c++ is much stronger, but it's really not that important nowadays (fronted by microsoft office and game programming).

     

    java IS the banking industry programming language. if you don't know java, good luck getting a job based on merits alone.

     

    web technologies are king: js, php, ruby on rails.  objective-c is the next one after those.

     

    when you make web apps, you use the tools that your company is willing to pay for and can buy support for (aka insurance).  that is usually visual studio.

     

     

    remember, you only talk about your preferred tools when you either have no competitors or you're below 50% of the marketshare (that being different from mindshare).  vim users talk ALOT.

     

    LOL.. I'm not sure you read anything I said in my previous post... also, your understanding of the developer base for C is flat out wrong.

    I could argue the developer base for C is the strongest of any language to date; the reason being is that 99% of all embedded applications are written in C.  People don't program microprocessors / microcontrollers with js, php, or ruby on rails.

    And I could argue that the market share for embedded applications is much stronger than the market share for the internet as a whole.

    There are >7Billion people on the earth (as of 2012) with an average of 1.5 devices (laptops, phones, etc...)

    This does not include vehicles, corporations, household appliances, etc...

    When you think about the many components inside each of these devices that all require code to work (sometimes thousands of components), you can clearly see the market share for C increase (99% of these programs are written in C).

     

    What you affiliate with programming is web development.

     

    I could go on here... but its not really worth the time to continue...

     

    Finally, for the majority of programming, text editors, in general, remain king not IDEs...

  7. Perhaps, but even assuming your statistics are true, that may change over time. More and more editors and IDE's are around now then there used to be and many new programmers don't have preferences for old favourites. For example I know very few people in my Comp Sci program that use Emacs or VI(M). Maybe they will pick them up during their career, maybe they wont. I personally don't use either but then again, most of my development is using Windows for .NET and mobile platforms so it's probably not where they shine.

     

    You are pretty much required to learn VI(M) if you ever interact with linux based servers...

    It is the only editor that is guaranteed to be on such machines...

  8. Weird, all of my teacher said it was a pain to work with for 3D and the game I saw prove it was pretty poor graphic wise.

     

    Edit: Also just remembered something, looked at a the book of a friend once (+500 page of Java), it had about everything except code for 3D.

     

    Well, Minecraft is 3D and entirely written in Java; so I'mnot entirely sure what your point is here...

     

    I develop Java, C, and C++ code... These languages are all static type languages and have comparable performance levels...

     

    Languages that do not compare to Java, C, and C++ in performance are dynamic style languages like python and perl...

     

    Hope this clears a bit up...

  9. C and then C++ and learn OpenGL

     

    My reasoning:

    • All of C is valid C++ code, so you will already be learning a good portion of C++ by learning C.
    • C++ is pretty much the creme de la creme of Object Oriented languages when it comes to performance.
    • OpenGL is the most widely supported graphics library and should be learned regardless of what languages you decide to learn.
    • When learning C and C++ you will learn much more than just being able to design games, you may even discover something you would rather do than game design.
    • I'm extremely biased toward C and C++ because I am a scientific programmer and value their flexibility and performance.

    Hope this helps :D

  10. Well I mean in this day and age. :P

     

    We do currently do C programming with a text editor and GCC to compile it for school, but it's more for learning than actual practical reasons.

     

    When I want to get real work done I usually only use Emacs and a relevant compiler...

  11. So, here is a list of features I look for in a programming notebook starting with the most important...

    • 8GB Ram - I find myself consistently caching around 6.5-7 GB of ram when I'm programming since I usually run a virtual machine or two and generally have a billion chrome tabs open...
    • 1080p+ resolution display (IPS) - I hate tn panels with a passion and anything under 1080p just doesn't provide me with enough screen real estate...
    • 128GB+ SSD - Just makes everything faster... literally... everything... boot times, program loading times, drive-thrus, lines at theme parks... everything...
    • i5, or i7 Quad Core CPU - It doesn't really matter to me whether or not it has hyper threading, the most important part for me is having 4 real cores.
    • Good Keyboard - DO NOT take this lightly, make sure all of the keys on the laptop you purchase are in the correct place and are the correct size for your taste.  I hate short backspace keys.  The thing that probably pissed me off the most out of any laptop I have ever owned was on a Lenovo think pad; the ctrl and the fn keys were swapped... I literally turned into the hulk every time I tried to press ctrl+c or ctrl+v and instead typed a c or a v.
    • Ports - I would highly suggest 3-4 USB3 & USB 2 ports(or at least just USB3), an Ethernet port,  and a VGA port for connecting to external projectors at the bare minimum...
    • Good quality headphones - I listen to music when I program, so this is a must for me... and as you can see... we have left the list of features and moved on to peripherals...
    • Mouse - I prefer corded so I don't have to constantly change batteries and I also like having something that has a high sensitivity... but that's just my preference...

    Can't really think of anything else so...

    Hope this helps! :D

     

    Edit: Also, please note... you can program for apple devices on both Linux and Windows systems... so there's that... anyone who says otherwise is just flat out wrong lol...

  12. Minecraft and Runescape used Java and the reason they run poorly is because of that, you're better off using something else, but what I do not know I'm wondering that myself.

     

    Java isn't that well optimized, so when comparing performance, you'll get better results with, say C++.

    If you're only looking to make games, I wouldn't perhaps go with Java, but C-something instead. Maybe C++ or C#.

     

    You are both absolutely wrong, once compiled Java boasts about 98% of the speed of C and C++.

     

    This is bullshit.

     

    Entirely true, but could have been worded nicer...  :D

     

    What no one has seemed to point out here is that you should definitely aspire to learn OpenGL if you want to make 3D games.  Both Java and C++ support OpenGL and those would be my suggestions as languages to learn.  If you decide to go the C++ rout, you should start off by learning C and then move on to C++.  All C code is valid C++ code and you can actually think of C++ as just an extension to C.  If you do not already know at least a little bit about programming building a game from the ground up is pretty far off for you.  Make sure you get the basics down first so you are not confused by trivial problems when the time comes for you to actually make your game.

     

    Personally, I would suggest learning C, then C++, and then finally OpenGL for C++.

  13. So I got bored and wrote an encryption program using the one-time-pad algorithm in under 100 lines.

    import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.security.SecureRandom;import java.util.Arrays;public class Leonardo {    public static void main(String args[]){        FileInputStream in = null;        FileOutputStream out = null;        FileOutputStream keyfile = null;        try {            String filename = ""; //Enter file to encrypt here            in = new FileInputStream(filename);            out = new FileOutputStream(filename.split("\\.")[0] + "_encrypted." + filename.split("\\.")[1]);            keyfile = new FileOutputStream(filename.split("\\.")[0] + "_key.txt");            int b;            int index = 0;            byte[] binaryContents = new byte[1024];            while((b=in.read())!=-1){                if(index >= binaryContents.length) {                    binaryContents = Arrays.copyOf(binaryContents, (binaryContents.length + binaryContents.length/4));                }                binaryContents[index] = (byte)b;                index++;            }            if(binaryContents.length > index) {                binaryContents = Arrays.copyOf(binaryContents, index);            }            in.close();            SecureRandom random = new SecureRandom();            byte[] key = new byte[binaryContents.length];            random.nextBytes(key);            for(int i=0; i<binaryContents.length; i++) {                binaryContents[i] = (byte)(binaryContents[i] ^ key[i]);            }            out.write(binaryContents);            keyfile.write(key);            out.close();            keyfile.close();        } catch(FileNotFoundException fnfe) {            System.err.println(fnfe.getMessage());        } catch(IOException ie) {            System.err.println(ie.getMessage());        } finally {            try {                if(in != null)                    in.close();                if(out != null)                    out.close();                if(keyfile != null)                    keyfile.close();            } catch(IOException ie) {                System.err.println(ie.getMessage());            }        }    }}

    Also, I wrote a decryption program in under 100 lines to go along with it.

    import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.util.Arrays;public class Michelangelo {    public static void main(String args[]){        FileInputStream in = null;        FileOutputStream out = null;        FileInputStream key = null;        try{            String filename = ""; //Enter file to be decrypted here            in = new FileInputStream(filename);;            out = new FileOutputStream(filename.replaceAll("_encrypted", ""));            key = new FileInputStream(filename.replaceAll("_encrypted", "_key"));            int b;            int index = 0;            byte[] binaryContents = new byte[1024];            while((b=in.read())!=-1){                if(index >= binaryContents.length) {                    binaryContents = Arrays.copyOf(binaryContents, (binaryContents.length + binaryContents.length / 4));                }                binaryContents[index] = (byte)b;                index++;            }            if(binaryContents.length > index) {                binaryContents = Arrays.copyOf(binaryContents, index);            }            in.close();            byte[] keyContents = new byte[binaryContents.length];            key.read(keyContents);            key.close();            for(int i=0; i<binaryContents.length; i++) {                out.write((int)(binaryContents[i] ^ keyContents[i]));            }            out.close();        } catch(FileNotFoundException fnfe) {            System.err.println(fnfe.getMessage());        } catch(IOException ie) {            System.err.println(ie.getMessage());        } finally {            try {                if(in != null)                    in.close();                if(key != null)                    key.close();                if(out != null)                    out.close();            } catch(IOException ie) {                System.err.println(ie.getMessage());            }        }    }}

    Enjoy! :D

  14. Completely agree, manual memory management is the best (Unless you work with someone who neglects to put in deletes and frees).  I get what you are saying about the direct replacement though (if I am not mistaken that is how garbage collection in C++ is implemented, through special classes which count using constructors and destructors).

     

    I would imagine, but pfft if people are building & using garbage collection for C++ then they are completely missing the real fun of the language! :D

  15. Yea, very similar...the only thing I wanted to stress was destructors are not the reason C++ doesn't "need garbage collection", but rather desctructors are partly there because there is no garbage collection....but yea, I pretty much agree with that you said :P

     

    Ok, it sounded like they implemented objective-c style reference counting and I got confused.

     

    I personally don't like garbage collection all that much because I much prefer controlling my own memory usage... so for my usage it is a direct replacement...

     

    This is probably because I do tend to write programs that are memory heavy multi-threaded programs and garbage collection likes to take its sweet time cleaning up memory sometimes...

  16. I guess there is a bit of confusion about the subject of garbage collection (although I have probably gotten a bit sloppy on terms, I will try to straighten a few things up)

     

    C++ and C don't really have garbage collection (You have to manually handle the memory objects).  Yes C++ has destructors, but they do not replace garbage collection, they are there to allow you to clean up the object properly (like if an object has allocated memory using things such as malloc or new).

    Just like void test() { int i; return; } in C will create a space for i and then delete it afterwards this doesn't really constitute as garbage collection because it was all locally available in stack.

     

    C++ and C could have garbage collection (by exploiting the fact the stack gets cleaned up), but I find the implementations are a bit cumbersome...I find it a lot easier just having manual memory management (although you do need to be careful)....with that said, since there are no real garbage collectors in C++ you have the issue that you need to clean up the memory that you have allocated (ie. if you use malloc as @jam08060 has said, or even if you use new, you must then use delete to clean up the memory).  So the importance of the deconstructor in C++ was cases where an object has allocated extra memory using new or malloc (as to clean up the memory)

     

    On a side note @ehsanawan was there really a need to make so many posts in old threads (and in some cases giving the same answer the first responder said)

     

    What I said but in more words 0.o

  17. I guess I don't pay enough attention to updates...when did that start happening?

     

    Errr 2011 standard or earlier 0.o, however if you dynamically create memory using malloc then you still need to free it... and you must implement the destructors anyway... its not the same as garbage collection, it is C++'s own way of handling cleaning up memory used due to creating Objects... pretty much the inverse of a constructor...

  18. I'm looking into competitive gaming. Would the 598's be better? I might use the dac on the AT2020.

     

    Are you planning on going to lan events then? Because if you are then you don't want open headphones... you will hear the other few hundred to a thousand people in the room.

     

    If not... then I'd suggest the HD 558s, they are fantastic open headphones with a huge soundstage that really improves the gaming experience in my opinion.

     

    I'd get the HD 558s over the HD 598s as the only difference between the two is the price and that the 558s have a small piece of foam behind the drivers that is easily removable (videos all over youtube about this mod).

     

    I have a pair of HD 558s and I love them :D

     

    If you do plan on going to lan events then I'd suggest these since they are closed, foldable, and sound friggin awesome...

  19. I prefer surround because I also game with my headphones.

     

    I have stereo headphones and personally can hear directional sounds far better with them than I could with surround headphones.

     

    I believe this to just be due to the sound clarity that comes with nice stereo headphones as opposed to mediocre gaming headphones.

     

    So to me better sound clarity = better directional awareness.

×