This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Developer Mentality

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When it comes to server side code, most developers "get it," meaning that they understand class responsibilities and are able to organize code in a maintainable way.

One problem that I have noticed, however, is that when it comes to web development (specifically with HTML and Javascript), developers tend to be lazy and don't view HTML and Javascript the same way as other code, thus creating extremely large HTML pages with Javascript scattered throughout without the proper separation.

With the introduction of Dojo and the Ajax idea in our website, it increases the amount of Javascript on the site. How do I, within my team, promote well organized HTML and Javascript in such a way that is easy to read and maintain?
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've faced that exact problem with the teams I mentor at work as well. In fact, it was worse for me in some ways because many of the developers I had to mentor were coming from a mainframe programming background where there (typically) isn't even OOP concepts!

Unfortunately, I don't have any answer, other than continually hammering the point home. We do a lot of code reviews, and we have stringent static code analysis reports run daily, and we've even discussed tieing compliance on some things to reviews, although we haven't gone down that road yet.

If you figure it out, let me know
 
Justin Hickman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What kind of static analysis can you do with Javascript, or are you referring to static analysis on the Java side? Are there tools such as Checkstyle, findbugs, etc for Javascript?
 
keep an eye out for scorpions and black widows. But the tiny ads are safe.
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic