The document discusses CoffeeScript, a programming language that compiles to JavaScript. It was designed to have cleaner syntax than JavaScript and be easier to read and write. CoffeeScript code compiles directly to equivalent JavaScript code. Using CoffeeScript can help developers write less code that is more readable and maintainable while still being able to use existing JavaScript libraries. The document provides examples of CoffeeScript code and the equivalent JavaScript output. It also discusses how to use CoffeeScript with Ruby on Rails projects by adding the Barista gem.
Slides from talk given at Ithaca Web Group and GORGES on CoffeeScript.
The focus is on explaining to people who haven't tried it yet that it's more than syntactic sugar. There are several real life code examples but they were explained verbally so they may not be super helpful if you don't know CoffeeScript yet.
It's an overview, not a tutorial.
This is brief presentation on the Scala programming language. It is aimed at Java developers who are curious about Scala. It was given at a San Francisco Java User Group in January 2009.
Introduction to Ruby and Introduction to Ruby on Rails basic concepts for beginners. The google presentation is even better in full screen https://docs.google.com/presentation/d/1EE0VuB_PkD2-8j5JNs6CUQHb4J9ToIgC7-IxYTojiS0/pub?start=false&loop=false&delayms=3000#slide=id.p
Part of a series of talk to help you write your first Perl 6 program today. So its basic syntax and concepts of its object orientation and a comparison to the widely used P5 OO system Moose which is similar by no accident.
Love it or hate it, JavaScript is playing an increasingly important role in the next generation of web and mobile apps. As code continues to move from the server to the client, JavaScript is being used to do more than simple HTML manipulation. Be prepared for this transition and make sure the JavaScript you write is optimized and ready to perform on desktops and devices! In this session, you will learn ten practical tips that you can use today to write faster, more maintainable, memory friendly JavaScript.
Roles are an excellent object-oriented tool both for allomorphism and for
reuse.
Roles facilitate allomorphism by favoring "does this object do X" versus "is
this object a subclass of X". You often care more about capability than
inheritance. In a sense, roles encode types better than inheritance.
Roles also provide an excellent faculty for reuse. This effectively eliminates
multiple inheritance, which is often the only solution for sharing code between
unrelated classes.
Roles can combine with conflict detection. This eliminates accidental shadowing
of methods that is painful with multiple inheritance and mixins.
Parameterized roles (via MooseX::Role::Parameterized) improve the reusability
of roles by letting each consumer cater the role to its needs. This does
sacrifice some allomorphism, but there are ways to restore it.
Object Oriented got a lot easier since Moose came around.
This keynote is a one-day advanced Moose workshop covering (almost) everything Moose has to offer perl developers
Talk at WordCamp Norway 2012 about how to create a native app with WordPress as a datasource.
Going into the XML-RPC, JSON plugins and how to manage the data in the backend.
The example had to be removed because of the company I worked for. Don't know why but as a result a smaller presentation.
"How was it to switch from beautiful Perl to horrible JavaScript", Viktor Tur...Fwdays
I use JavaScript since 2006. That time I did single-page applications for IE6 in JS (it was ES3) and backend in Perl. JS was a pain. Does it better now? During my talk, I would like to show the fundamental difference between modern JS and Perl. How the same problems can be solved in different ways. Hope to give you a broader view on what programming languages can provide. Be prepared for interaction and to help me with simple tasks/problems in JavaScript :)
My Beginners Perl tutorial, much abbreviated and as presented at the London Perl Workshop on Dec 1st 2007.
Also includes the section on Regular Expressions that we didn't have time for on the day.
Slides from talk given at Ithaca Web Group and GORGES on CoffeeScript.
The focus is on explaining to people who haven't tried it yet that it's more than syntactic sugar. There are several real life code examples but they were explained verbally so they may not be super helpful if you don't know CoffeeScript yet.
It's an overview, not a tutorial.
This is brief presentation on the Scala programming language. It is aimed at Java developers who are curious about Scala. It was given at a San Francisco Java User Group in January 2009.
Introduction to Ruby and Introduction to Ruby on Rails basic concepts for beginners. The google presentation is even better in full screen https://docs.google.com/presentation/d/1EE0VuB_PkD2-8j5JNs6CUQHb4J9ToIgC7-IxYTojiS0/pub?start=false&loop=false&delayms=3000#slide=id.p
Part of a series of talk to help you write your first Perl 6 program today. So its basic syntax and concepts of its object orientation and a comparison to the widely used P5 OO system Moose which is similar by no accident.
Love it or hate it, JavaScript is playing an increasingly important role in the next generation of web and mobile apps. As code continues to move from the server to the client, JavaScript is being used to do more than simple HTML manipulation. Be prepared for this transition and make sure the JavaScript you write is optimized and ready to perform on desktops and devices! In this session, you will learn ten practical tips that you can use today to write faster, more maintainable, memory friendly JavaScript.
Roles are an excellent object-oriented tool both for allomorphism and for
reuse.
Roles facilitate allomorphism by favoring "does this object do X" versus "is
this object a subclass of X". You often care more about capability than
inheritance. In a sense, roles encode types better than inheritance.
Roles also provide an excellent faculty for reuse. This effectively eliminates
multiple inheritance, which is often the only solution for sharing code between
unrelated classes.
Roles can combine with conflict detection. This eliminates accidental shadowing
of methods that is painful with multiple inheritance and mixins.
Parameterized roles (via MooseX::Role::Parameterized) improve the reusability
of roles by letting each consumer cater the role to its needs. This does
sacrifice some allomorphism, but there are ways to restore it.
Object Oriented got a lot easier since Moose came around.
This keynote is a one-day advanced Moose workshop covering (almost) everything Moose has to offer perl developers
Talk at WordCamp Norway 2012 about how to create a native app with WordPress as a datasource.
Going into the XML-RPC, JSON plugins and how to manage the data in the backend.
The example had to be removed because of the company I worked for. Don't know why but as a result a smaller presentation.
"How was it to switch from beautiful Perl to horrible JavaScript", Viktor Tur...Fwdays
I use JavaScript since 2006. That time I did single-page applications for IE6 in JS (it was ES3) and backend in Perl. JS was a pain. Does it better now? During my talk, I would like to show the fundamental difference between modern JS and Perl. How the same problems can be solved in different ways. Hope to give you a broader view on what programming languages can provide. Be prepared for interaction and to help me with simple tasks/problems in JavaScript :)
My Beginners Perl tutorial, much abbreviated and as presented at the London Perl Workshop on Dec 1st 2007.
Also includes the section on Regular Expressions that we didn't have time for on the day.
Streams of information - Chicago crystal language monthly meetupBrian Cardiff
* Let's review and compare a couple of scenarios where data flows in and out of the system.
* What should we look at for better resource utilization?
* What have Crystal std-lib done up until now?
* What are the open questions for future work?
Nessa apresentação demonstro como arquitetar uma aplicação Android utilizando MVVM+Clean Architecture no Android utilizando as bibliotecas do Jetpack (View Model, Room, LiveData, ...)
CosmosDB service is a NoSQL is a globally distributed, multi-model database database service designed for scalable and high performance modern applications. CosmosDB is delivered as a fully managed service with an enterprise grade SLA. It supports querying of documents using a familiar SQL over hierarchical JSON documents. Azure Cosmos DB is a superset of the DocumentDB service. It allows you to store and query noSQL data, regardless of schema. In this presentation, you will learn: • How to get started with DocumentDB you provision a new database account. • How to index documents • How to create applications using CosmosDb (using REST API or programming libraries for several popular language) • Best practices designing applications with CosmosDB • Best practices creating queries.
4. What is CoffeeScript ?
language designed to be compiled into JavaScript
piątek, 3 grudnia 2010
5. What is CoffeeScript ? - 2
language designed to be a compiled into JavaScript
code compiles one-to-one into the equivalent JS
piątek, 3 grudnia 2010
6. What is CoffeeScript ? - 3
language designed to be a compiled into JavaScript
code compiles one-to-one into the equivalent JS
syntax take advantages of modern OO languages
like Ruby, or Python
piątek, 3 grudnia 2010
7. What is CoffeeScript ? - 4
language designed to be a compiled into JavaScript
code compiles one-to-one into the equivalent JS
syntax take advantages of modern OO languages
like Ruby, or Python
cooperate with already existing JS libraries
(like jQuery, Facebook JS SDK, Google API etc.)
piątek, 3 grudnia 2010
8. What is CoffeeScript ? - 5
language designed to be a compiled into JavaScript
code compiles one-to-one into the equivalent JS
syntax take advantages of modern OO languages
like Ruby, or Python
cooperate with already existing JS libraries
(like jQuery, Facebook JS SDK, Google API etc.)
pass through JSLint without warnings =)
piątek, 3 grudnia 2010
9. How it can help us ?
less lines of code with better readability,
code easy to understand, and maintain
standard code encapsulation and variables
protection (no var anymore)
but...
piątek, 3 grudnia 2010
10. How it can help us ?
less lines of code with better readability,
code easy to understand, and maintains
standard code encapsulation and variables
protection (no var anymore)
but... even if you are writing code in CoffeeScript
you should know how JavaScript`s concepts work
piątek, 3 grudnia 2010
20. Using CoffeeScript
with Ruby on Rails
assumptions:
installed Node.js with packed manager npm
piątek, 3 grudnia 2010
21. Using CoffeeScript
with Ruby on Rails
assumptions:
installed Node.js with packed manager npm
installation CoffeeScript compiler
Gemfile
npm install coffee-script
piątek, 3 grudnia 2010
22. Using CoffeeScript
with Ruby on Rails
add gem Barista
Gemfile
gem 'barista', '>= 0.5.0'
piątek, 3 grudnia 2010
23. Using CoffeeScript
with Ruby on Rails
add gem Barista
Gemfile
gem 'barista', '>= 0.5.0'
run rake task
Console
rails generate barista:install
piątek, 3 grudnia 2010
24. Using CoffeeScript
with Ruby on Rails
add gem Barista
Gemfile
gem 'barista', '>= 0.5.0'
run rake task
Console
rails generate barista:install
create folder
app/
mkdir coffeescripts
piątek, 3 grudnia 2010
25. Using CoffeeScript
with Ruby on Rails
store scripts in /app/coffeescripts/
use *.coffee extension
run dev server (or trigger any request)
JS files are generated dynamically
you can preview those files in default JS folder
/public/javascripts/
piątek, 3 grudnia 2010
26. It`s nice, isn`t it ?
DEMO
&
discussion time
piątek, 3 grudnia 2010
27. Resources:
Official website of the project
http://jashkenas.github.com/coffee-script/
Github repo with source code
https://github.com/jashkenas/coffee-script
underscore.js implemented in CoffeeScript (nice example of good CS code)
http://jashkenas.github.com/coffee-script/documentation/docs/underscore.html
Barista gem website, and repo
https://github.com/Sutto/barista
piątek, 3 grudnia 2010