Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:What do you expect? (Score 1) 252

If anyone wants to argue this point because you think Singleton is a good design pattern, you're a bad programmer and should consider getting a MBA.

That's not a very good argument.

Even if it's the one good example of a time when a singleton might actually be a good fit for something, the code review board will shoot it down.

Where do you work where you have an entire board dedicated to code review?! How do you get anything done!?

The only places where that much red tape is justified is with pacemakers, airplanes, manned space flight, and anything with the word "nuclear" in it. And maybe a few other cases, but you get the idea.

Comment Re:What do you expect? (Score 1) 252

My best attempt to translate that from what I think is Haskell to an imperative pseudocode, in case anyone is curious what's going on:

define fib_aux(int n, int a, int b) returning int:
{
    if(n>=1)
        return fib_aux(n-1,b,a+b)
    else
        return b
}

define fib(int n) returning int:
{
    return fib(n,0,1)
}

If you're having trouble seeing why this works, start with noting that you're basically using b as an accumulator, and go from there.

It's linear time because you're only doing one recursive call per method and you're decreasing n by one with each recursive call.  It's only constant space if you have a smart compiler that can get rid of the stack frames that would be generated in an unoptimized implementation.  The needed optimization is called tail recursion.  Tail recursion is basically a cheat where you count on the compiler to optimize away your recursion into an iterative loop when your recursive call is the final instruction of the function; the optimization logic to do that is not hard.  Python is a notable language that does NOT do this optimization.

Comment Re:Okay, hardware sucks, but what about the softwa (Score 1) 177

The desktop is quite crusty on R-Pi too. It's fine for embedded/server use though, and I do not have complaints about those scenarios. It will be interesting to see how Windows 10 performs on R-Pi 2. :)

Umm ... R-Pi 2 is still ARM, right? So, wouldn't the answer be, "not at all, because MS is bailing out of ARM"? They discontinued the ARM-based Surface recently.

I verified that and it is properly using the official Intel graphics driver.

Weird. Have you checked what glxinfo says? I think it's possible for OpenGL to be software rendering even if the driver isn't VESA in certain broken setups. Another good step would be to try Knoppix on it, to see if it's a distro-specific issue or not. I used Knoppix recently on some random computers with Intel drivers and desktop effects worked fine.

XFCE hasn't seen a new release in almost 3 years, the compositor tears (because it is based on XRender), and it does not have any desktop effects. Windows on the same hardware runs cool zoom animations and translucency without a hitch. Other than that, XFCE seems relatively glitch-free, so I agree that it's one of the best choices.

No, they haven't had a major release recently, but XFCE is definitely still maintained. It's possible to get Compiz to work with XFCE, but, like sibling poster suggests, I would just not use desktop effects if they're not working. I'm sure I could get them working if I really tried, but I'm not using desktop effects on any of my machines. They're a novelty item that wears off quickly.

Now you are just cheerleading. :) You can't realistically say that your experience is "pretty bug-free" if X (in practice: whole desktop) crashes roughly weekly.

One machine out of six, man :) And I was using a beta distro, and I think it might be fixed now. I actually think it's one screensaver that causes or caused it, but I don't know which one because xscreensaver uses a random one each time it starts. It could also be a hardware issue with the machine, though I doubt it.

Comment Re:Okay, hardware sucks, but what about the softwa (Score 1) 177

Elementary OS had horrible tearing, choppy and slow animations, and popped up a "System problem detected" right on the first boot.

Uh ... my guess would be ElementaryOS somehow didn't auto-detect your graphics card right and you were using X with VESA. That would do that. I just set up a Linux laptop with an Intel graphics card. Worked great; VA-API allows hardware-accelerated 1080i H264 video, with deinterlacing, with no tearing. I'm sure it could handle the 10 or so polygons used for desktop effects without problem.

Linux is not the way to breathe life into an old computer anymore. That time was 15 years ago. These days you can make an old PC run Linux fast only by using a simple window manager and turning off all the desktop effects. Even then you would be left dealing with loads of bugs everywhere.

Dude, Linux runs on the Raspberry Pi. In the last few years I set up Linux on a system with a 700MHz Celeron and 256MB RAM. I've purchased a Linux VM with 128MB of "virtual" RAM. It'll run.

Use XFCE on old hardware. And new hardware; it's the current king of traditional desktop interfaces in the window manager world.

GNOME, KDE, and the others have lost their minds. That doesn't mean you have to drink the kool-aid, too.

Re bugs, my experience has been Linux is pretty bug-free. The only thing I'm running into trouble with is X deciding to segfault every week or so on my work machine. Annoying as fuck, but at least I can restart it without restarting the whole computer. It seems to be fixed in the last update, too, though it hasn't been long enough. And, I'm running Slackware-current, which is technically a beta distro though it's usually pretty stable.

Comment Re:WTF- DRM-free please! (Score 1) 106

Uh, what about this: https://torrentfreak.com/dvd-r...

