Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment So you could use this tool to make your code anon. (Score 4, Interesting) 220

Write a version of pretty-printer that rerenders your code into a different style.

Have a lexicon of mipelled words for each "personality".

Another lexicon of variable names.
a vs inta vs int_a vs x.

Refactoring and unfactoring for subroutines.

Run the comments through google translate and back to english.
ukrainian
japanese
chinese

Synonym and antonym substitution in the comments.

The mind dances at the possibilities to mess with this algorithm.

Comment Re:Poor Alan Kay (Score 1) 200

It's a problem when the default ASSERT macro expands to code with such #ifdefs (no joke - that was the norm everywhere I worked with C/C++). At one place it got so bad that we made using the ASSERT macro a firing offense (not sure why we couldn't just fix the macro, some corporate thing no doubt).

And I've been there and done that with the "no resource leaks" in C++. When you provide library code that's easier to use than doing it the wrong way, it's easy to enforce the standard in code reviews (since then it's only the new guy who hasn't seen how easy the tools are yet).

For example, if you have a good FileHandle class, it's simple to educate people to write FileHandle foo = fopen(...); instead of FILE, and then that's it, the file closes when you exit scope. Works perfectly as a member variable as well - no need to remind people that the destructor isn't called if the constructor throws, as members are always cleaned up.

Comment My experience is different. (Score 3, Insightful) 29

The truth is that many firms simply don't have the staff and budget needed to support an internal SOC. They also don't have the budget for an MSSP. With that, Mike Rothman of Securosis noted that these firms are "trapped on the hamster wheel of pain, reacting without sufficient visibility, but without time to invest in gaining that much-needed visibility into threats without diving deep into raw log files".

In my experience it is not the budget but the politics.

Is your company's security worth the expense of an additional tech? Or are office politics the reason you cannot get an additional tech?

Does whomever is in charge of your technology have the authority to say "no" to requests from other departments? And the political capital to make it stick?

I've seen too many examples of companies "suffering" from the problems their own decisions/environment created.

Retrofitting security is not the answer.

Comment Re:When everyone is guilty... (Score 4, Interesting) 431

#insert observations/law/drferris.h

(preprocessed for your convenience)

"Did you really think we want those laws observed?" said Dr. Ferris. "We want them to be broken. You'd better get it straight that it's not a bunch of boy scouts you're up against... We're after power and we mean it... There's no way to rule innocent men. The only power any government has is the power to crack down on criminals. Well, when there aren't enough criminals one makes them. One declares so many things to be a crime that it becomes impossible for men to live without breaking laws. Who wants a nation of law-abiding citizens? What's there in that for anyone? But just pass the kind of laws that can neither be observed nor enforced or objectively interpreted â" and you create a nation of law-breakers â" and then you cash in on guilt. Now that's the system, Mr. Reardon, that's the game, and once you understand it, you'll be much easier to deal with.â

Comment Re:Screen locker == physical access == ... (Score 1) 375

Why is this considered acceptable? Get physical access to my iPhone (for example - Android is probably the same?), good luck getting in.

Sure, with a PC there's a few things that are a lot more difficult to secure (e.g., the boot process) but throwing hands up in the air and giving up because of physical access is a cop out.

Comment Re:not the point (Score 2) 375

"merely add a function to the X11 API" is the problem. X11 is ancient, full of bloat that no one uses any more and not designed with core concepts in mind that are desirable in a modern operating system. Really, look up some youtube presentations from the Wayland guys - who actually work on X11 and listen to what they have to say regarding the complexity and brain damage in X11. It works, but sometimes, even the guys who maintain it don't know exactly why.

The X11 display server is a liability and needs to die. It should have been taken out behind the shed and shot about a couple of decades ago. That doesn't mean that "oh noes i will lose my remoting!", that can be implemented in it's replacement via a shim, the same way any X display server works for Windows or Mac.

Comment Re:It is "far better" at some tasks. (Score 1) 307

If you have an appleTV you just redirect the output to the TV when you get home, without even stopping the video. Unless you have a 4k display or other similarly really high res screen, reading is better on an iPad also because the text is just way clearer - you can also take it with you more easily if you need to refer to it when doing a task.

Comment Re:Need? No. Useful? Yes. (Score 1) 307

here here!

I have a surface pro 3 for work and I was also a big downer on the surface devices as a tablet. as a laptop, if you consider them as that they're great. but there's nothing useful i want to run on it that is in metro. Which means continually running classic windows apps, and the classic UI is just abysmal for touch. Even with a pen...

I think MS has a long way go go to catch up with the functionality provided by Cocoa touch.

Comment Re:iPads replaced laptops for me (Score 1) 307

What makes you say that? I've been an iphone/mac user since 2007, just upgraded to the iPhone 6 (from a 4s) and I'm still pretty happy with things. TouchID actually works, and rocks for my password manager... the battery life is better than before, voice calls from my mac through it is neat, etc.

Comment Re:Sort of like shitposting... (Score 1) 307

Do you actually own one? I have a surface pro 3 (as well as an iPad 4 and iPad mini), and sorry, but it makes a shitty tablet. As an ultra portable laptop, it is great, but I have regular issues with the metro apps falling over and not updating until i reboot the device, it is heavy, it has fans that make quite a bit of noise when it starts working hard, the battery life is way worse, it needs ant-malware, regular windows updates, etc. The Surface Pro 3 is doing well now because it is cannibalising laptop sales not because it's a great tablet experience. It's a small form factor laptop with a touchscreen, and has all the legacy windows baggage that incurs.

Comment Re:And it's ok to admit Jobs was wrong, too.... (Score 5, Insightful) 307

For many casual computer users, the iPad is enough - they do not need a computer. It does video calls, it does email, it does internet banking. With home kit, it will be able to control things in your house. It can do minor photo cropping and effects, basic shopping lists, inventory, and with a keyboard be used for basic documents.

For many people (Not tech nerds), this is all they want a personal computer for. Thus, the iPad (or any other tablet type device) can replace it. A smartphone is simply too small to be convenient for a lot of those things.

The flip-side to the things it can not do is the lack of malware, great battery life and silent operation.

Slashdot Top Deals

There are two ways to write error-free programs; only the third one works.

Working...