#WeGotCoders
Explore tagged Tumblr posts
simonemiller-blog · 8 years ago
Text
Web Dev Training with #WeGotCoders: Week 1
Intro to Ruby
This week’s been an introduction to Ruby.  Strings, Control Structures, Data Structures, Methods, Classes & Objects and Code Blocks.
Transport for London Project
As part of the Data Structures track, we’ve been working on a command line app that plans a user's journey on the London Underground - Transport For London.  This involves modelling a subsection of the tube network, prompting a user for their start and end stations, and printing out their route.
We chose to model the tube sub-network using a hash of arrays, and began the process with a procedural approach, prompting the user for input along the way.
I’ve been working on refactoring the code with an object-oriented approach, using a Journey class and initializing each journey object with a start and finish station.  
Here’s the code so far: TFL Project
I’ve encapsulated each procedure within a method, so that the code prints out the stations between the user’s start and finish stations.  If they need to change lines to complete their journey, Oxford Circus is the intersection point.
There’s 6 general journey outcomes:
Travelling eastbound on one line
Travelling westbound on one line
Travelling eastbound on more that one line
Travelling westbound on more that one line
Travelling eastbound, changing at oxford circus, and continuing westbound on another line
Travelling westbound, changing at oxford circus, and continuing eastbound on another line
Next Steps
Adding control flow so that the relevant method is called when a journey is entered.
Refactoring!  There’s still lots of repetition and I’m using the return value of methods to access out of scope variables.  This is making the code quite unwieldy and needs work....once I get my head around scope! 
1 note · View note
wegotcoders · 11 years ago
Text
Case Study: Hostelling International Hire Two We Got Coders Trainees
Tumblr media
One of our first clients to employ We Got Coders trainees, HiHostels, are a global federation of Hostel accommodation providers. With the help of our consultants, they have recently completed a project to migrate their bookings and point of sale platform onto a modern, API-backed, service-orientated architecture. After a 14-month multiple-supplier software build, HiHostels found that the return on investment with the agency model gradually produced diminishing returns, and began consider other approaches to provision software development. We asked Operations Director Ivan Salcedo what his rationale was for working with We Got Coders to provide junior developers for their development team.
“We faced a series of headaches on a major e-commerce project; we were running behind schedule, running out of budget and we still had a large amount of work to complete before we could launch the project. Our appointed web agency were delivering less and less value for money, and other specialist agencies would not take the project on without rebuilding the code from the ground up. We were in a tricky position.
Enter We Got Coders. Dan was personally recommended by people I trust in the industry, and I was struck both by his passion for web development and his faith in his students. But what impressed me most was the commitment, dedication and talent of the developers that he had been working with. The project presentations would shame many “professional’ developers, and so we arranged to take two alumni for three months.
Commercially, this made a lot of sense to us. We could afford more resource than through a “conventional’ agency, and we had the security of knowing an experienced senior developer would be on hand to mentor, guide and get stuck in to the code if required.
Dan had assessed our codebase before committing to the project, and was able to advise as to whether his junior developers would be up to the task. They didn't flinch from the challenge; within a very short space of time both developers were contributing direct improvements to our codebase and at the end of the twelve week placement I had no hesitation in offering both of them contracts.
If you are looking for skilled, committed and eager developers, I strongly recommend using We Got Coders; whether in a situation where you are looking to control costs, are building a new team or you are actively looking to bring a fresh perspective to your current dev team. I was impressed by the wider industry experience that the We Got Coders consultants bring with them, as well as a resolute approach to coding using industry best practices with Test Driven Development and Agile development.”
We Got Coders source talented web developers and train them in-house, to produce highly-skilled web development professionals procificent in full-stack web development, specialising in Ruby. For more information, please see our website We Got Coders.
1 note · View note
simonemiller-blog · 8 years ago
Text
Web Dev Training with #WeGotCoders: Week 4
We continued our thread of persisting data by looking at databases and SQL.  Starting off with SQlite3, the SQL Docs and this SQLite Tutorial was really helpful, especially for going through CRUD actions and joins.  
We later looked at models, migrations and associations in Active Records…and how Active Records generates SQL queries for us – Active Records Magic
Next stop Postgres…
1 note · View note
simonemiller-blog · 8 years ago
Text
Web Dev Training with #WeGotCoders: Week 3
This past week we’ve been looking at TDD with Minitest & Rspec.  
We were working on a flight calculator, that takes coordinates and flight details and works out the distance between two airports and the estimated time of arrival.  We used Minitest to drive the development and were looking to refactor the calculator with SRP, extensibility and re-usability of code in mind.  
A separation of concerns lead us to create two classes – flight, that contained knowledge of its own airline, flight number, destination etc, and Coordinates –  which was responsible for calculating the distance between two point using longitudes, latitudes and radians.
We’re now working on persisting the data, and producing reports of incoming flight information in html, csv and text formats.  We’ve created extra Reports classes and sub classes to handle the report generation.
Here’s some of our tests for the Coordinate class:
describe "Coordinates" do  before do    @lhr = Coordinates.new(lat: 51.4700223, lng: -0.4542955)    @jfk = Coordinates.new(lat: 40.6413111, lng: -73.77813909999999)  end
 it "has objects which know their own latitude and longitude" do    @lhr.lat.must_equal 51.4700223    @lhr.lng.must_equal -0.4542955    @jfk.lat.must_equal 40.6413111    @jfk.lng.must_equal -73.77813909999999  end
 it "converts lat and lng into radians" do    @lhr.to_radians(51.4700223).must_equal 0.8983213552099045    @lhr.to_radians(-0.4542955).must_equal -0.0079289522519939    @jfk.to_radians(40.6413111).must_equal 0.7093246910223184    @jfk.to_radians(-73.77813909999999).must_equal -1.287671443289366  end
 it "calculates the distance to another coordinate object" do    @lhr.distance_to(@jfk).must_equal 5540.01265634309  end end
