未加星标

CF Camp 2018: Madness in Munich Part Five- AngularJS + ColdFusion

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏

Welcome to our final installment of CF Camp 2018: Madness in Munich! This is our series pertaining to all things CF Camp 2018, the only CF conference in Europe. In our fifth and final part, we look upon Nolan Erck’s upcoming session, AngularJS + ColdFusion. Here he will discuss getting started with AngularJS and building a simple JSON API in ColdFusion. He will then show you how to interconnect the two in order to create a fully functional application.


CF Camp 2018: Madness in Munich Part Five- AngularJS + ColdFusion

In our article, we will discuss the importance of JS (javascript) for client-side web apps and how it can benefit your company. I will also go on about exactly what AngularJS is and how you can get started. (Although, I will leave all the heavy lifting to Nolan during his presentation…) And now without further ado, let’s get started.

“What in particular I enjoy about coding in CFML, is the power and flexibility of the metaprogramming which we use day to day. You’re not stuck with what the language gives you. You can really nice, and easily, use metaprogramming to extend it to create your own frameworks, and I know other languages do that, but it’s always much more direct to do things in CFML without … Compare it to Ruby that does some nice syntactic sugar around that. It’s more straight forward. It’s not quite so obscure as a language. It reads much better.” Dominic Watson, Technical Director at

Pixl8 Interactive


CF Camp 2018: Madness in Munich Part Five- AngularJS + ColdFusion

From CF Alive episode, “ 007 Marketing Automation using the Preside Platform with Dominic Watson “

What You Need to Know as CIO The Difference between Server Side and Client Side

Does understanding the difference between server-side and client side really matter for my business?

Absolutely.

The server-side environment (backend) is comprised of everything that is needed to generate dynamic HTML. This HTML is then sent to the client side (frontend) for use.

On the server-side of things your preferred scripting language is used whether it be Ruby, python, orphp.

Now of course, we all know that CFML with ColdFusion or Lucee is our language of choice. But is it your client’s?

In all likelihood, probably not.

You see, front-end applications are written almost exclusively in JavaScript (JS) alongside basic HTML and CSS. These are the scripts that are normally used to run a browser. JS is known as a client-side language because it is ideal for user interaction.

So… why would you try to communicate with your clients using CFML knowing full well that your clients only support JS?

IT JUST DON’T MAKE NO SENSE!

But… Why JavaScript?

Believe it or not, JavaScript hasn’t always been the cool kid in class. Once dismissed as buffoonish and amateurish by developers, JS has risen to the rank of most popular computing language. According to an lform.com survey, 65% of all programmers polled use JavaScript.

Heck, in our very own 2018 State of the CF Union , a whopping near 90% of CF developers asked used JS.

So what happened? How did JavaScript get to be such a dominant force in computer language programming?

Back in 1993, Marc Andreessen founder of Netscape Communications knew that a small scripting language would be needed to be the language glue with the DOM (Document Object model or the interface for HTML and XML docs). Through the creation of this language, web content could become more interactive, user-friendly, and dynamic.

Marc understood that this particular language needn’t be overly complex either. Instead he designed this language with graphic designers and part-time programmers in mind. His language shouldn’t be limited to those tech savvy and professional developers. Remember… this was the early nineties. Not everyone was running around with smartphones then.

And thus the idea of JavaScript was formed.

However, this idea wasn’t put into play immediately. But in 1995, Netscape commissioned Brendan Eich to create the JavaScript language. He was able to accomplish this in only 10 days. Just like that JavaScript was born.

After its release, it was later brought to ECMA International. EMCA International is an organization established in 1961 to set a worldwide standard for communication and information systems. JavaScript was adopted and turned into EMCA Script.

Throughout the following years, EMCA Script evolved and progressed. Doing so gave it more ground amongst the development community. As of today, 95% of all websites on the Internet use JavaScript according to W3Techs .

If these numbers don’t tell you that JS is important… honestly, I don’t know if you can be helped.

Here are just some of the advantages in terms of dynamic enhancements when using JavaScript:

Autocomplete Loading New Content onto the Page without Reloading the Page Dropdown Menus and Rollover Effects Animated Page Elements such as Resizing, Relocating, or Fading Audio and Video Capabilities Input Validation for Web Forms Repairing Browser Compatibility Issues

On top of all this, the role of JavaScript can never be denied. This is because JS acts both as an Object Oriented Language and as a Procedural Language.

The Abuse of JavaScript

Remember, as CIO you ultimately make the calls when it comes down to your information technologies. Understanding that JavaScript is the catch-all of client-side operations can make your life easier. But what if it’s not? What should I not use JavaScript for?

In a perfect world, we would have one uniform language we could use seamlessly between both and front and back-end operations. Unfortunately for us, we don’t live in this perfect world. And no one language can provide this. So in order to determine what is best… You need to focus on the purpose of your actual application. There will be instances where JavaScript just won’t work. I mean you wouldn’t code the entirety of Star Wars: Rogue Squadron in JS. (Am I correct in this assumption Nolan?)

Just keep in mind the scope of your work when using any programming language. JS can be abused and pushed past its limitations easier than you would think just due to its adaptability and availability. With that being said, let’s take a brief look at what AngularJS is.

AngularJS

AngularJS (or Angular.js) is a JS-based third-party front-end framework created and maintained by Google. One of its key focuses is to simplify the testing and development of single page apps. This is accomplished by providing a steady framework for MVC (Model View Controller) and MVVM (Model-View-ViewModel) architectures.

HTML is great for declaring static documents. This goes without saying. However, HTML does have its faults when dealing with dynamic applications. In true JavaScript fashion, AngularJS increases the reach and capabilities of your standard HTML v

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

代码区博客精选文章
分页:12
转载请注明
本文标题:CF Camp 2018: Madness in Munich Part Five- AngularJS + ColdFusion
本站链接:https://www.codesec.net/view/611212.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(69)