Cinavia's not really important anyway because it only blocks you if you use a Blu-Ray player for playback. All you have to do is play the the files on a computer with a FLOSS video player like mplayer or vlc and the Cinavia will be ignored.

Comment Re:BASICally my reply is... (Score 1) 259

I agree that programming languages are not real languages. There are similarities, which are useful when teaching the subject, but they are definitely different disciplines.

I'd like to relate an anecdote, here. I majored in CS. I declared a major in Economics as well. However, the College of Liberal Arts (offering Economics) required foreign language, while the College of Natural Sciences (offering CS) did not. I had taken foreign language in high school, but more was required. I ended up dropping Economics as a major, because I wasn't going to waste time taking more foreign language just to get a second undergraduate degree. Though I generally support breadth requirements in undergraduate study, I consider this an unfortunate result of the requirement.

Comment Re:Particularly since these are federal charges (Score 3, Insightful) 257

You allude to one of the most disgusting loopholes in the US justice system, which is that double jeopardy does not apply across the federal/state boundary. So, yes, the feds can try you, you can be found innocent, and then the state gets another bite at the apple.

This is VERY uncommon, though, because both federal and state prosecutors typically will, as agency policy, NOT exercise this right, because it's so unfair to do that and so out-of-keeping with the spirit of the constitution. But there have been instances where they have done this. And it's disgusting.

Comment Re:Why different in America? (Score 1) 700

You've just described a highly dysfunctional work environment, except for the hot coworker part and the "I-sometimes-need-to-do-boring-stuff" part. The boring stuff part becomes dysfunctional if it gets too much, though. I can say from experience that not everywhere is like you describe. Long term, you might want to changing jobs.

As mentioned elsewhere, a number of factors correlate to create a highly artificial and dysfunctional social environment in lower education. A company where you're dealing with high-school social problems is a dysfunctional company. Hell, due mainly to honors classes keeping the bored clowns out of my way, my actual high school experience had few high-school social problems. The lower education dysfunctional environment was mostly middle school and lower.

Comment Re:Patent Grammar Too (Score 1) 425

The incorrect grammar "comprised of" would be an ambiguity, and as such, interpreted in the strictest way -- limiting as in Patent B.

You're dead wrong: http://patentlyo.com/patent/20...

Also, since shark fins on a vehicle would be purely decorative and nonfunctional, their presence or absence would be irrelevant in either construction.

It may seem worrisome that scientists and engineers of all people -- some of the absolute worst butchers of language and grammar out there! -- are the ones who become patent agents or patent attorneys, but all-in-all, the ones who do so tend to be some of the smartest folks I've met. You need to be well-rounded to do the job.

Perhaps you're underestimating technical people. For example, I will very rarely, if ever, include a period in quotation marks, unless that period is part of the text I'm quoting. I will write things like

Type "cp -a /etc backup".

That example right there should tell you why I do it: if I include the period, it's ambiguous. Moreover, if I do need to quote a period at the end of a sentence, I will sometimes do this:

Type "cp -a /etc .".

Because if I didn't include the period, it would be ambiguous. I know so-called "standard English" doesn't like that. However, for all I care, anyone who would like to criticize my using quotation marks in this manner can go fuck himself in the ass with a retractable baton. I'm going to use language to communicate precise ideas, and I will rewrite any rules that inhibit doing so. Mangling quotations by including unrelated punctuation is stupid and idiotic and wrong, and I won't do it.

It may seem worrisome that scientists and engineers of all people -- some of the absolute worst butchers of language and grammar out there! -- are the ones who become patent agents or patent attorneys, but all-in-all, the ones who do so tend to be some of the smartest folks I've met. You need to be well-rounded to do the job.

Why would you think this? Scientists and engineers communicate precise ideas with each other routinely as part of their employment. Sloppy thinking and sloppy communication is tolerated less in those disciplines than any others, probably including even law.

My experience has been that technical people communicate clearly and efficiently about most topics and are less prone to falling for the cheap debating trick linguistic slights-of-hand that fool others. I assure you that if a competent technical person is talking to you in a way you find "incorrect", it is intentional. Perhaps you should be more tolerant.

Finally, to close: I have nothing against patent attorneys as individuals, though I'm glad software patents are dying. I'm also sure there are many competent patent attorneys out there. However, it's poor taste to diss one profession ("some of the absolute worst butchers of language and grammar") and then praise your own ("you need to be well-rounded to do the job"). It comes across as arrogant and condescending.

HAND.

Comment Re:Excellent idea (Score 1) 779

That's a little overly cynical, I think. I have lawyers in my family. From what they tell me, lawyers are pretty hard on each other as far as professional ethics goes.

Similar to what you are saying would be doctors campaigning against vaccines because contagious diseases are good for business. Instead, we have doctors shouting till they're blue in the face that vaccines don't cause autism.

Most people aren't sociopathic bastards, and a sociopathic bastard wouldn't care about helping other sociopathic bastards anyway, so the creature you're describing is probably pretty rare.

Slashdot Top Deals

Kleeneness is next to Godelness.

Working...