Jessie is a node.js runner for Jasmine BDD framework.
It allows running of Jasmine specs in node.js environment, adds pending specs, improves error and failure reporting.
- The document discusses different approaches for implementing dynamic polymorphism in Clojure: late namespace binding, protocols, and multimethods.
- Late namespace binding allows dynamically switching namespaces at runtime but has issues with testing. Protocols define interfaces but require defining a protocol for each participant.
- Multimethods provide true runtime polymorphism without macros or configuration by using defmulti and defmethod to dispatch on runtime values and define implementations. They require less code and allow easy test injection.
Presentation of the Broadcast gem that I failed to present because there was not enough time at the lighting talks. Enjoy! If you have questions, hit me up on Twitter - @marcinbunsch
The document discusses the development of an educational quiz app aimed at students. It aims to get students to play a game to learn instead of playing games without educational value. The app will include different types of quizzes like logos and general knowledge. Based on user interviews, the app was seen as a good idea as long as it receives constant updates with new questions. After consulting an expert, the team decided on a price of £0.49 for the app. They also designed a mock-up of the app and gathered feedback on it from their target age group and others.
Artificial intelligence (AI) is everywhere, promising self-driving cars, medical breakthroughs, and new ways of working. But how do you separate hype from reality? How can your company apply AI to solve real business problems?
Here’s what AI learnings your business should keep in mind for 2017.
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
We asked LinkedIn members worldwide about their levels of interest in the latest wave of technology: whether they’re using wearables, and whether they intend to buy self-driving cars and VR headsets as they become available. We asked them too about their attitudes to technology and to the growing role of Artificial Intelligence (AI) in the devices that they use. The answers were fascinating – and in many cases, surprising.
This SlideShare explores the full results of this study, including detailed market-by-market breakdowns of intention levels for each technology – and how attitudes change with age, location and seniority level. If you’re marketing a tech brand – or planning to use VR and wearables to reach a professional audience – then these are insights you won’t want to miss.
The document discusses using jQuery for Ajax support. It introduces the $.ajax function for making Ajax requests with jQuery and describes some of its basic syntax and options. Examples are provided to demonstrate using $.ajax to make an Ajax request and update a web page by retrieving data from a JSP page.
Microsoft PowerPoint - <b>jQuery</b>-1-Ajax.pptxtutorialsruby
1. The document discusses jQuery, an open-source JavaScript library for DOM manipulation and Ajax. It provides an overview of jQuery's capabilities including DOM manipulation, events, effects and animations.
2. The document covers how to install jQuery and its browser compatibility. It also summarizes jQuery's selector syntax for selecting DOM elements.
3. An example is given demonstrating how to randomly change the background colors of HTML headings using jQuery by adding and removing CSS classes on click events.
The document discusses using jQuery for Ajax support. It introduces the $.ajax function for making Ajax requests with jQuery and describes some of its basic syntax and options. Examples are provided to demonstrate using $.ajax to make an Ajax request and update the page based on the response.
- The document discusses different approaches for implementing dynamic polymorphism in Clojure: late namespace binding, protocols, and multimethods.
- Late namespace binding allows dynamically switching namespaces at runtime but has issues with testing. Protocols define interfaces but require defining a protocol for each participant.
- Multimethods provide true runtime polymorphism without macros or configuration by using defmulti and defmethod to dispatch on runtime values and define implementations. They require less code and allow easy test injection.
Presentation of the Broadcast gem that I failed to present because there was not enough time at the lighting talks. Enjoy! If you have questions, hit me up on Twitter - @marcinbunsch
The document discusses the development of an educational quiz app aimed at students. It aims to get students to play a game to learn instead of playing games without educational value. The app will include different types of quizzes like logos and general knowledge. Based on user interviews, the app was seen as a good idea as long as it receives constant updates with new questions. After consulting an expert, the team decided on a price of £0.49 for the app. They also designed a mock-up of the app and gathered feedback on it from their target age group and others.
Artificial intelligence (AI) is everywhere, promising self-driving cars, medical breakthroughs, and new ways of working. But how do you separate hype from reality? How can your company apply AI to solve real business problems?
Here’s what AI learnings your business should keep in mind for 2017.
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
We asked LinkedIn members worldwide about their levels of interest in the latest wave of technology: whether they’re using wearables, and whether they intend to buy self-driving cars and VR headsets as they become available. We asked them too about their attitudes to technology and to the growing role of Artificial Intelligence (AI) in the devices that they use. The answers were fascinating – and in many cases, surprising.
This SlideShare explores the full results of this study, including detailed market-by-market breakdowns of intention levels for each technology – and how attitudes change with age, location and seniority level. If you’re marketing a tech brand – or planning to use VR and wearables to reach a professional audience – then these are insights you won’t want to miss.
The document discusses using jQuery for Ajax support. It introduces the $.ajax function for making Ajax requests with jQuery and describes some of its basic syntax and options. Examples are provided to demonstrate using $.ajax to make an Ajax request and update a web page by retrieving data from a JSP page.
Microsoft PowerPoint - <b>jQuery</b>-1-Ajax.pptxtutorialsruby
1. The document discusses jQuery, an open-source JavaScript library for DOM manipulation and Ajax. It provides an overview of jQuery's capabilities including DOM manipulation, events, effects and animations.
2. The document covers how to install jQuery and its browser compatibility. It also summarizes jQuery's selector syntax for selecting DOM elements.
3. An example is given demonstrating how to randomly change the background colors of HTML headings using jQuery by adding and removing CSS classes on click events.
The document discusses using jQuery for Ajax support. It introduces the $.ajax function for making Ajax requests with jQuery and describes some of its basic syntax and options. Examples are provided to demonstrate using $.ajax to make an Ajax request and update the page based on the response.
The document discusses using jQuery for Ajax support. It introduces the $.ajax function for making Ajax requests with jQuery and describes some of its basic syntax and options. Examples are provided to demonstrate using $.ajax to make an Ajax request and update the page based on the response.
Postgres vs Mongo / Олег Бартунов (Postgres Professional)Ontico
The document compares Postgres and MongoDB, discussing their different data models. It notes that Postgres supports semi-structured data through extensions like hstore and JSON, allowing flexible schemas like NoSQL databases while retaining ACID properties. JSON support has improved over time with the addition of the JSON and JSONB data types in Postgres.
Javascript unit testing, yes we can e bigAndy Peterson
This document discusses test-driven development for JavaScript using ScrewUnit and BlueRidge. It introduces the Carbon Five consulting firm and covers why JavaScript unit testing is important. It then demonstrates how to write behavioral tests using ScrewUnit's BDD style and shows a live example testing a wizard component. Some challenges of JavaScript testing like DOM cleanup and structure are addressed. The document emphasizes that JavaScript testing is possible and can be integrated into the development process.
The document discusses using Java objects to generate JSON. It provides an overview of the steps involved, including setting response headers, getting the Java object result, converting it to a JSONObject using the org.json utilities, and outputting the JSONObject. Code samples are given for a servlet that performs these steps. Specifically, it shows calling a business logic method to get a Java result, converting it to a JSONObject, and printing the JSONObject to the response.
Joose is a meta object system for JavaScript that helps write well-structured, expressive, declarative, maintainable JavaScript applications. It allows for classes, interfaces, mixins, modules/packages/namespaces, roles, and method modifiers. Joose aims to bring features from other programming languages like Java, C#, Smalltalk, Ruby, and Perl to JavaScript in a native way. It provides a declarative syntax for building classes and other structures and also includes meta features for introspecting and manipulating objects at runtime.
React and Redux took the world by storm. These JavaScript libraries allow you to write applications consisting of reusable components while avoiding bugs related to side-effects. But I suspect that developers do not unit test their React/Redux code. Or at least not as much as they could. During this talk, I will showcase the unit tests we have written for our eventriX product. These tests run fast and cover the most important aspects of our client-side code running in the browser. These practical real-world examples could inspire you to write more and better unit tests for your own React/Redux application.
The document discusses the evolution of the Java platform, including new features in Java SE 7 and Java SE 8. Some key changes in Java SE 7 include better integer literals, string switches, simplified generics using diamond operator, and automatic resource management. Java SE 8 will focus on invokedynamic for multi-language support on the JVM and method handles. The JVM specification defines the runtime environment independently of the Java programming language.
Clojure for Java developers - StockholmJan Kronquist
This document provides an overview of the Clojure programming language from the perspective of a Java developer. It begins with an introduction to the presenter and an outline of what will not be covered. It then discusses some popular Clojure applications and frameworks. The core sections explain that Clojure was created in 2007, is a Lisp dialect that runs on the JVM and JavaScript, and is designed for concurrency. It provides an example of Clojure code, discusses reasons for using Clojure like its functional nature and interactive development environment. It addresses common complaints about Clojure and discusses Lisp concepts. It also covers Clojure data types, programming structures, working with Java classes using macros, editor support
Unit Testing your React / Redux app (@BucharestJS)Alin Pandichi
React and Redux took the world by storm. These JavaScript libraries allow you to write applications consisting of reusable components while avoiding bugs related to side-effects. But I suspect that developers do not unit test their React/Redux code. Or at least not as much as they could. During this talk, I will showcase the unit tests we have written for our eventriX product. These tests run fast and cover the most important aspects of our client-side code running in the browser. These practical real-world examples could inspire you to write more and better unit tests for your own React/Redux application.
This document outlines the basics of jQuery, including:
- Using jQuery selectors to select DOM elements
- Common jQuery actions like traversing, manipulating, and styling elements
- Binding events and creating effects like showing/hiding elements
- Advanced features like animations, AJAX requests, and building plugins
- Resources for learning more about jQuery programming
- The document discusses using the Rubeus gem to access Java Swing and JDBC from JRuby.
- Rubeus provides a DSL for easily creating Java Swing windows and accessing databases using JDBC from Ruby code.
- Examples show how to create a basic Swing window with text fields and buttons, as well as execute JDBC queries and access database metadata.
This document provides an overview of using JDBC (Java Database Connectivity) to access databases from Java applications. It discusses the basic 7 steps to using JDBC: 1) load the driver, 2) define the connection URL, 3) establish the connection, 4) create a statement object, 5) execute a query, 6) process the results, and 7) close the connection. It also provides specifics on using Apache Derby, an open-source SQL database that can be used for simple applications and is embedded with Java.
This document provides an overview of using JDBC (Java Database Connectivity) to connect to and query databases. It discusses the seven basic steps to using JDBC: 1) load the driver, 2) define the connection URL, 3) establish the connection, 4) create a statement object, 5) execute a query, 6) process the results, and 7) close the connection. It also provides examples of connecting to and querying databases using JDBC.
Joose is a meta object system for JavaScript that allows developers to write well-structured, expressive, declarative, and maintainable JavaScript applications using classes, interfaces, mixins, modules and other object-oriented programming features. It aims to bring features from languages like Java, C#, Smalltalk, CLOS, Ruby, and Perl 5/6 to JavaScript in a native way. Joose provides a declarative syntax for defining these features and also includes meta features for introspecting and manipulating the defined classes and objects.
Iasi code camp 12 october 2013 jax-rs-jee-ecosystem - catalin mihalacheCodecamp Romania
This document discusses JAX-RS, a Java API for RESTful web services. JAX-RS allows developers to easily build RESTful web services and resources using Java annotations. It presents JAX-RS resources and how to handle requests and responses using annotations like @Path, @GET, and @Produces. It also covers exception handling, customizing responses, and additional JAX-RS annotations. Examples are provided from sample projects demonstrating how to implement basic CRUD operations on JAX-RS resources and consume/produce JSON payloads without requiring JAXB.
The document discusses using jQuery for Ajax support. It introduces the $.ajax function for making Ajax requests with jQuery and describes some of its basic syntax and options. Examples are provided to demonstrate using $.ajax to make an Ajax request and update the page based on the response.
Postgres vs Mongo / Олег Бартунов (Postgres Professional)Ontico
The document compares Postgres and MongoDB, discussing their different data models. It notes that Postgres supports semi-structured data through extensions like hstore and JSON, allowing flexible schemas like NoSQL databases while retaining ACID properties. JSON support has improved over time with the addition of the JSON and JSONB data types in Postgres.
Javascript unit testing, yes we can e bigAndy Peterson
This document discusses test-driven development for JavaScript using ScrewUnit and BlueRidge. It introduces the Carbon Five consulting firm and covers why JavaScript unit testing is important. It then demonstrates how to write behavioral tests using ScrewUnit's BDD style and shows a live example testing a wizard component. Some challenges of JavaScript testing like DOM cleanup and structure are addressed. The document emphasizes that JavaScript testing is possible and can be integrated into the development process.
The document discusses using Java objects to generate JSON. It provides an overview of the steps involved, including setting response headers, getting the Java object result, converting it to a JSONObject using the org.json utilities, and outputting the JSONObject. Code samples are given for a servlet that performs these steps. Specifically, it shows calling a business logic method to get a Java result, converting it to a JSONObject, and printing the JSONObject to the response.
Joose is a meta object system for JavaScript that helps write well-structured, expressive, declarative, maintainable JavaScript applications. It allows for classes, interfaces, mixins, modules/packages/namespaces, roles, and method modifiers. Joose aims to bring features from other programming languages like Java, C#, Smalltalk, Ruby, and Perl to JavaScript in a native way. It provides a declarative syntax for building classes and other structures and also includes meta features for introspecting and manipulating objects at runtime.
React and Redux took the world by storm. These JavaScript libraries allow you to write applications consisting of reusable components while avoiding bugs related to side-effects. But I suspect that developers do not unit test their React/Redux code. Or at least not as much as they could. During this talk, I will showcase the unit tests we have written for our eventriX product. These tests run fast and cover the most important aspects of our client-side code running in the browser. These practical real-world examples could inspire you to write more and better unit tests for your own React/Redux application.
The document discusses the evolution of the Java platform, including new features in Java SE 7 and Java SE 8. Some key changes in Java SE 7 include better integer literals, string switches, simplified generics using diamond operator, and automatic resource management. Java SE 8 will focus on invokedynamic for multi-language support on the JVM and method handles. The JVM specification defines the runtime environment independently of the Java programming language.
Clojure for Java developers - StockholmJan Kronquist
This document provides an overview of the Clojure programming language from the perspective of a Java developer. It begins with an introduction to the presenter and an outline of what will not be covered. It then discusses some popular Clojure applications and frameworks. The core sections explain that Clojure was created in 2007, is a Lisp dialect that runs on the JVM and JavaScript, and is designed for concurrency. It provides an example of Clojure code, discusses reasons for using Clojure like its functional nature and interactive development environment. It addresses common complaints about Clojure and discusses Lisp concepts. It also covers Clojure data types, programming structures, working with Java classes using macros, editor support
Unit Testing your React / Redux app (@BucharestJS)Alin Pandichi
React and Redux took the world by storm. These JavaScript libraries allow you to write applications consisting of reusable components while avoiding bugs related to side-effects. But I suspect that developers do not unit test their React/Redux code. Or at least not as much as they could. During this talk, I will showcase the unit tests we have written for our eventriX product. These tests run fast and cover the most important aspects of our client-side code running in the browser. These practical real-world examples could inspire you to write more and better unit tests for your own React/Redux application.
This document outlines the basics of jQuery, including:
- Using jQuery selectors to select DOM elements
- Common jQuery actions like traversing, manipulating, and styling elements
- Binding events and creating effects like showing/hiding elements
- Advanced features like animations, AJAX requests, and building plugins
- Resources for learning more about jQuery programming
- The document discusses using the Rubeus gem to access Java Swing and JDBC from JRuby.
- Rubeus provides a DSL for easily creating Java Swing windows and accessing databases using JDBC from Ruby code.
- Examples show how to create a basic Swing window with text fields and buttons, as well as execute JDBC queries and access database metadata.
This document provides an overview of using JDBC (Java Database Connectivity) to access databases from Java applications. It discusses the basic 7 steps to using JDBC: 1) load the driver, 2) define the connection URL, 3) establish the connection, 4) create a statement object, 5) execute a query, 6) process the results, and 7) close the connection. It also provides specifics on using Apache Derby, an open-source SQL database that can be used for simple applications and is embedded with Java.
This document provides an overview of using JDBC (Java Database Connectivity) to connect to and query databases. It discusses the seven basic steps to using JDBC: 1) load the driver, 2) define the connection URL, 3) establish the connection, 4) create a statement object, 5) execute a query, 6) process the results, and 7) close the connection. It also provides examples of connecting to and querying databases using JDBC.
Joose is a meta object system for JavaScript that allows developers to write well-structured, expressive, declarative, and maintainable JavaScript applications using classes, interfaces, mixins, modules and other object-oriented programming features. It aims to bring features from languages like Java, C#, Smalltalk, CLOS, Ruby, and Perl 5/6 to JavaScript in a native way. Joose provides a declarative syntax for defining these features and also includes meta features for introspecting and manipulating the defined classes and objects.
Iasi code camp 12 october 2013 jax-rs-jee-ecosystem - catalin mihalacheCodecamp Romania
This document discusses JAX-RS, a Java API for RESTful web services. JAX-RS allows developers to easily build RESTful web services and resources using Java annotations. It presents JAX-RS resources and how to handle requests and responses using annotations like @Path, @GET, and @Produces. It also covers exception handling, customizing responses, and additional JAX-RS annotations. Examples are provided from sample projects demonstrating how to implement basic CRUD operations on JAX-RS resources and consume/produce JSON payloads without requiring JAXB.
Similar to Jessie - TDD in node.js using Jasmine (17)
Iasi code camp 12 october 2013 jax-rs-jee-ecosystem - catalin mihalache
Jessie - TDD in node.js using Jasmine
1. jessie
TDD in node.js using Jasmine
Marcin Bunsch
nodecamp.eu 2011
Sunday, June 12, 2011
2. Jasmine
• JavaScript testing framework
• does not depend on any other JavaScript frameworks.
• does not require a DOM.
• does not pollute prototypes
• similar to RSpec
Sunday, June 12, 2011
3. describe('Simple specs', function() {
it("should work", function() {
expect("aaa").toEqual('aaa')
})
it("should work with not", function() {
expect("bbb").not.toEqual('aaa')
})
})
Jasmine - suites and specs
Sunday, June 12, 2011
5. describe('Before and after specs', function() {
var a = 1
beforeEach(function() { a += 1 })
afterEach(function() { a += 1 })
it("should execute the beforeEach", function() {
expect(a).toEqual(2)
})
it("should execute the afterEach", function() {
expect(a).toEqual(4)
})
})
Jasmine - before and after
Sunday, June 12, 2011
6. describe('Spies', function() {
var some_object = { some_func: function() {} }
it("should be able to spy on existing objects", function() {
spyOn(some_object, 'some_func')
some_object.some_func()
expect(some_object.some_func).toHaveBeenCalled()
})
it("should be able to create spies", function() {
var spy_func = jasmine.createSpy()
spy_func()
expect(spy_func).toHaveBeenCalled()
})
})
Jasmine - spies
Sunday, June 12, 2011