1 note · View note
simonemiller-blog · 8 years ago
Text
Web Dev Training with #WeGotCoders: Week 2
This week we’ve been focussing on object-oriented programming, and refactoring previous assignments with multiple classes to model real-world scenarios more closely, and encapsulate our code in methods.
We’ve also been working on modules, and implementing our own each and spaceship operator methods, giving us access to the Enumerable and Comparable modules within our own classes.
Here’s an update on the Transport for London assignment, where info about the Tube Line and Underground network have been separated out from the Journey class.  A class method, user_journey, now instantiates a journey object with a start and finish station, and the Underground class is responsible for working out what line a station is on.  TFL Project
1 note · View note
wegotcoders · 11 years ago
Text
We Got Coders team win People's Choice award at #endsvchack
Tumblr media
The world's first global summit for ending sexual violence in conflict took place this week in London, at the London ExCel center. Hosted by the Foreign Secretary William Hague and UN ambassador Angelina Jolie, the summit was combined with a public exhibition, that brought together charities, NGOs, governments and activists, to help raise awareness, support victims and find solutions to this very difficult issue.
Tumblr media
Amongst the fringe events was the first ever hackathon, aimed at finding practical solutions to sexual violence in conflict (SVC), where teams of volunteers, activists, survivors, diplomats, creatives, managers and coders got together to realise new ideas towards helping SVC survivors and improve communication amongst NGOs and activists.
Tumblr media
In just 48 hours, the team brainstorms solutions to the ideas, and rapidly puts together tech solutions that prove the concept. We ended up using many of the tools that we have been learning about on the course: padrino, rails, cucumber, gems, github, HTML & CSS and Google maps.
Tumblr media
After three days of ardour, hardly any sleep and a lot of fun, the We Got Coders trainees managed to get a basic prototype of each idea. Our trainees Serafeim Maroulis (@reykowgc) and Lianne Tan (@L_t15), worked on a concept for a volunteering platform, which combined Google maps and volunteer information in a Rails application, designed to help NGO's find local voltuneers and build a local support network. Dan Hassan (@dan_mi_sun), Dami Odelola (@damzcodes), Zoltan Biber (@ZoltanBiber) and myself worked on a concept to help find displaced people missing from within refugee camps, that used facial recognition technology to help NGOs collate photograph data and find potential matches.
Tumblr media
The latter project was selected for the people's choice award, where £500 seed funding was awarded to the group. The prize went to the team with the most votes on the EndSVC website, with the majority of the votes coming from the exhibition delegates. We are now in discussions with the organisers, Chaynl, and our teammates (@miqueltubert) and (@SweetnutDesign) as to where to take the project next.
If you are an NGO, angel investor, programmer or are interested in working with us on this or any other project related to the topic, please get in touch. We are willing to sponsor a project of this kind by providing the technical expertise and time to get this off the ground; now we are looking to build on our success and take the project to the next level. Please contact [email protected] and we would be happy to hear from you.
Many thanks go out the event organisers and the lovely people @chaynl for putting the together the event (and for all the free chocolates!)
Tumblr media
0 notes