Jump to content

Midnight

Member
  • Posts

    418
  • Joined

  • Last visited

Awards

This user doesn't have any awards

1 Follower

Profile Information

  • Gender
    Male
  • Interests
    Programming, Music, Movies, Golf, Soccer, Basketball, Volleyball

System

  • CPU
    Intel Core i7-950
  • Motherboard
    ASUS P6X58D-E
  • RAM
    Corsair Vengeance 16GB 1600 MHz
  • GPU
    EVGA GTX 670 FTW edition
  • Case
    Cooler Master CM690ii
  • Storage
    Samsung 840 EVO 250GB
  • PSU
    Corsair HX750
  • Display(s)
    Samsung 27-inch
  • Cooling
    Noctua NH-D14
  • Keyboard
    Cooler Master QuickFire Rapid Cherry MX Brown
  • Mouse
    Gigabyte Force M7 Thor
  • Sound
    Generic/Headphones

Recent Profile Visitors

909 profile views
  1. They don't have a close relationship with each other. This question makes no sense.
  2. Uhh, but you said interface inheritance, which isn't really composition... And favoring composition will definitely complicate the design. Your logic doesn't make sense. Subtyping creates coupling. That makes sense, but you didn't follow through with your argument. I already said that it's generally bad, which means it's not always bad to do so, and you've (sort of) agreed with me in your last sentences. Finally, using interfaces, sub-types, and/or composition will produce their own "clutter code". You FAVOR composition over inheritance, not FAVOR ONLY composition. Otherwise, we wouldn't be having this conversation. I suggest you read (or re-read) Design Patterns by the Gang of Four.
  3. I think you're confusing subtyping with composition, for which they are NOT the same thing at all. If that's the case, then how can I take you seriously? As I have implied before, if inheritance is done right, then there's usually no problem. Also, reduced flexibility and increased coupling are GENERALLY bad, but it can be tolerated depending on context and system design. Your attitude implies that it should never be allowed, and sometimes this is impossible without over-complicating the design. Finally, you didn't explain why it is inherently flawed and just telling me to believe you... and I won't, without good, hard evidence.
  4. don't start out with pointers and you should be fine.
  5. I disagree with inheritance as an antipattern. There's nothing inherently wrong with inheritance. It's just that people misuse it too frequently.
  6. Why don't you just go with C#? It's better than Java, in my opinion. Python isn't bad, but the writing style is a bit too unique to learn as the first language.
  7. Then print the output? Not sure what the big deal is...
  8. Why are you comparing an interpreted language over a compiled language? It doesn't make sense. Also, you do know that the Python interpreter is written in C, right? If it took 2 hours to speed up a program that has a runtime of 4 seconds to 2 seconds, then yes, it would be worth it.
  9. And I will tell you that is impossible. I don't think you understand the purpose of benchmarks.
×