Thread: Programming Tips

  1. #16
    Registered User
    Join Date
    Mar 2002
    Location
    South Africa
    Posts
    35

    Angry

    Hmm...

    I can't seem to see the tips:

    You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(created) as created from tiplist where 1 and showTip <
    Tip Author Rating (votes) Added
    I code.
    I think.
    Ergo, I think in code.

  2. #17
    Registered User
    Join Date
    Dec 2005
    Location
    USA
    Posts
    29
    There still seems to be a problem with this script.

    Webmaster... I think the concept of this script was a really good one. I hope it gets fixed in due course (when you have the time of course).

    Just wanted to make sure you knew that people were still looking.

    Thanks

    Eddie

  3. #18
    Registered User
    Join Date
    Jan 2008
    Location
    Finland
    Posts
    3

    Smile

    Works, but there aren't so many tips yet.

    Best Regards,
    Arto Ruotsalainen
    Dawn Bringer 3D - Frequently Updated Programming Tips & Tricks
    The Best Programming Book[/QUOTE]

  4. #19
    Registered User
    Join Date
    Sep 2009
    Posts
    1

    Thanks

    Thanks for sharing usefull tips..

  5. #20
    Registered User
    Join Date
    Sep 2015
    Posts
    4
    Nice, That is exactly what i was looking for. thanks

  6. #21
    Registered User Arhaikos's Avatar
    Join Date
    Jan 2016
    Location
    Greece
    Posts
    14
    Very useful, thanks

  7. #22
    Registered User
    Join Date
    Jan 2017
    Posts
    1
    Thanks for the tips! Much appreciated

  8. #23
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    MutantJohn's programming tips: Find a passion and chase it (in programming, of course). Even if it's just in your free time. Find something you love coding and code that. Make sure it's hard too.

  9. #24
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Quote Originally Posted by MutantJohn View Post
    MutantJohn's programming tips: Find a passion and chase it (in programming, of course). Even if it's just in your free time. Find something you love coding and code that. Make sure it's hard too.
    Ada's Extra Advice:

    Also pick a language that you feel comfortable with. Don't go by the Tiobe Index etc - if your brand new and C/C++ scares you (it shouldn't really as both are good first languages) check out slightly simpler syntax languages such as Python or even C#.
    Double Helix STL

  10. #25
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Ugh. C# can be pretty confusing too because it doesn't make a distinction between a pointer and a reference. It's motto seems to be just pass the damn object and it will work. Except, sometimes it doesn't and you have to think about passing your "pointer" by "reference" instead. I find it much easier to actually make a distinction between pointers and references.

    And ugh. Python. Another stupid dynamically typed language. The enemy of all humankind*.

    *) Strictly my opinion only.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #26
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Actually, I do think it is incredibly confusing to tell people that in JavaScript, things are passed by "reference" as well. The problem is, these languages use reference in a way that's probably more correct but puts the wrong abstraction in people's minds.

    What I mean is, we dereference pointers so it makes sense that an actual pointer should be formally known as a reference. So in JS where they talk about passing references, what they really mean is, a copy of a pointer. In all reality, I think it makes people think of C++ references where it is the object.

    It's very unfortunate but I see a lot of people who fail to understand JS's reference semantics and it's not really through that much of a fault of their own. Their tools are confusing and are a little unwieldy, especially considering that most of these high-level scripting languages like to poop on C and C++ for not making the programmer think about pointers. Even though you literally have to think about pointers to write JS successfully.

    So yeah, making hard distinctions between references and pointers was one thing C++ did right and I'm very saddened that other languages haven't followed suit. C++ was invented in 1983. This isn't exactly new technology.

  12. #27
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    It's very simple. There's native types and there's non-native types. They are different, except that they aren't. Native types are passed by value, except when they aren't. Strings can never be passed by value, but sometimes they can.

    To be fair, it's like crying over nothing. Just know your types and there's nothing confusing about pass by value or reference. If one is still confused, then its because they are still learning the ropes and being confused is perfectly ok and an expected state. For every wannabe programmer that quits because he couldn't be bothered pressing on their studies, we can hear a breath of relief from high above in the heavens. However, it is no less truth that you can thank the above paragraph to the wonderful (not!) development that is languages built exclusively of OOP.
    Last edited by Mario F.; 01-11-2017 at 04:10 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  13. #28
    Registered User
    Join Date
    Oct 2018
    Posts
    10
    It's fine! It looks very convenient, especially for a beginner on this forum)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ballon Tips in C++ (Borland C++ Builder 6)
    By dfghjk in forum C++ Programming
    Replies: 4
    Last Post: 05-11-2008, 08:00 PM
  2. Tips on becoming a competent programmer
    By trickae2 in forum C Programming
    Replies: 16
    Last Post: 08-28-2006, 07:33 PM
  3. C++ Programming Tips
    By gflores in forum C++ Programming
    Replies: 20
    Last Post: 09-14-2004, 07:53 PM
  4. any useful tips to increase speed when parsing files
    By Shadow12345 in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2003, 05:52 PM
  5. Tips
    By laughman in forum C++ Programming
    Replies: 5
    Last Post: 10-01-2002, 11:48 AM