Jump to content

jimistephen

Member
  • Posts

    82
  • Joined

  • Last visited

Reputation Activity

  1. Informative
    jimistephen got a reaction from Hi P in Memory Management   
    The biggest problem with C/C++ is working with pointers. Most of the problems you run into with the language is dealing with pointers, not how the code actually works. When Sun started Java they basically said, "That's the biggest problem so we're going to get rid of it!" C# was supposed to be Microsoft's answer to Java so I don't think you can do any of the memory access in that language either, but I'd admit I'm not as experienced with C# as I am with C/C++, Java/Kotlin and Obj-C/Swift... I've never written a program that was so vital that I had to really worry about it. You really just need to keep a heads up for what's called retain cycles in Obj-c/Swift. It's where two object point to each other and you "Delete" them but since they hold references to each other they're not actually deleted, just release so you can't control them anymore, but the are still using memory, i.e. a memory leak.
  2. Funny
    jimistephen got a reaction from dannytech357 in My Wife is awesome.   
    So my birthday is on the 1st of October and we had the party last night. She got me "The Art of Computer Programming" by Donald E. Knuth which is one of the best books for the theory of why computers do what they do. She also got me a dasKeyboard pro 4 for Mac. She loves me.
  3. Like
    jimistephen got a reaction from Tamesh16 in My Wife is awesome.   
    So my birthday is on the 1st of October and we had the party last night. She got me "The Art of Computer Programming" by Donald E. Knuth which is one of the best books for the theory of why computers do what they do. She also got me a dasKeyboard pro 4 for Mac. She loves me.
  4. Like
    jimistephen got a reaction from Wingfan in My Wife is awesome.   
    So my birthday is on the 1st of October and we had the party last night. She got me "The Art of Computer Programming" by Donald E. Knuth which is one of the best books for the theory of why computers do what they do. She also got me a dasKeyboard pro 4 for Mac. She loves me.
  5. Agree
    jimistephen got a reaction from vorticalbox in How can I implement automatic updating?   
    I don't care if I use something everyday, as soon as it auto updates without my knowledge it gets deleted. I would also advise going with the notify option, and have a way in you program to check either every day, week, or whatever depending on what the user wants.
  6. Agree
    jimistephen got a reaction from straight_stewie in Best Python IDE   
    //rant coming
    Guys, it's the internet, no reason to be arguing over this stuff. People are actually having problems in the world. Some COMPANIES have their own way of doing code, that's fine. There is generally a "best practice" agreed on for ever language. In my college there was 2 different professors teaching the same class and they were having their students write the code completely differently so they set down and made a standard. i.e. functions are PascalCased, variables are camelCased, variables are always initialized when created and created when you need it. (i.e. int myNumber = 0;) I know some people do variables with_a_underscore, some people do functions with_a_underscore (I think variables and functions should be different personally) It doesn't really matter what someone does AS LONG AS THEY DO IT CONSISTENTLY, READ TIME OVER WRITE TIME, MAKE IT EASY TO UNDERSTAND!!! 
     
    //rant over
  7. Like
    jimistephen got a reaction from straight_stewie in Best Python IDE   
    If you have a .edu email address you can get JetBrains IDE's for free.
  8. Agree
    jimistephen got a reaction from Runelight in C++ program trouble Immediate HELP SOS !!!   
    You use a ternary as a short if/else statement.
     
    if (choice =='A')
    {
            typeA
    }
     
    else
    {
         typeB
    }
     
    can be rewritten as choice == 'A' ? typeA : typeB;
     
    What it's doing is checking if choice does equal 'A' and if it does it returns what's directly after the question mark and if it doesn't  then it returns what's after the colon.
  9. Like
    jimistephen got a reaction from IndisciousWrath in Learning Python - The advantages and uses   
    (metal is the is the framework for iOS and macOS that runs extremely close to the hardware. Objective-C is an objective oriented C language that Apple uses for their software, which is being phased out by Swift.
  10. Like
    jimistephen got a reaction from IndisciousWrath in Learning Python - The advantages and uses   
    Python does have a GUI kit built in, in python 2.xx you have to import Tkinter and in 3.xx you have to import tkinter, I know same thing but imported different. Also, you can run python programs on mac, I use a mac, and I use python programs. I think you'd have to recompile on windows, but I might be wrong. It might be like Java where you compile once and run anywhere.
  11. Informative
    jimistephen got a reaction from GoodBytes in Home networking wiring questions   
    I wouldn't worry about it unless you are planning on sending video signal over the twisted pair. What I mean by that is having systems like Extron or Crestron where you have a video source in one part of your house and the TV in another (distributed video) You don't need multi thousand dollar systems for this either. I used to install Crestron systems as my job and can tell you that it's extremely important when it comes to video signals like that. Crestron has an older system called Classic DM which was 3 cables in one. One twisted pair (cat 5) one shielded twisted pair (cat 6 e I think) and one two pair (4 wires). The two pair carried power and addressing information from one end to the other, no big deal, the twisted pairs carried the HD signal and everything in it. Those two wires had to be within 1/4 in of each other from end to end or the video could go out. They updated this to a single shielded twisted pair with a special connector that solved these problems. If you didn't get the shield right then you could be back in the same problems. 
     
    Other than that I wouldn't worry about it, unless you just want to future proof your home for 10G network in the future, which now can be run over cat 6e.
  12. Agree
    jimistephen got a reaction from NinjaJc01 in What is the Easiest Language   
    Python or Java. Java is a "compile once run anywhere" meaning as long as someone has java installed on their machine they can run you application no matter what their os is. Any os specific things are handled on the back end.
  13. Informative
    jimistephen got a reaction from Little Bear in Gurus Help me   
    Yeah, if you ever write the same code twice make it a function and call it. What
    while('this is you centry for loop') { ReadCPU(); } void ReadCPU(); { int currentCpuPercentage = (int)perfCpuCount.NextValue(); int currentAvailableMemory = (int)perfMemCount.NextValue(); int currentTemperature = (int)((((perfTemperature.NextValue() / 3) - 32) * 5) / 9); }  
  14. Agree
    jimistephen got a reaction from minibois in Gurus Help me   
    Yeah, if you ever write the same code twice make it a function and call it. What
    while('this is you centry for loop') { ReadCPU(); } void ReadCPU(); { int currentCpuPercentage = (int)perfCpuCount.NextValue(); int currentAvailableMemory = (int)perfMemCount.NextValue(); int currentTemperature = (int)((((perfTemperature.NextValue() / 3) - 32) * 5) / 9); }  
  15. Informative
    jimistephen got a reaction from VicBar in Java or Python for first language?   
    Well, interpreted languages are SLOW compared to compiled languages. The difference between C++ and Python are horrendous at times. I have a program that hunts for vampire numbers, which are numbers who have factors made up of all the same digits in the number itself (1260 is the lowest with 21 * 60 being the fangs) and I can find all the ones too 1,000,000 in about 3 seconds in C++. In Python I can do it in 5 or 6. It's not a big difference in something like that, but if it's a large program you can see the problem. Note though the C++ program is 400-500 lines and I think the Python one is about 150.
  16. Like
    jimistephen got a reaction from VicBar in Java or Python for first language?   
    Python was stated in like 89 or 90 and Java was like 96. Also with Django, Json, Jython and a whole host of others it's becoming quite popular. It's the number one language being taught to new programmers now.
  17. Like
    jimistephen got a reaction from handymanshandle in What distro and desktop environment do you use/prefer?   
    As a programmer, I when I use Linux it's Ubuntu with the Unity environment. Once you learn how easy Unity makes it to program it's amazing to use.
×