Jump to content
The Dark Mod Forums

pakmannen

Member
  • Posts

    1743
  • Joined

  • Last visited

Reputation

1 Neutral

2 Followers

About pakmannen

  • Birthday 11/07/1986

Contact Methods

  • MSN
    jens.ljungblad@gmail.com
  • Website URL
    http://
  • ICQ
    58466086

Profile Information

  • Gender
    Male

Recent Profile Visitors

1470 profile views
  1. Hi guys, I have very few source files, and only my own. I remember some of my own loops having problems, but I never thought I actually uploaded those. If you could provide a list of the sounds in question I could dig around a bit.
  2. Grattis :]

    läste på tdm's sida att du var svensk, så måste ju passa på o gratta :)

  3. There are only 10 step_normal_grass as far as I can see. Correct?
  4. Yeah, about that Sitepoint forum, it's a like a new world opening up I had no idea existed.. Basically, what happened was I'm part of quite a complex project, and maintainance was getting out of hands. Whenever you did something you'd break something else etc. Things were, to say the least, a mess. That's why I began looking at design patterns and frameworks which eventually led me to this whole MVC debacle. Suffice to say, it's rather complicated. Even if I think I'm slowly getting the hang of it. Actually, I've got the MVC part covered. Now I'm wrestling with how to structure Domain Logic. Working on an Active Record implementation which is trickier than I thought. I can recommend Martin Fowler's Patterns of Enterprise Application Architecture if you want to get into this stuff.
  5. Did you even read what I said? I said one that can tilt 90 degrees into "portrait mode". That means you get way more lines than columns. More than on a regular 4:3 screen. Edit - Like this one: http://www.eizo.com/products/lcd/l997/index.asp
  6. Well, take a look at the link I posted above, if you dare.. I'm trying to learn more about object oriented programming, and how you apply it to websites. The MVC pattern seems to be what most people advocates. Even if apparently no one agrees on what it really means.. Just take a look at some of the replies I got.
  7. Well, I've been fiddling with it for a few days now. Read a lot of articles about it. (This is a php implementation we're talking about, and I know it differs slightly from, say, Java) It really doesn't help that people can't agree on how it should function, and that there are countless variations and a whole lot of unfamiliar terminology. (The deeper you dig..) I posted this rather long thread over at Sitepoint today. MVC Madness. Not sure if you guys would understand it without knowing php. I don't really know how similar it is to other languages. Basically it's a lot of information to digest; some things make perfect sense while I struggle to understand other parts. I think I'm just going to take a long walk or something.. Before I go completely nuts..
  8. You should get one of them widescreens that can tilt 90 degrees. That must be excellent for coding.
  9. Ha! Good thing I caught it then.. Sounds like you did quite a lot of stuff. Congrats!
  10. Wow, thanks for all the great answers! This is good stuff. So, you guys know anything about the MVC pattern... (Sub Effect! You're a php coder! Please tell me you're awsome and will help me understand all my php5 questions!)
  11. Dom, your Facebook states that you put together two maps *zensored* . I hope you were you allowed to say as much! Edited by sparhawk on behalf of Domarius.
  12. Thanks for the replies and examples guys, I think I more or less understand what static does. I've been learning about "accessor methods" or something like that today. Let's see if I got this straight. Objects should be self-contained and their variables preferably private or protected. This means that you have to write Get() and Set() functions/methods to retrieve and update variables from outside the class. In php this looks like: class MyClass { public function __get($var) { return $this->$var; } public function __set($var, $val) { $this->$var = $val; } } I've tried it and it works and such, but again I'm wondering why.. Why should objects be self-contained? Why can't their variables be public? Is it about security? Or is it just confusing with a lot of variables everywhere? Does it affect performance? (For the curious, the __ thing before the function name indicates that it's "magical". I think it's a php thing but I'm not sure. It means when you do $object->var=$val; it automatically runs the __set() function, if you've written one. You don't need to type $object->__set($var)=$val;)
  13. pakmannen

    Facebook

    Joined! (I'm the one without a picture.. Gonna fix that one of these days)
  14. I just came across static today actually, while installing php5 on my computer (which has better OO support, I'm told) I've played around a bit, and read some examples at php.net. Here's how I understand it: A function or a variable within a class can be static. This means you can use them without creating an object. In php it looks like this: class A { static function foo() { } function bar() { } } A::foo(); $obj = new A; $obj->bar(); And yeah, that obviously means you can't use $this-> in a static function, since no object exists. Your post made more sense when I sat down and tried some code. In the real world, when do you want to use a static something? It's always easier to understand things if you get a concrete example of its usage. Something php.net always manages to avoid.. Why put a function inside a class if you want it static? Oh, and what do you guys mean by "method"?
  15. After reading a bit on the python website, I think it seems a fine starting point, and also quite useful in that you can quickly whip up a program to do basic stuff like batch renaming files. I don't see anyone writing a java application for that sort of thing. It (python) does feel more like a scripting language though. I do have php experience, so I know about a lot of the basic concepts like arrays, loops, conditions, functions and classes. Of course, php isn't nearly as strict as C++ or Java. There are no datatypes per se, you just create a variable and it can take any sort of value. As for your example, here are some guesses: "public" = the function can be accessed from other classes, "static" = um, not dynamic? , "void" = function does not return anything, "main" = constructor? Ha! Yeah I looked it up and it's apparently developed by the US army and used in planes and helicopters and spaceships and stuff. I do have a course in ADA, so we'll see how that goes. Mmm, strictness.. Sure, you need logical thinking, and basic math knowledge, in order to get started. Same concept applies with php though. Since that's the sort of programming I'm going to do (physics simulations, computer graphics etc) I have, spread over five years, one and a half years of math ahead of me. Ahh.. True, most types of programming require very little mathematical skill, but a lot of creative logical thinking.
×
×
  • Create New...