1 / 49

Bare-knuckle web development

Bare-knuckle web development. DevDay.LK Johannes Brodwall, Chief scientist Exilesoft Global. @ jhannes. It can be fun and productive to use the basic tools. Philosophy Demonstration Ruminations. Part I:. Why. Learn new technologies OR Learn new things about your technology.

kyrene
Download Presentation

Bare-knuckle web development

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bare-knuckle web development DevDay.LK Johannes Brodwall, Chief scientist Exilesoft Global @jhannes

  2. It can be fun and productive to use the basic tools

  3. Philosophy Demonstration Ruminations

  4. Part I:

  5. Why

  6. Learn new technologies OR Learn new things about your technology

  7. High impact with low ceremony

  8. Framework light Test-driven No calculators

  9. Light on framework

  10. How much time do you spend In debugger? Waiting for build? On Stackoverflow?

  11. Frameworks solve 80% of the job…

  12. … and makes the rest 10 times as hard

  13. Test-driven

  14. Fast feedback cycle

  15. “I can see how TDD works for toy examples…”

  16. “… but how can we use it when we have all these really complicated technologies???”

  17. (Hint: “all these complicated technologies” I think I see your problem right here...)

  18. “Don’t use a calculator…”

  19. Part II:

  20. Demo: Phonebook web app

  21. What can you learn?

  22. Test for web applications Specifying requirements with tests The difference betweenrealistic slow tests (aka “integration”)and limited fast tests (aka “unit”) Dependencies in your tests What does the web server do? Refactoring shortcuts Growing design Alternatives to HTML templates (maybe)

  23. Part III:

  24. Ruminations

  25. Those are my principles, and if you don't like them... well, I have others. - Groucho Marx

  26. Build your app this way?

  27. Probably not

  28. Well, why not?

  29. I am most likely insane

  30. Or...

  31. The reasonable man adapts himself to the world: the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. - George Bernard Shaw

  32. Understand what’s going on

  33. «Don’t reinvent the wheel»

  34. Are you using technology to solve your problems?

  35. Or so that you don’t have to face your problems?

  36. ... yet.

  37. Overheated brain

  38. 95 % test coverage

  39. 95 % test coverage 5-10 seconds

  40. 95 % test coverage 5-10 seconds < 1 day to create «framework»

  41. SOAP: Construct XML POST on HttpURLConnection

  42. @Override public String getCountryByIp(String ipAddress) { Document soapRequest = soapElement("S:Envelope", $("S:Body", wsxElement("wsx:GetGeoIP", $("wsx:IPAddress", ipAddress)))); Document soapResponseendpoint.postRequest(getSOAPAction(), soapRequest); return$(soapResponse).xpath("/Envelope/Body/*") .xpath("GetGeoIPResult/CountryName").text(); }

  43. No friction

  44. Conclusion:

  45. No calculator until…

  46. Don’t just learn new technologies .

  47. Don’t just learn new technologies => Learn new approaches, techniques and features about the technology you use

  48. Thank you jbr@exilesoft.com http://johannesbrodwall.com http://exilesoft.com/exilee @jhannes Believe nothing on the faith of traditions.Do not believe a thing because many people speak of it. Do not believe on the faith of the sages of the past. Do not believe what you yourself have imagined. After examination, believe what you yourself have testedand found to be reasonable - Buddha

More Related