Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. ×

Comment Re:Effective solution (Score 3, Insightful) 127

In most colleges computer science classes. The first hour you can normally get a print out of text. An input that save the variable. Then prints the variable. Most of the class is just figuring out the ide, or getting the syntax right.
You won't get into if conditional and loops and mathematical processing until hour 3 or so.

Then you get into nesting. That is where students who didn't have any coding experience struggle for the first time.
1 hour is a joke. Back in my days where schools had 8 bit computers we were taught how to code in elementary. As coding was an important aspect in computer literacy. Then when Windows 95 came out the computer training got really stupid and just showed how to use Office.

I know the government wants to make coding the next blue collar job but it takes a lot of knowledge and practice to perfect the craft.

Comment Re:American fasting diet? (Score 3, Informative) 138

The daily recommendations for caloric intake is 2000 calories. This is for average person who probably doesn't exist. But still it is a good baseline.
1000 calories is a fasting condition for many people as it is usually the amount of calories you burn all day just surviving. If you actually get out of bed and do stuff you will burn more calories. At the gym for an hour work out I can burn about 900-1300 calories.
The thing is you probably eat more then you think. Unless you measure every item you eat and record its calories. You are probably eating more calories then you think due to having bigger portions adding additional sides, that snak you may have during the day. You may still be slim but chances are you are taking in over 1000 calories.

Sure a person can survive for a long time on 1000 calories but the body is on starvation mode so it will try to limit your activity to prevent you from burning good body parts.

Comment Re:pointless (Score 1) 159

If you like it. If you can use the feature immediately even with old content and if it won't create a compatibility war. Go ahead and get it if you can afford it and you think it is worth the price.
Asking if one should get a luxury item will just get a bunch of no from people who didn't get it and a few yes from the ones who did.
At this moment curved screens, 4/5k displays, uber video cards.... are luxury items that most can do without but we all want to splurge on something nice if we can.

Comment Re:This is news...? (Score 1) 263

It 2017 anything goes for news. I expect the Los Alamos National Lab is worried about its funding so will repurpose one of its old hypothesis and try to get it on Fox News so the president see it and decides to keeps it funding. These organizations if smart realize how manipulatable the president is, and just a few simple things can cause him to change his mind and course. Just as long as you stroke his ego you can do whatever you want.

I am sorry I didn't want to make this political, but we had a problem with bad science news for a long time, because the people eat it us, and they use it to keep their funding. Unfortunately for some areas such as climate change due to some early overzealous hypothesis created a situation of mistrust of science where the general population and politicians just don't get the scientific process and are unable to weed out what are strong results and poor results and the difference between a hypothesis and a theory.

Comment Re:Until (Score 1) 374

A lot of this bloat we see in today's programs is actually future proofing the code vs just being lazy.
The systems of old on computers that were not as powerful didn't have room for for this and most developers didn't have history to realize what are the average changes overtime are. So they wrote tight code to do exactly what was needed. Today a lot of resources goes into hooks in code to allow to expand featured, change UI elements. With gigs of ram available some algorithms can work faster with more readable code using more RAM and less CPU especially on higher load systems.

Comment Re:Until (Score 1) 374

A lot of these performances features of language such as C isn't from the language but the compilers. The language itself is just a wrapper to the machine code being generated.
Sure there are some low level features that may allow assembly code but that is rather rare in today's coding methodology because we have with most compilers and OSs a big set of libraries to do most of the stuff we need.
That said compiling a language such as Python could have just as good performance as C over time as the compiler gets optimized.

Comment Re:A more basic question (Score 1) 723

Luckally money is a unit of measurement.
1. How much money did you use to tax the population vs how much you will need to tax the population now.
2. Find out if the average percentage of a persons tax per wage has gone up?
3. Factor in any government dept needed to be payed for the service.

Now if we find the side effect of a basic income is laziness then you will find that incomes will stagnant so your tax revenue will too if using a progressive income tax. If you find that people invest into this safety net to further education and take risks over time you should see a rise in income so to pay for the basic income would be less percentage of the taxable income.

Now I applaud counties for trying it out. However if it doesn't work then it doesn't work and we shouldn't get so suck on the idea.

Comment Re:Why bother hoping? (Score 1) 153

Well there are many reasons.
1. In the grand scheme of things those connector problems isn't an issue at all.
2. Apple started the current smartphone market so many people are stuck with Apple because if they switch then they will loose their apps that they have.
3. Companies often do not support Android apps as well as for Apple.
4. Apple echo system has more high quality apps then android.

Apple will be a major phone product unless they really screw up or someone else can successfully get something past the square touchscreen phone.

Comment Re:obvious (Score 4, Insightful) 197

In your office it is very easy to get stuck with your own way of doing things and your companies approved products. You could be suffering at your job and you don't know it. Going to these conferences even just visiting the sales booths you get to see what else is out there and how to approach a problem differently. Realizing you may need a new class of products to stay competitive. That is companies pay for people to go to these. Also it gives your company exposure too. Sometimes those vendors may not sell anything to you but can become a partner were you can both expand the customer base.

Comment Re:Doing it wrong? (Score 1) 600

I think we all missed the memo.
Now there are some places where it is misused.
1. Can make code too cryptic. When tracing code a recursive algorithm forces the observer to understand the full algorithm vs just the part which can make debugging an odd use case difficult.
2. Limited stack space. So if you don't know how deep that routine will go. You could end up with some hard to fix problems.

However some language like JavaScript really don't give you much of an option. Such as a lack of a sleep command and poorly implemented synchronize way to call data. Means using recursive method is necessary where one normally wouldn't.

Then sometime there are problems where recursion is much more logical way to solve. While can be done with a loop but you need to make a stack by itself vs using the natural one that is in a recursion.

Slashdot Top Deals

Life in the state of nature is solitary, poor, nasty, brutish, and short. - Thomas Hobbes, Leviathan

Working...