måndag 19 mars 2012

Software Passion: AKKA

Roland Kuhn

Akka is kidn of erlang for java/scala developers. And then some.
This amazing platform works totally asynchronously using the actor feature.
Build powerful concurrent & distributed applicationsmore easily.

An actor:
has behaviour and state and communicates through calls. buting the calls in a stack untill they can be handled.

in Akka all actors have an supervisor that decides what to do if the aktor fails to preform.

http:\\akka.io

I hade no battery during this talk so my notes are a bit spares but this was a interesting talk.


Software Passion: Programing style and your brain


Probably one of the best talks on Software Passion 2012.


Our Brain has two systems: System 1 is giving System 2 false data. (Gur and head)

Computer programming: The most advanced thing we do.
Perfection: What makes programming hard. - The computer has license to kill if we aren't perfect.


Mentions: JSLint will hurt your feelings.
If feelings are hurt: System 2 start rationalising System 1s preferences.
"Thats hardly ever happens" is another way of saying "it happens"


Decide the way you code based on what can be a problem

If there is a feature in your programming language that sometimes is a problem and there is another feature to do the same thing. Use that other feature.

Make you program look like they do what they do.

Write in the language you are writing in. following above rules. What works for java may not work for javaScript.
++x;
++x;
=======
x+=2;
 Designing a programming style demands discipline.


Avoid the abyss

Good code is good for your gut.

Software Passion: Play! framwork

http://www.softwarepassion.se/speakers.do?name=helena-hjerten
http://www.softwarepassion.se/speakers.do?name=johan-andren


Play looks easy
Allowing a mix of java code and temptation in scala.

In 45 minutes the built:


Testing can be done with Junit-test, integration tests and selenium supported by Play framework.

Software Passion: Unit Testing Styles and Mockito

Per Lundholm 

http://prezi.com/h6klz_cq_vkd/unit-testing-styles-and-mockito/

Starts with a unit-testing styles and then describing some interesting parts of mockito.

You need to know what you test:

  • Verify State:
  • Verify Behaviour:

Different mocking components:

  • Dummy Objects
  • Not actually of any production use, but can fill up parameters.
  • Fake Objects:
  • Stubs:
  • Canned answers:
  • Mocks:

Book recommendation:
XUnit Test Patterns - Gerard M

Legacy code: Capture what the legacy system produces as a result and use that as expected in a unit test.
Purpose:

  • To verify that I do not break anything
  • To learn about the legacy code.
  • To see changes.

Book Recommendation:
Working effectively with Legacy Code: Michael Ferris

The talks ends with interesting discussions and questions:

Better to write code that can be tested than code that is private.

To change code you have to have tests.


Software Passion: Combinatorial test

Robert Bergqvist

Sorry Robert. This was just boring!

  • Unit tests
  • Domain testing
  • data-driven tests

Two test approaches

  • Scripted testing
  • Exploratory testing

This guy has written test on a system hi had little knowledge of and he had time to explore it. Wrote automated test based on a model he built of the software.


Software Passion: Software craftmanship

Sandro Mancuso

The speaker asked us to focus on value when talking about Sofware Craftmanship. And told us that the most valuable we produce is code.

The Sofware Craftmanship builds on the agile development moment and looks further. Not only changing the process but focus on the purpose of coding.





Software Passion: Keynote: Jan Bosch

Professor of software development: Jan Bosch Teams:


Bosch talk: A broad talk about different aspekts of good Software development praxis. He talks about the benefits of agile values. I was able to record the following focus points:

"We still treat requirements as they come from God and are written in blood" Jan Bosch
  • Self selected, directed  managed teams. 
  • Focusing on speed. 
  • Testing what works with expermints insted of opinions 
  • Simplify architecture. 
    • Simplify
    • Decouple:
      • No versions New should be able to be used as the old.
      • Teams and components: should not be locked
  • jan @ bosch.com
Cooperations evolvment:
Traditional Development ->
Agail across teams ->
Agile in R&D ->
Continues Integration ->
Continues Deployment - >
R&D as an innovation system 
And then it was monkeys.

Summary:

  • Shadow beleives:
  • Speed:
  • Teams: Smale, crossfunctional, self driected, self manged
  • Architure: is sessential:
  • Not my job: Yes it is.