Not a member? Register now!
Announcements
Like us on Facebook, follow us on Twitter! Celebrate another year with MH and read our yearbook.
Manga News: Check out this week's new manga (10/13/14 - 10/19/14).
Forum News: The nomination phase of the Community Awards 2014 is live! Visit new sections for Nisekoi and Kingdom!
New Reply
Results 1 to 14 of 14

Thread: Programming and Coding

  1. #1
    Most Beautiful Male 2013 伝説メンバー / Densetsu / Legendary Member goldb's Avatar
    Join Date
    Mar 2008
    Country
    Holy Britannian Empire
    Gender
    Male
    Posts
    18,943
    Post Thanks / Like

    Programming and Coding

    This is a general thread about programming and coding. You can discuss the pros and cons of programming languages (such as C++, Java, C#, Delphi, PHP, JavaScript, etc.) and coding styles, make suggestions, request and post short code samples in this thread.

    Since discussions about programming languages may lead to bashing and flaming, please try to remain objective and refrain from comments that are of questionable or confrontational nature. This thread is for programming tips, don't ask people to do your homework or such.
    Last edited by Miyagi; November 20, 2012 at 05:14 PM.

  2. Like 1 Member(s) likes this post
  3. #2
    MH Senpai MH中毒 / MH Chuudoku / MH Addicted Uriel's Avatar
    Join Date
    Apr 2007
    Location
    Westeros
    Country
    Argentina
    Age
    26
    Gender
    Male
    Posts
    5,625
    Post Thanks / Like

    Re: Programming and Coding

    After learning a bit more of PHP and knowing it's based on Java I'm wondering what is the real difference between languages if the logic is basically the same with slightly different syntaxis.
    The Sky is pouring
    The wind is blowing
    The sea looks red,
    a surging sea of flames
    looks like the entrance to hell
    'Perfect', the captain said.

  4. #3
    ~ Forum Fixer ~ 有名人 / Yuumeijin / Celebrity Miyagi's Avatar
    Join Date
    Apr 2011
    Country
    Winterfell
    Age
    28
    Gender
    Male
    Posts
    4,295
    Post Thanks / Like

    Re: Programming and Coding

    AFAIK PHP is based on Perl, these two languages, Java and some other languages have similar language constructs though. Many programming languages can accomplish the same task in one way or another but there're situations where a language is better suited than others. For example, in situations where there're lots of complex calculations and speed is essential, C is certainly a better choice than PHP which is used on servers to generate web pages and display information from a database. Community support and external libraries also play an important role, if somebody has already done what you need, there's no point in spending your time to reinvent the wheel. More often than not, people face situations where they need to choose another language which deals with the problem in hand in a much simpler way.

  5. Like 1 Member(s) likes this post
  6. #4
    MH Senpai MH中毒 / MH Chuudoku / MH Addicted Uriel's Avatar
    Join Date
    Apr 2007
    Location
    Westeros
    Country
    Argentina
    Age
    26
    Gender
    Male
    Posts
    5,625
    Post Thanks / Like

    Re: Programming and Coding

    What is Perl? Should I know it?
    And lately I've been using PHP in my work. I want to say it's reliable, but I actually feel that works only for specific stuff and the structure of the code itself is a bit messy.

    Although it's really fun to see all the variables a site has :P
    The Sky is pouring
    The wind is blowing
    The sea looks red,
    a surging sea of flames
    looks like the entrance to hell
    'Perfect', the captain said.

  7. #5
    ~ Forum Fixer ~ 有名人 / Yuumeijin / Celebrity Miyagi's Avatar
    Join Date
    Apr 2011
    Country
    Winterfell
    Age
    28
    Gender
    Male
    Posts
    4,295
    Post Thanks / Like

    Re: Programming and Coding

    I've never used Perl but as far as I can tell, it's mostly used to write CGI scripts on servers and connect different applications who, under normal circumstances, can't interoperate. Even though many websites still use Perl and it's a popular programming language, PHP seems to be the golden standard nowadays and I guess you don't need to learn it unless you face a problem you can't solve with PHP, which I doubt.

  8. Like 1 Member(s) likes this post
  9. #6
    MangaHelper 伝説メンバー / Densetsu / Legendary Member Hakuteiken's Avatar
    Join Date
    Jul 2012
    Location
    Zaphkiel
    Country
    Netherlands
    Age
    24
    Gender
    Female
    Posts
    11,351
    Post Thanks / Like

    Re: Programming and Coding

    Lately, I have been reading and trying to learn some conceptual stuff for database systems. I wonder if I will ever be able to get down to the practical side of the work.
    Same could apply to my Java learning process. Since I'm studying on my own, it feels as if something is way off without applying what I read to achieve something.

    Any ideas about what I could do? Are there any recommendable books or any other sources of that kind for this specific surpose?

  10. #7
    MangaHelper 伝説メンバー / Densetsu / Legendary Member kkck's Avatar
    Join Date
    Sep 2007
    Location
    wherever cookies can't get to me...(as if such a place existed...)
    Country
    Galactic Empire
    Posts
    18,986
    Post Thanks / Like

    Re: Programming and Coding

    What you are asking about is basically a textbook lol.... Not sure of where you are at but you can usually find cheap textbooks on amazon which would do what you want (cheap ones could go as low as 5 dollars or so), just search database design. I don't know any specific online sites for this.

  11. Like 1 Member(s) likes this post
  12. #8
    MangaHelper 伝説メンバー / Densetsu / Legendary Member Hakuteiken's Avatar
    Join Date
    Jul 2012
    Location
    Zaphkiel
    Country
    Netherlands
    Age
    24
    Gender
    Female
    Posts
    11,351
    Post Thanks / Like

    Re: Programming and Coding

    Yeah, but textbooks generally give very abstract level practice. At least, the one I own is pretty much that way.
    I guess I will need to go deeper into the book and see if that will be of help in the latter stages.

  13. #9
    MangaHelper 伝説メンバー / Densetsu / Legendary Member kkck's Avatar
    Join Date
    Sep 2007
    Location
    wherever cookies can't get to me...(as if such a place existed...)
    Country
    Galactic Empire
    Posts
    18,986
    Post Thanks / Like

    Re: Programming and Coding

    Well, database design is in itself very abstract... One you have a project and you have to actually design an efficient database you get some perspective on the whole thing. have you gotten to SQL yet?

  14. #10
    MangaHelper 伝説メンバー / Densetsu / Legendary Member Hakuteiken's Avatar
    Join Date
    Jul 2012
    Location
    Zaphkiel
    Country
    Netherlands
    Age
    24
    Gender
    Female
    Posts
    11,351
    Post Thanks / Like

    Re: Programming and Coding

    I have had some sort of SQL experience before. Not very detailed by any means, but I had a basic grasp of the queries in general via a school project work, though it has been quite some time since then, so, I picked up the subject as a whole, hoping to reach that stage after I cover the topics that may serve as a basis.
    Basically, I might prepare a simple HTML file with a database work in background to practice it a bit, I assume. I think it may help me make progress with Java in synchronized fashion.

  15. #11
    ~ Forum Fixer ~ 有名人 / Yuumeijin / Celebrity Miyagi's Avatar
    Join Date
    Apr 2011
    Country
    Winterfell
    Age
    28
    Gender
    Male
    Posts
    4,295
    Post Thanks / Like

    Re: Programming and Coding

    Quote Originally Posted by Hakuteiken View Post
    Basically, I might prepare a simple HTML file with a database work in background to practice it a bit, I assume. I think it may help me make progress with Java in synchronized fashion.
    Are you planning to embed a Java applet in a web page to get data from a server database? I don't have experience about Java applets but I believe PHP is much easier and flexible in that regard, you can easily connect to a MySQL server and do database operations using SQL. Actually this is how our forum and most forums work, I'm not sure if this is what you're trying to accomplish though.

  16. #12
    MH Senpai MH中毒 / MH Chuudoku / MH Addicted Uriel's Avatar
    Join Date
    Apr 2007
    Location
    Westeros
    Country
    Argentina
    Age
    26
    Gender
    Male
    Posts
    5,625
    Post Thanks / Like

    Re: Programming and Coding

    I'm learning a bit, and so far I tend to prefer JQuery for effects and PHP to interact directly with MySQL. I don't know, seems more fluid. And you can go all the way without ever touching directly the tables. :P
    And my little experience before any book Internet is a more reliable source to learn.

    ...Silly question, Miyagi: What this site uses to handle a forum? What kind of code is required? I'm assuming it's also tables, but I guess they're more complex. Can we peek a bit into the code? It would be cool!
    The Sky is pouring
    The wind is blowing
    The sea looks red,
    a surging sea of flames
    looks like the entrance to hell
    'Perfect', the captain said.

  17. #13
    ~ Forum Fixer ~ 有名人 / Yuumeijin / Celebrity Miyagi's Avatar
    Join Date
    Apr 2011
    Country
    Winterfell
    Age
    28
    Gender
    Male
    Posts
    4,295
    Post Thanks / Like

    Re: Programming and Coding

    vBulletin is proprietary software, so it's not possible to post the source code but it's indeed complex stuff with many tables and classes. You can check out phpBB to see what a forum software is like, they also have a demo on their site, you can download the source code and play with the demo to see what the code does.

  18. Like 1 Member(s) likes this post
  19. #14
    MangaHelper 伝説メンバー / Densetsu / Legendary Member Hakuteiken's Avatar
    Join Date
    Jul 2012
    Location
    Zaphkiel
    Country
    Netherlands
    Age
    24
    Gender
    Female
    Posts
    11,351
    Post Thanks / Like

    Re: Programming and Coding

    Quote Originally Posted by Miyagi View Post
    Are you planning to embed a Java applet in a web page to get data from a server database? I don't have experience about Java applets but I believe PHP is much easier and flexible in that regard, you can easily connect to a MySQL server and do database operations using SQL. Actually this is how our forum and most forums work, I'm not sure if this is what you're trying to accomplish though.
    Yep, embedding an applet is an option. I could also try to do it with PHP, but I remember myself doing a PHP-MySQL connection in the past. Perhaps I need to make a re-practice of it first.

New Reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts