Slashdot Mirror


User: mark-t

mark-t's activity in the archive.

Stories
0
Comments
15,598
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 15,598

  1. Re:Lets define our own string, vector, list classe on Godot Game Engine Released Under MIT License · · Score: 1

    Fair assessment... I was kind of pressed for time when I wrote that, but there was still a lot I wanted to say... my brain was firing so much faster than my fingers that what I was saying didn't come out particularly as well as I had intended.

  2. Re:Lets define our own string, vector, list classe on Godot Game Engine Released Under MIT License · · Score: 1

    By the way, if containment were used, the necessary public functions and operators would just be implemented as single line inline (or even forced intline) functions that delegated their responsibility to the contained class... this would incur no performance or memory overhead above inheritance,, and in particular, you make both the general purrpose vector class and string class completely safe to use in all contexts...where otherwise there is the distinct chance of errors cropping up when a reference to the vector is used while it is actually referring to a string.

    However, another approach would have been to change the current declaration of Vector to something like, say, "_VectorImpl", a class that is never meant to be directly used by anyone other than descendant classes, and which has a protected default and protected copy constructor, so the class cannot ever be used outside of controlled contexts. Vector would then be implemented as a class inheriting publicly from _Vectormpl, and thew only necessary declarations to add to it would have been one-line inline constructors, which would call the _VectorImpl constructor. The custome String class could them also inherent from _VectorImp, redirecting calls in the constructors that once when to Vector to now be received by _VectorImpl.

    I fully understand that not using virtual functions is desirable when you are coding for efficiency... but in my experience, you have to be careful how to handle object inheritance in such situations or you open yourself to a potential world of hurt of when people utilize the classes in ways that you did not predict.

  3. Re:Lets define our own string, vector, list classe on Godot Game Engine Released Under MIT License · · Score: 1
    There's no problem with not having a virtual destructor. Of course one may often wish to avoid virtual functions for performance reasons, The problem is inheriting fom such a class when the base class is also a general utility class. It is incredibly unsafe, and almost always logically wrong. It is usually n indication of overeagerness on the part of the programmer to utilize inheritance as a code reuse measure. Ther is no problem code reuse by itself, but how this implement or chose to accomplish. It is almost inevitably going to cause errors.

    There's a reason that programmers are devised to not inherit from stl classes like std::vector, and t has far less to do with the design of those classes, and far more to do with how the objects and their descendants may get used.

  4. Aren't those things considered nontransferable? on How To Hack Subway Fares Using Fare Arbitrage · · Score: 5, Informative

    Where I live, if you get caught selling or giving away a bus ticket to somebody else after using it, you can get dinged with a rather heavy fine.

  5. Re:Lets define our own string, vector, list classe on Godot Game Engine Released Under MIT License · · Score: 4, Interesting

    The first thing I noticed is that the string class wasn't well thought out at all.

    In particular, while it is already generally considered among experienced C++ programmers to be unsafe to derive a class from another that does not have a virtual destructor (a rule that the godot author(s) seem to have violated by inheriting their custom string class from their vector class), when the base class does not contain any virtual members at all, and the base class is still intended to be a general utility class, then inheritance is almost always the wrong tool for the job. The proper tool, in this case, would probably have been to use containment, and not inheritance... or if inheritance was really to have been the way to go, then it should have been derived from a base class that was common to both itself and Vector, where the necessary base class is never directly used by anyone other than those classes, (with all of its constructors declared protected, including the copy constructor, so that it is not possible to use the class unsafely outside of those controlled contexts).

    I can think of absolutely no good reason to ever inherit from a class that has absolutely no virtual functions when the base class is one of general utility, and may be utilized by callers.

  6. Re:Scope of fame engine? on Godot Game Engine Released Under MIT License · · Score: 1

    SEO?

  7. Re:Lets define our own string, vector, list classe on Godot Game Engine Released Under MIT License · · Score: 1

    If you feed a custom allocator template to a container it has to be able to be used for all extraneous allocations the container does in addition to the object being allocated

    Actually, this one's not true anymore.

  8. Re:Is this like CrystalSpace? on Godot Game Engine Released Under MIT License · · Score: 2

    Thos are 3d engines, not full fame engines.

  9. What I'd want in a robotic vacuum on Dyson Invests £5 Million To Create 'Intelligent Domestic Robots' · · Score: 2

    We have pets, and have to vacuum a lot And what I've found, in particular, is that small and lightweight vacuums can't begin to cope with it... in my experience, the cartridge needs to be emptied about every 15 minutes for suction to be maintained, so we have to use a full-sized vacuum, with a full-sized bag, which we need to replace about once every 3 to 4 weeks. In light of that, what I'd want in a robotic vacuum is one that can automatically empty its own canister into a larger bin at its charging station whenever the robot's canister is full, such that the larger bin at the recharging station only has to be emptied out maybe every week or so, at most.

    It would also be ideal for my situation if it could both a) handle carpet and tile/hardwood with equal efficacy; and b) do stairs, handling all the floors in a multilevel home or loft apartment.

    When somebody invents a robotic vacuum that can do that...well...then... insert the shut-up-and-take-my-money gif here.

  10. Re:STOP REDIRECTING DAMMIT on Wine On Android Starts Allowing Windows Binaries On Android/ARM · · Score: 1

    They are off topic, since the topic is not about slashdot, but about whatever the article is about. As is this post, for that matter.

  11. Re:Can a bitcoin advocate explain.... on Florida Arrests High-Dollar Bitcoin Exchangers For Money Laundering · · Score: 2

    Monetary exchanges in general are not illegal... but monetary exchanges that are done for the purpose of trying to hide the illicit nature of a particular revenue stream is.

    Using a credit card is not illegal, in general, but attempting to use a stolen credit card is... even if you were not the one who originally stole the card.

  12. Re:The GPL is like the Slashdot Beta: Unwanted! on LLVM & GCC Compiler Developers To Begin Collaborating · · Score: 1

    1) the copyright holder has that right by default. not exercising it means they still have that right... they have to rather explicitly give it up to not have it.

    2) As long as copyright lasts on each derivative work. Bear in mind that for absolutely *ANY* copyrighted work, you need the copyright holder's permission to make a derivative work anyways... the terms of the GPL merely state that anyone who will agree, as determined by whatever actions that they decide take, to the terms of that license will automatically be granted such permission.

  13. Re:The GPL is like the Slashdot Beta: Unwanted! on LLVM & GCC Compiler Developers To Begin Collaborating · · Score: 1

    No...all the GPL says is that the copyright holder isn't surrendering any of his or her rights to control who is allowed to make derivative works by stipulating requirements that must be fulfilled by anyone who wants to make a derivative work. Considering that you need the original copyright holder's permission to make a derivative work anyways, it hasn't taken away any freedoms that would ordinarily have existed otherwise.

  14. Re:Can a bitcoin advocate explain.... on Florida Arrests High-Dollar Bitcoin Exchangers For Money Laundering · · Score: 1

    Money laundering is illegal because it is an activity that is used to disguise illegal activity. If there is no illegal activity, then even if the same types of monetary exchanges are occurring, they are not referred to as laundering, and the activities are not illegal.

  15. Re:RMS needs to get over the GPL on LLVM & GCC Compiler Developers To Begin Collaborating · · Score: 3, Informative

    Neither the BSD nor the GPL remove (not can they remove) the aspect that copyright requires that a person must get permission from the original copyright holder if they are creating a derivative work of something copyrighted. In that light, both the BSD and GPL licenses essentially state that everyone who adheres to the terms of the license is free to create derivative works, thereby effectively granting such permission... but still only to people who adhere to the terms of the license.

    Of course, the terms of the BSD license are pretty lax in comparison to the GPL... the former being not much beyond keeping the copyright notices in header files intact, while the latter license requires that the derivative work be released under the same license.

  16. Re:Can a bitcoin advocate explain.... on Florida Arrests High-Dollar Bitcoin Exchangers For Money Laundering · · Score: 1

    My point is that you *don't* hear about those things as often as you do with bitcoin, and I was wondering why.

  17. Can a bitcoin advocate explain.... on Florida Arrests High-Dollar Bitcoin Exchangers For Money Laundering · · Score: 5, Interesting

    ... why, if news stories are any indication, there seems to be such a high percentage of money laundering activity or the like compared to what happens with other forms of currency?

    This is a sincere question... not a challenge to the usefulness or benefits of bitcoin, but just a question that, if bitcoin is to really have any kind of future, I think that people who *are* law abiding and might want to use it someday really need to understand.

  18. Re:In before the Fuck Beta Burst on New Type of Star Can Emerge From Inside Black Holes, Say Cosmologists · · Score: 1

    Undoubtedly... but why sabatoge even the classic experience for everybody while it lasts with fuck beta posts in every single story?

    Quite frankly, if they weren't frequently so lengthy... say, only one or two lines, with a link to a more detailed message embedded within, I wouldn't really care or mind them... but many of these anti-beta posts take up almost a full screen of real-estate in classic mode as they are getting modded up by supporters of the notion, and just plain get in the way of actually being just able to freaking use the site the way it was intended.

    It's an online version of a temper tantrum. And doesn't impress anyone with even a modicum of discernment. At best, all such rantings do is make it harder for people who don't like beta and might actually have genuinely constructive things to say to be heard, because they can get lumped in with the spammers.

  19. Re:Fuck Beta on Big Pharma Presses US To Quash Cheap Drug Production In India · · Score: 1

    I see this effort as detrimental to what slashdot is *right now*. I don't like the way beta is either, but I'm not interested in sabotaging what's left of even the classic experience for everybody who isn't using beta just because I don't like it.

    It's an online version of a temper tantrum, and is no more productive... If slashdot won't even listen to well-reasoned arguments about what needs to be fixed with beta, what makes anyone think they'll listen to this shit that just makes the current experience worse for what's left of slashdot right now? Because you have to do something? Wrong.... this shit is worse than nothing because it only further reduces any chance that management is going to ever listen to people who actually have good points to make... and who have done so in the appropriate forums, instead of effectively taking everybody else on slashdot, and holding them hostage, threatening management by effectively saying "do what *I* say, right now... or I'll just keep on fucking up this site until you either listen, or there's just nothing left of it". Because that's what those stupid posts look like.

  20. Re:Except on Big Pharma Presses US To Quash Cheap Drug Production In India · · Score: 1

    I agree.with your sig... complaining about beta is pointless. But to be honest, I really don't like it that much. and I think yours is the very firs post I've ever seen here that actually had something genuinely positive to say about it. I have no doubt there are probably others, but I can't think of any I've personally seen.

    Speaking for myself, the ability to review your recent posts and see at aa glance how they've been moderated, if at all, and how many responses they have produced is seriously lacking in beta, IMO.

    Also, beta forces the entire website into what feels like a relatively narrow column that doesn't expand directly with window size, instead filling up the sides with useless gray space that just gets wider and wider as you drag the window wider. This ui design reduces the amount of useful content visible on screen at one time, which makes the website less useable for people who may have disabilities and want to minimize the amount of scrolling.they do. I get that the site needs updating... and there are a couple of changes that I would chooseto make to the classic interface if I could, but the way things are in the beta right now... it really feels like they're just going to kill the usefulness of the site... and it really feels like management isn't actually listening to what people really want, so I can empathize with the feelings of the people who are complaining about it incessantly, even if I don't empathize with their methods of showing it.

  21. Re:Fuck Beta on Big Pharma Presses US To Quash Cheap Drug Production In India · · Score: 1

    As you may or may not have noticed from my slashdot id, I've been here quite a while myself. But my point is that these kinds of comments are incredibly off-topic... and don't actually help the board be the best that it can be.

    All it is doing is turning the website to hell even faster than beta... At least for the time being I can turn beta off, but what I can do shut people up who won't stop bitching about it?

    Persistence is fine... but management has made it clear that they aren't listening to these rants, so they are futile. and when a strategy isn't actually producing the intended result. then you really need to try to come up with something else. Otherwise, as I said... you're just endlessly repeating the same thing over and over, and somehow expecting a different outcome. That's not really persistence... there's another word for that, and it's not a positive thing.

    Slashdot may die as we know it when classic mode disappears,the users will find other communities to go to, and life will go on.

    But hey... if you feel slinging ad-hominems really means anything, knock yourself out.

  22. Re: No thanks on Ask Slashdot: Why Are We Still Writing Text-Based Code? · · Score: 2

    Just off the top of my head...

    In "Hollow Pursuits", Barclay used it for purposes that we all know everyone would, if the technology existed in real life.

    In "Booby Trap", Geordi used it to simulate the engineer who developed the Enterprise engines and discuss certain things with her, and as I recall it functioned completely correctly in that episode.

    In "The Outrageous Okona" Data was trying to learn how to tell jokes from a holodeck stand-up comic, and the holodeck functioned perfectly (too perfectly, in fact, to Data's evident disappointment). Ironically, albeit unintentionally, Data manages to pull a great one-liner unintentionally near the end of the episode.

    Data learned how to dance by dancing with a simulated dancing partner in "Data's Day".

    In "Relics", Scotty uses the holodeck to recreate the bridge of the original enterprise, where he shares a drink with Captain Picard.

    Do you want me to go on?

  23. Because nobody's invented anything that's better on Ask Slashdot: Why Are We Still Writing Text-Based Code? · · Score: 1

    Text is extremely versatile... it is entirely orthogonal to whatever the purpose is that you are putting it to, so you can communicate absolutely anything that is possible to imagine with it.

    Also, because computers can't read our minds.

  24. Re:Fuck Beta on Big Pharma Presses US To Quash Cheap Drug Production In India · · Score: 1, Flamebait

    That's absolutely right...

    So why start driving people away already by repeating the same thing over and over and over, blocking the views of potentially other interesting posts by people that are still here?

    I get that people are upset about it... but this kind of shit is basically just holding the entire slashdot readership hostage... blocking *EVERYBODY* from seeing useful posts because their screens are filled with "fuck beta this" and "fuck beta that", using up a tremendous amount of screen real estate to not convey absolutely any new information, which I might point out, is one of the fucking things that is so annoying about beta in the first place!!!

  25. Re:Fuck Beta on Big Pharma Presses US To Quash Cheap Drug Production In India · · Score: 1

    ....or you reach a saturation point where it might backfire.

    I believe it may have already reached that point. The fuck beta spam that pervades every single story on here is tiresome, repetitive, and actively gets in the way of seeing genuinely interesting posts that are relevant to the topic being discussed. If that's going to go away when beta happens, that's genuinely unfortunate, but why start fucking it up for everybody before beta is even here? Really, this kind of drivel just seems petty, spiteful, immature, and just plain annoying. On par with any kind of other spam that some people might put here.