Slashdot Mirror


User: spongman

spongman's activity in the archive.

Stories
0
Comments
2,450
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2,450

  1. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    There's actually quite a big difference between calling methods and sending messages

    popycock. it's a syntactical difference, nothing more.

    certainly, c++ and objective-c have different binding requirements, but that has absolutely no bearing on syntax. anyone who tells you different is just making excuses for bad decisions made long ago.

  2. Re:New options? on Microsoft Redesigns chkdsk For Windows 8, Improves NTFS Health Model · · Score: 1

    Windows install = OS. Applications (office suites, servers etc) need to be purchased and installed separately.

    Linux install = OS + full working set of applications.

    Try comparing like with like.

    wait, which office suite that's available for free on linux needs to be purchased on windows?

    actually, i can't think of any major linux applications that aren't either also available for windows themselves, or are easily substituted for some other freely available windows app.

  3. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    Like jcr said, you aren't calling methods, you are sending messages to objects.

    and the difference is, exactly?

    look, you're writing down somewhere what you're currently doing, and then passing some arguments to a function somewhere else. you can call it 'calling a method', or you can call it 'sending messages to objects'. semantically it's exactly the same thing. and it doesn't require a new syntax.

    Why on earth does it hurt to name the parameters when you send the message?

    it doesn't hurt (except for the pins), it's just unnecessary. sure, allow me to it when i think it might help clarity, but don't force me to do it all the time...

    You can look at the code and know exactly what it does. When you type the code autocomplete kicks in and you know exactly what the method of the class is expecting. It's not like this stuff is new, the basics are nearly 30 years old at this point.

    right, so you need a decent IDE to make it not a pain in the ass to write. nice. it's my belief that forcing the programmer to express the mundane and repetitive does NOT increase readability, or quality. conversely, if you allow the programmer to reduce the mundane, and hilight the exceptional, or unexpected you're much more likely to draw attention to those things and not have them lost in the all the noise.

    I mean if you really want to go crazy you could say that none of the languages are unnecessary. Why would you ever use a pointer when you could just go to the address in assembly?

    you're missing the point. i'm not saying there shouldn't be a way of calling methods (or passing messages to objects, or whatever you want to call it). I'm saying there doesn't need to be a completely new syntax invented for doing it when the existing one could have been minimally extended to support the new semantic requirements. they could have easily added smalltalk semantics to C without trying to bolt one language as an embedded DSL inside another in some frankenstein-type abomination.

  4. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    sending messages, shmending messages, banana-ing function blobulators.

    it's doesn't matter what you call it. it doesn't explain why there needs to be a completely different syntax for transferring control to a function that's bound to an object.

  5. Re:How is it not modern? Obj-C has modern libs... on Objective-C Comes of Age · · Score: 1

    Why do you claim it is "unsafe"? Almost all work done in Objective-C is very "safe", by any measure

    Objective-C is a superset of C, right?

    so you can write to arbitrary memory locations, call arbitrary (non-NX) code locations?

    unsafe.

    "Modern" languages (and i'm thinking Ada, here) don't allow such things, or make it trivial to disallow them (java's JNI, c#'s 'unsafe', etc...)

  6. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    does ARC handle cycles??

  7. Re:Yes but on Objective-C Comes of Age · · Score: 1

    mono lacks complete support for the operating system libraries, but it has complete support for the language.

  8. Re:Yes but on Objective-C Comes of Age · · Score: 1

    actually, the win32 API uses pascal calling convention. their C compiler contains a built-in bridge to pascal (__stdcall).

  9. Re:ObjC is plainly clearer. on Objective-C Comes of Age · · Score: 2

    you have got to be kidding.

    right?

  10. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    ok, so they added dot-notation property access after the fact. why didn't they also add dot-notation method access while they were at it?

    i'm guessing they had a really good reason for adding the property access shortcut, probably something involving everybody telling them the old way sucked (see hot pins bit, above). and yet that pearl of wisdom didn't seem to make it as far as the method access syntax. shame.

  11. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    The difference can be subtle

    seems artificial to me. after all, a method is just a bound function.

  12. Re:Method Syntax on Objective-C Comes of Age · · Score: 1

    sure, the new semantics are useful and nice. my problem is with the syntax. there's no need to create a completely new syntax for method calls, and there's no need to require naming parameters at the call site; they should have just added optional named parameters to the existing function call syntax.

    for example:
    someFunction(value1, value2)
    myStruct.field
    myObject.method(value1, value2, optionalArg: value9);

    anything else is unnecessary

  13. NEWS FLASH on Positive Bias Could Erode Public Trust In Science · · Score: 1

    Newton was wrong!

    where would be to day if we'd believed him !?

  14. Re:Just another extension on Objective-C Comes of Age · · Score: 2

    I read somewhere that .NET and C# were developed by the guy that developed Delphi.

    you mean Anders Hejlsberg?

  15. Re:Method Syntax on Objective-C Comes of Age · · Score: 2

    but is it really that much worse than

    it's not really better or worse, it's just unnecessary.

    C already has a syntax for declaring and invoking functions, and it already has a syntax for accessing variables bound to instances of structs. why did they have to invent a completely new syntax for declaring and invoking functions bound to structs?

    if "struct.field" is ALREADY a way or accessing a struct's field, and "function()" is ALREADY a way of invoking a function, then why can't "struct.field()" be a way of invoking a function that is a field of a struct? it's not that much of a stretch.

  16. Re:Method Syntax on Objective-C Comes of Age · · Score: 3, Interesting

    agreed. when i look at obj-c code it feels like someone's pushing hot pins into my eyes.

    seriously.

    why have (c-style) syntax for declaring and accessing variables and functions, and a completely different syntax for declaring and accessing bound methods?

    it makes no sense. it doesn't add anything semantically to the language. it adds another syntax construct just for the sake of it. completely unnecessary.

    and why are properties accessed using c-style syntax, and not methods?

  17. Re:Yes but on Objective-C Comes of Age · · Score: 1

    none of the ms languages use all of the clr features. while c# and vb are getting closer over time, c++ and f# have significantly different requirements.

  18. Re:Time for the Judges ruling? on Jury Rules Google Violated Java Copyright, Google Moves For Mistrial · · Score: 1

    That's ridiculous, unless you're buying the products that are being advertised to you then you are not paying for that advertising at all.

    huh?

    if you buy products that are advertised, then you're paying for that advertisement.

    it doesn't matter (to this discussion) who sees the ad.

  19. Re:Beware of dynamic languages for large projects. on Ask Slashdot: What Language Should a Former Coder Dig Into? · · Score: 1

    thanks for that. i'll remember to use Python next time I want to write such a trivial program.

  20. Re:bundling on Windows 8 Won't Play DVDs Unless You Pay For the Media Center Pack · · Score: 1

    Is everything Microsoft does wrong by definition?

    yes.

    i think that's the definition of bigotry, right there...

  21. Re:Bad enough I pay for microtransactions in MMO's on Windows 8 Won't Play DVDs Unless You Pay For the Media Center Pack · · Score: 1

    or xperf?

  22. Re:Bad enough I pay for microtransactions in MMO's on Windows 8 Won't Play DVDs Unless You Pay For the Media Center Pack · · Score: 1

    if you want the full compiler, just download the free windows SDK.

  23. Re:Not worth it. on Ask Slashdot: DIY NAS For a Variety of Legacy Drives? · · Score: 1

    And what do you think RAID 5 is?

    inflexible?

  24. new particle? w00t! on New Particle Discovered At CERN · · Score: 1

    I want one!

  25. Re:economics ? on The Math Formula That Lead To the Financial Crash · · Score: 1

    pfft. Werner Karl Heisenberg.