Что такое JSLint и зачем он нужен JavaScript — developer’у

Недавно дочитал книжку Стояна Стефанова «Java Script Patterns«, благодаря которой узнал об очень классной тулзе для проверки правильности JS-кода. Называется она JSLint.

Java Script – это интерпретируемый язык программирования, для которого не предусматривается статическая проверка типов на этапе компиляции. Вследствие этого вполне возможно развернуть программу с ошибкой, вызванной обычной опечаткой, не заметив этого. Чтобы не допустить подобных ситуаций, можно воспользоваться инструментом JSLint (http://jslint.com).

JSLint

JSLint


JSLint – это инструмент проверки качества программного кода на JavaScript, созданный Дугласом Крокфордом (Douglas Crockford), который проверит ваш программный код и предупредит обо всех потенциальных проблемах.

Обязательно проверяйте свои сценарии с помощью JSLint. Этот инструмент «будет задевать ваше самолюбие», как предупреждает его создатель, но только на первых порах. Благодаря JSLint вы будете быстро учиться на собственных ошибках и постепенно выработаете в себе основные привычки профессионального программиста на Java Script. Отсутствие предупреждений после проверки с помощью JSLint поднимет вашу уверенность в программном коде, так как вы будете знать, что второпях не допустили элементарных оплошностей или синтаксических ошибок.

JSLint

JSLint

Настройки JSLint по умолчанию предполагают, что проверяемый программный код написан для работы в строгом режиме, в котором запрещается использование некоторых особенностей языка, что делает программы более простыми и более устойчивыми к ошибкам.

Инструмент JSLint написан на Java Script (и наверняка сам прошел бы проверку с помощью JSLint). Самое интересное, что он доступен в двух вариантах – как веб-инструмент и как самостоятельная утилита для многих платформ и интерпретаторов Java Script. Вы можете загрузить его и запускать локально на любой из платформ, где имеется WSH (Windows Scripting Host – среда выполнения сценариев для Windows – компонент, входящий в состав всех операционных сис тем Windows), JSC (Java ScriptCore, компонент операционной сис темы Mac OSX) или Rhino (интерпретатор Java Script, выпущенный компанией Mozilla). Было бы просто отлично загрузить JSLint и интегрировать его в свой текстовый редактор, чтобы выработать в себе привычку запускать его перед каждым сохранением файла.

Что такое JSLint и зачем он нужен JavaScript — developer’у
7 votes, 4.86 avg. rating (97% score)

1 473 thoughts on “Что такое JSLint и зачем он нужен JavaScript — developer’у

  1. Hi I am so delighted I found your webpage, I really found you by mistake, while I was researching on Yahoo for something else, Nonetheless I am here now and would just like to say thanks for a remarkable post and a all round thrilling blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the excellent jo.

  2. Unquestionably believe that which you said. Your favorite reason seemed to be on the web the easiest thing to be aware of. I say to you, I definitely get annoyed while people think about worries that they plainly don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks
    http://cialishuk.com/

  3. I loved as much as you’ll receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an edginess over that you wish be delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this hike.
    cialishuk online

  4. I’m impressed, I must say. Seldom do I encounter a blog that’s both equally educative and entertaining, and without a doubt, you have hit the nail on the head. The problem is something too few men and women are speaking intelligently about. I’m very happy I found this in my search for something regarding this.

  5. I think that what you published was very reasonable. But, what about this? what if you added a little content? I mean, I don’t want to tell you how to run your blog, but suppose you added a headline to possibly get a person’s attention? I mean %BLOG_TITLE% is a little boring. You could look at Yahoo’s home page and see how they write news headlines to grab people to open the links. You might add a related video or a related pic or two to get readers interested about everything’ve got to say. Just my opinion, it could bring your website a little bit more interesting.
    http://cialishuk.com/

  6. Hello, There’s no doubt that your web site may be having web browser compatibility problems. When I take a look at your blog in Safari, it looks fine however, when opening in Internet Explorer, it has some overlapping issues. I simply wanted to provide you with a quick heads up! Apart from that, wonderful blog!

  7. What i do not realize is if truth be told how you’re not really much more well-appreciated than you may be now. You’re so intelligent. You realize therefore considerably in the case of this subject, produced me personally consider it from a lot of varied angles. Its like men and women are not interested unless it’s one thing to accomplish with Lady gaga! Your personal stuffs outstanding. All the time care for it up!
    levitra 20 mg

  8. Hey there just wanted to give you a quick heads up and let you know a few of the pictures aren’t loading properly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome.

  9. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100% certain. Any recommendations or advice would be greatly appreciated. Thanks
    generic levitra

  10. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.
    canadian pharmacies

  11. It is appropriate time to make a few plans for the future and it’s time to be happy. I’ve learn this submit and if I may just I desire to recommend you few attention-grabbing issues or suggestions. Maybe you can write subsequent articles regarding this article. I want to read more things approximately it!
    canadian pharmacies

  12. Hey just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Internet explorer. I’m not sure if this is a formatting issue or something to do with web browser compatibility but I figured I’d post to let you know. The style and design look great though! Hope you get the issue solved soon. Kudos
    online pharmacies canada

  13. Hi there, I found your blog by the use of Google whilst looking for a similar subject, your web site came up, it appears to be like good. I’ve bookmarked it in my google bookmarks.
    Hi there, simply changed into aware of your blog through Google, and located that it’s really informative. I am gonna watch out for brussels. I will be grateful in case you proceed this in future. Many folks will be benefited out of your writing. Cheers!

  14. of course like your web-site however you have to check the spelling on several of your posts. Several of them are rife with spelling issues and I find it very troublesome to inform the truth then again I’ll surely come back again.
    levitra

  15. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You obviously know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?
    cialisgo

  16. You really make it seem so easy along with your presentation however I find this topic to be really something that I believe I might by no means understand. It kind of feels too complicated and very wide for me. I am taking a look forward for your next put up, I’ll attempt to get the hang of it!

  17. It is appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or suggestions. Maybe you could write next articles referring to this article. I desire to read more things about it!

  18. Hi! I know this is somewhat off topic but I was wondering which blog platform are you using for this site? I’m getting sick and tired of WordPress because I’ve had problems with hackers and I’m looking at alternatives for another platform. I would be fantastic if you could point me in the direction of a good platform.

  19. A person necessarily assist to make critically posts I might state. That is the very first time I frequented your web page and up to now? I surprised with the research you made to make this particular submit extraordinary. Great activity!

  20. Hi there, I found your blog by the use of Google while looking for a comparable subject, your website came up, it seems to be good. I’ve bookmarked it in my google bookmarks.
    Hello there, just turned into alert to your weblog thru Google, and found that it is really informative. I’m going to watch out for brussels. I will be grateful if you proceed this in future. A lot of people will be benefited from your writing. Cheers!

  21. After looking into a few of the blog posts on your web site, I really appreciate your way of blogging. I book-marked it to my bookmark webpage list and will be checking back in the near future. Please check out my web site as well and let me know your opinion.

  22. Hi there very cool site!! Guy .. Excellent .. Amazing .. I’ll bookmark your website and take the feeds additionally? I’m happy to find so many helpful info here in the publish, we’d like develop extra strategies on this regard, thanks for sharing. . . . . .

  23. You actually make it appear so easy with your presentation however I to find this matter to be actually one thing that I believe I might by no means understand. It kind of feels too complex and very extensive for me. I’m looking forward for your next submit, I will try to get the cling of it!

  24. Hi! I know this is somewhat off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having problems finding one? Thanks a lot!

  25. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your site? My blog site is in the very same area of interest as yours and my visitors would definitely benefit from some of the information you provide here. Please let me know if this ok with you. Thanks a lot!

  26. Nice post. I was checking constantly this blog and I am impressed! Very helpful information specially the last part :) I care for such info a lot. I was looking for this particular information for a long time. Thank you and good luck.

  27. Amazing blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple adjustements would really make my blog shine. Please let me know where you got your theme. Thank you

  28. I like the helpful info you provide on your articles. I’ll bookmark your weblog and take a look at again right here regularly. I’m slightly certain I’ll be told many new stuff proper right here! Good luck for the following!

  29. obviously like your web-site however you need to check the spelling on several of your posts. Many of them are rife with spelling problems and I in finding it very troublesome to inform the reality on the other hand I will definitely come again again.

  30. It’s a shame you don’t have a donate button! I’d certainly donate to this fantastic blog! I guess for now i’ll settle for bookmarking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this site with my Facebook group. Chat soon!

  31. Simply want to say your article is as astounding. The clarity to your put up is simply nice and i can think you are a professional in this subject. Fine together with your permission allow me to grab your feed to keep up to date with drawing close post. Thank you a million and please continue the gratifying work.

  32. My brother recommended I would possibly like this website. He used to be totally right. This post actually made my day. You can not believe simply how much time I had spent for this information! Thanks!

  33. Hi there! This is my first comment here so I just wanted to give a quick shout out and say I really enjoy reading through your posts. Can you suggest any other blogs/websites/forums that go over the same topics? Many thanks!

  34. Just desire to say your article is as surprising. The clarity in your post is simply excellent and i could assume you are an expert on this subject. Fine with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please carry on the enjoyable work.

  35. Howdy! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I’m getting fed up of WordPress because I’ve had problems with hackers and I’m looking at alternatives for another platform. I would be fantastic if you could point me in the direction of a good platform.

  36. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your blog when you could be giving us something informative to read?

  37. Fantastic goods from you, man. I’ve keep in mind your stuff previous to and you are simply too wonderful. I actually like what you’ve bought here, certainly like what you are saying and the way in which wherein you assert it. You’re making it enjoyable and you continue to take care of to keep it sensible. I can not wait to read far more from you. This is actually a terrific website.

  38. My developer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he’s tryiong none the less. I’ve been using Movable-type on a number of websites for about a year and am worried about switching to another platform. I have heard fantastic things about blogengine.net. Is there a way I can import all my wordpress posts into it? Any kind of help would be really appreciated!

  39. I am not sure where you’re getting your information, but good topic. I needs to spend some time learning much more or understanding more. Thanks for magnificent information I was looking for this info for my mission.

  40. Nice post. I was checking constantly this blog and I’m impressed! Very helpful information particularly the last part :) I care for such information much. I was seeking this certain information for a long time. Thank you and good luck.

  41. Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but other than that, this is fantastic blog. A great read. I’ll definitely be back.

  42. You really make it seem so easy with your presentation but I find this matter to be actually something which I think I would never understand. It seems too complex and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  43. Wonderful beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog site? The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast provided bright clear concept

  44. I blog quite often and I genuinely appreciate your information. This article has really peaked my interest. I will take a note of your blog and keep checking for new information about once per week. I opted in for your RSS feed as well.

  45. I think what you said made a ton of sense. However, what about this? suppose you added a little content? I am not saying your information isn’t good, but suppose you added a headline to possibly grab a person’s attention? I mean %BLOG_TITLE% is kinda boring. You should peek at Yahoo’s home page and see how they create post titles to grab viewers to click. You might add a video or a related pic or two to grab readers excited about everything’ve got to say. Just my opinion, it could bring your website a little bit more interesting.

  46. Hi this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding knowledge so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

  47. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why waste your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

  48. Hey There. I found your blog the use of msn. That is an extremely smartly written article. I’ll be sure to bookmark it and return to learn extra of your helpful information. Thanks for the post. I will certainly return.

  49. hey there and thank you for your information – I have definitely picked up anything new from right here. I did however expertise a few technical issues using this website, as I experienced to reload the website a lot of times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I’m complaining, but sluggish loading instances times will sometimes affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Well I am adding this RSS to my email and can look out for much more of your respective exciting content. Make sure you update this again soon.

  50. Hi there! I understand this is kind of off-topic but I needed to ask. Does managing a well-established blog like yours require a massive amount work? I’m completely new to running a blog but I do write in my diary every day. I’d like to start a blog so I will be able to share my experience and feelings online. Please let me know if you have any suggestions or tips for new aspiring bloggers. Thankyou!

  51. I do not even know how I ended up here, but I thought this post was great. I don’t know who you are but definitely you’re going to a famous blogger if you aren’t already 😉 Cheers!

  52. Very nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed browsing your blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again soon!

  53. One more thing that I would like to share at this time is that, whatever you are using free blogging service however if you don’t update your weblog on daily basis then it’s no more worth.

  54. Hello1Bing1Bing1BinHello
    Hello1Bing1Bing1BinHelloSORYMEPLS
    I have discovered that costs for on-line degree authorities tend to be a fantastic value. For instance a full 4-year college Degree in Communication with the University of Phoenix Online consists of Sixty credits at $515/credit or $30,900. Also American Intercontinental University Online gives a Bachelors of Business Administration with a overall course requirement of 180 units and a tariff of $30,560. Online studying has made having your college degree been so detailed more than before because you might earn the degree in the comfort in your home and when you finish working. Thanks for all other tips I have really learned through your site.

  55. You can definitely see your enthusiasm within the work you write. The arena hopes for more passionate writers such as you who aren’t afraid to mention how they believe. Always follow your heart.

  56. Hello1Bing1Bing1BinHello
    Hello1Bing1Bing1BinHelloSORYMEPLS
    Amazing! This blog looks exactly like my old one! It’s on a completely different subject but it has pretty much the same layout and design. Great choice of colors!

  57. hey all, I was simply checkin’ out this blog and I actually admire the basis of the article, and have nothing to do, so if anybody would like to to have an engrossing convo about it, please contact me on AIM, my identify is heather smith
    My accomplice and I really loved reading this blog put up, I used to be simply itching to know do you trade featured posts? I am at all times trying to find somebody to make trades with and merely thought I might ask.
    Definitely one of the challenges which people starting a new on-line company face is that of obtaining visitors to their web site.
    Now you will have your new website online and also you’re keen to start making some sales! But, how can you make sales in the event you do not need high volumes of tourists to your website?
    Seo wants a superb search engine optimizer plan. Just one in every of these strategies could make an enormous distinction in your sites place and company your web site brings you.
    Many thanks for posting this, It?s just what I was researching for on bing. I?d lots comparatively hear opinions from an individual, barely than an organization internet web page, that?s why I like blogs so significantly. Many thanks!
    Simply killing some in between class time on Digg and I discovered your article . Not normally what I choose to examine, but it was absolutely price my time. Thanks.
    What i find troublesome is to discover a weblog that may capture me for a minute but your blog is different. Bravo.
    I’ve to admit that i sometimes get bored to read the entire thing but i believe you possibly can add some value. Bravo !
    Hey – nice weblog, simply wanting round some blogs, seems a pretty good platform You Are using. I’m at present utilizing Drupal for just a few of my sites however seeking to change considered one of them over to a platform very much the same to yours as a trial run. Anything particularly you’d suggest about it?
    I’ve not too long ago started a weblog, the knowledge you present on this site has helped me tremendously. Thanks for your entire time & work.
    Hiya clever points.. now why didn’t i consider those? Off topic barely, is this page pattern merely from an odd installation or else do you use a customized template. I use a webpage i’m seeking to enhance and nicely the visuals is likely one of many key things to complete on my list.
    Really like your websites particulars! Undoubtedly a wonderful provide of knowledge that’s extremely helpful. Stick with it to carry publishing and i’m gonna proceed studying by way of! Cheers.
    Congratulations on possessing actually one among one of the crucial sophisticated blogs Ive arrive throughout in a while! Its just amazing how a lot you’ll be capable of take into account away from a thing basically simply because of how visually stunning it is. Youve place collectively an excellent blog site house –nice graphics, motion pictures, layout. That is certainly a should-see website!
    IЎЇm delighted that I have noticed this weblog. Lastly anything not a junk, which we undergo extremely frequently. The website is lovingly serviced and stored as much as date. So it must be, thanks for sharing this with us.
    My neighbor and I have been just debating this particular subject, he is often searching for to show me incorrect. Your view on this is nice and exactly how I truly feel. I just now mailed him this website to indicate him your individual view. After trying over your web site I ebook marked and shall be coming back to read your new posts!
    I wished to thank you for this nice read!! I undoubtedly having fun with every little little bit of it I have you bookmarked to take a look at new stuff you put up
    This one is an inspiration personally to uncover out way more associated to this subject. I have to confess your data prolonged my sentiments in addition to I am going to proper now take your feed to remain up to date on each coming weblog posts you might possibly create. You might be worthy of thanks for a job perfectly achieved!
    You ought to essentially think about engaged on creating this weblog into a major authority on this market. You evidently have a grasp deal with of the matters everyone is trying to find on this website in any case and you possibly can actually even earn a buck or two off of some advertisements. I might explore following latest matters and raising the quantity of write ups you put up and I assure you’d begin seeing some wonderful targeted visitors within the near future. Only a thought, good luck in whatever you do!
    Thanks for taking the time to discuss this, I feel strongly about it and love learning extra on this topic. If doable, as you acquire expertise, would you mind updating your weblog with additional info? This can be very useful for me.
    I’m nonetheless studying from you, but I’m bettering myself. I definitely love studying every part that is written on your blog.Preserve the tales coming. I cherished it!
    Thanks for taking the time to debate this, I really feel strongly about it and love studying more on this topic. If potential, as you achieve experience, would you mind updating your blog with extra data? It is extremely useful for me.
    I know this isn’t precisely on subject, but i’ve a web page using the identical program as effectively and i am getting troubles with my feedback displaying. is there a setting i’m lacking? it’s attainable you may help me out? thanx.
    Very effectively written information. It will be helpful to anyone who usess it, including myself. Keep up the great work – for certain i’ll try more posts.
    Highly rated post. I study one thing completely new on different blogs everyday. Deciding on one . stimulating to learn the paper content material from other writers and learn a bit of something from their website. I’d like to apply sure of this content on my weblog you’re mind. Natually I’ll give a link right here we are at your internet-site. Admire your sharing.

  58. I’m really impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Either way keep up the nice quality writing, it’s rare to see a great blog like this one these days..

  59. One other thing to point out is that an online business administration diploma is designed for individuals to be able to easily proceed to bachelor degree courses. The Ninety credit education meets the lower bachelor education requirements so when you earn the associate of arts in BA online, you will have access to the newest technologies on this field. Several reasons why students need to get their associate degree in business is because they’re interested in the field and want to obtain the general training necessary in advance of jumping in to a bachelor education program. Many thanks for the tips you actually provide inside your blog.

  60. The subsequent time I read a blog, I hope that it doesnt disappoint me as a lot as this one. I mean, I know it was my option to read, but I actually thought youd have something interesting to say. All I hear is a bunch of whining about one thing that you might repair if you happen to werent too busy in search of attention.

  61. I’m not sure exactly why but this site is loading very slow for me. Is anyone else having this issue or is it a issue on my end? I’ll check back later and see if the problem still exists.

  62. I have witnessed that clever real estate agents almost everywhere are warming up to FSBO Promotion. They are noticing that it’s in addition to placing a sign post in the front area. It’s really with regards to building relationships with these suppliers who someday will become customers. So, whenever you give your time and effort to aiding these dealers go it alone : the «Law of Reciprocity» kicks in. Thanks for your blog post.

  63. One more thing that I wish for to share here is that, whatever you are using free blogging service but if you don’t update your website on on a regular basis basis then it’s no more attraction.