Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×

Comment Re:Why would anyone use JavaScript?! (Score 2) 90

As a server side language, I'm extremely torn. I've actually been using Typescript pretty heavily lately (and decorators), and it makes the code I write not too far off from the Spring/Java code I would generally write. My biggest concern with NodeJS is the maturity of the ecosystem, and how it plays with enterprise software development. One of my goto examples is LDAP support. There were a handful of libraries (circa 2014) that sort of worked, but had gaps, and ultimately required doing some odd trickery to work. The analog to Java would have been one or two libraries that are mature and just work.

I personally find NodeJS is generally a fine experience, but the ecosystem (which is what the story is about) is just lacking structure that other languages have. It will mature, but may be a lot of pain along the way. The other day I had to choose between Python and NodeJS for a utility I was writing, and I went with Python because batteries were included, and I was afraid of trying to figure out how to include dependencies on the remote host in a consistent and manner.

Comment Re:Why would anyone use JavaScript?! (Score 1) 90

From a runtime environment, I agree there are lots of "quirks", and the DOM is one of the worst cross-platform interfaces of all time. Less of a contract and more of wishes and hopes. ES2015 really does focus on syntax (e.g. "use strict" is default when using modules and not required). "this" has always been a gotcha, but that is part of a language where the function is the unit context. I actually like that about Javascript (though I realize not everyone does). For that reason "let" was also introduced to provide more normal behavior for scoping per what others expect coming from other languages.

I don't think it will ever be a "Java" or "C#" but it isn't necessarily a bad thing as lot of people seem to be happy with it's design and how it works.

Comment Re:Why would anyone use JavaScript?! (Score 4, Interesting) 90

Javascript has some terribly bad parts (as does perl and php) and I would concur that languages like Python/Ruby seemed to be planned in entirety a bit more. I would recommend looking at ES2015+, the next revision of the Javascript. It does a lot to curb those issues (JS actually has a "strict" mode that handles some of the gotchas), and ES2015 adds proper module support, as well as a standard class syntax.

These features have been in use for years by transpilers (to cover the gap between agreement on a new language feature and the time before it is adopted by the runtimes). Typescript is an even more powerful extension of ES2015 that adds compile-time type analysis/verification but generates nearly perfect idiomatic ES2015 code.

Comment Re:Why would anyone use JavaScript?! (Score 2) 90

I'm not sure how JavaScript would be that different than any other scripting language (Perl/Ruby/Python/PHP/Groovy), and those seem to have viable web ecosystems Not 100% sure where the hate for JS is coming from. Unless it's a disdain for scripting languages in general. That would generally leave you with C#/Java and Java, historically, has been the only cross platform solution, and the language has stagnated heavily over the last decade (though 1.8 and 1.9 are showing signs of life).

Comment Re:Not really. Javascript breaks production (Score 1) 90

Maven has the same problem in the SNAPSHOT dependencies, as they are free to be updated in the standard cycles. You also have to consider that the Maven plugins run in the same space as the user (and are pulled from the same dependency repositories). This makes maven just as susceptible with one major caveat. There are multiple federated repositories and publishing to one of those repositories requires reputation, and hosting your own repository (without reputation) is like downloading untrusted APKs on Android.

Comment Re:Apple ][e (Score 1) 623

Almost identically history, AppleBASIC in elementary, onto GW then QBasic in middle school. On to Visual Basic for a few apps in early high school and then into C++ with AP Computer Science. The only difference was that I was the last year of C++ before the transition to Java.

Comment Re:HTML isn't anymore (Score 1) 302

Pretty certain the tools for actionscript3 and actionscript3 itself (the language the flash runtime uses) is far more sophisticated and robust than javascript. AS3 is more comparable to Java and .NET, and would be a wonderful toolset for building web applications. It was everything Java attempted to be (in the browser).

Submission + - Bad Posture contributes to Lower Back Pain (b4backs.co.uk)

backpaintherapist writes: In the words of the wise MoriheiUeshiba, a famous martial artist and founder of the Japanese martial art of aikido, “A good stance and posture reflect a proper state of mind”. Humans communicate in a number of ways. Language is our primary means of communication however, that’s only one side of the coin. Equally important is our body language. The way we conduct ourselves around people and the way we hold ourselves as we go about our daily routine is all very important factors to consider for the sake of our well-being. Proper posture is crucial to ensure a healthy life. Generally it is very easy to misunderstand its importance or be oblivious to the harmful effects of bad posture. Neglect and ignorance of these issues can lead people to a life ofreoccurring back pain which forces them to resort to seeking various treatments and extensive back pain relief exercises.

One major cause of lower back pain is poor posture. In our everyday life we often have to spend a long time behinds desks. It is essential to examine the position of the computer screen, the type of chair being used as well as the possible need for footrests, back supports and telephone headsets, all of which, if incorrect, can contribute to poor posture and can directly cause lower back pain and muscle spasm affecting the neck.

Although people in offices spend more time sitting at a desk than the average person, they will be less susceptible to poor posture if they leave their desk at regular intervals. For example leaving to go to the rest room, attending meetings and taking coffee and lunch breaks. Furthermore, regular mobilizing and stretching exercises will help to prevent poor posture. People who surf the internet for long periods of time are more at risk of developing lower back pain as well as neck pain and muscle spasm due to bad posture. It is common to lose track of time while sitting in front of the computer screen and people easily settle in the hunched stance whereby they slouch or lean towards their screen with no support for the back. The spine develops a bend due to prolonged periods of time in this stance and the stress exerted on the lower back leads to back pain and fatigue in the muscles due to inactivity.

The other common mistake that is made by most people is the way they stand. It is common to ignore the posture when people are engaged in a conversation or when listening to someone speak at an event such as a meeting or a seminar. The optimal standing position is with the legs spread a comfortable distance apart with one foot slightly forward and the knees slightly bent. Gently shifting or the weight from one thigh to the other will take the pressure off the lower spine and thereby reduce or event prevents back pain. The weight of the entire body is evenly distributed on both thighs legs and not on the lower back #It is also important not to lean to one side of the body and locking the hip joint as this puts pressure on the hip joint and twists the spine Doing so can lead to unnecessary pressure on the back and hips as it tries to compensate for the stress on one side and can leads to slouching of the shoulders and neck strain.

The easiest way to prevent poor posture while standing sitting, bending and lifting is to learn what it is you are doing wrong while most people think they know how to stand, sit, bend, lift and carry out daily activities correctly, this is not true. Traditional methods do not work! In order to learn the correct methods to preventbad posture thereby learning to prevent lower back pain as well as neck pain yourself, find a specialist back pain therapist who can correctly tell us the right way lower back pain relief exercise your individual needs and devise a correct postural and exercise program for you.

Slashdot Top Deals

When it is not necessary to make a decision, it is necessary not to make a decision.

Working...