251 reputation
17
bio website lattyware.co.uk
location Cambridge, United Kingdom
age 22
visits member for 2 years, 1 month
seen Sep 5 at 10:49

I'm Gareth Latty - a software & web developer, focusing on delivering professional, efficient and maintainable solutions.

I have a first-class honours degree in Computer Science from the University of Leicester.

I am currently working at IBM Cambridge (IBM i2) on Intelligence Analysis solutions.

I have worked on a variety of open source projects - both personally and in teams. I also enjoy gaming and game development, and have participated in the Ludum Dare game development competition, producing games within 48 hours, along with other game jams and game related projects.

My particular passion is the Python programming language - I love the ability to rapidly produce maintainable, readable code, and have a lot of experience developing in the language.

Website - LinkedIn - SO Careers


Oct
22
awarded  Yearling
Nov
5
comment Is it bad style to redundantly check a condition?
As a note, the python syntax for this would be a generator expression: (line for line in lines if line.startswith("a") or line.startswith("b")).
Nov
5
comment what kind of certificate needed for my application ?
I was referring to the line 'I was wondering if I need to purchase any kind of license for them ?' - what license?
Nov
5
comment what kind of certificate needed for my application ?
Are you confusing the terms license and certificate in the first sentence? They are two very disparate things.
Nov
5
comment Is it bad style to redundantly check a condition?
It could be that those lines are being used for something else, and they need to be dealt with before dealing with the "a"/"b" lines. Not saying it's likely (the clear name implies they are being discarded), just that there is a possibility it's needed. If that set of lines is repeatedly iterated over in the future, it could also be worthwhile to remove them beforehand to avoid a lot of pointless iteration.
Nov
5
comment Is it bad style to redundantly check a condition?
I would argue the latter is a bad idea, as it's less explicit - if you later decide to add a "c", it could be less clear.
Nov
5
comment Is it bad style to redundantly check a condition?
It's basically about whether or not you are coding defensively. Do you see this code being edited a lot? Is it likely that this is going to be a part of a system which needs to be extremely reliable? I don't see much harm in shoving an assert() in there to help with testing, but beyond that is probably excessive. That said, it'll vary depending on the situation.
Nov
4
comment What is the difference between “data hiding” and “encapsulation”?
You can have one without having the other - look at Python, where there is no data hiding at all (no such thing as a private or protected attribute).
Nov
2
comment Does a programmer really need college?
It's worth noting that there are a lot of degrees here in the UK which do a year in industry after your 2nd year, and it's possible to do a summer internship during your degree too, so there are lots of ways to get professional experience while doing a degree.
Oct
29
comment Application of LGPL license on a simple algorithm
As far as I understand, you can't copyright or patent an algorithm, only copyright the exact code implementing it, or patent a solution using it.
Oct
27
comment Who owns the IP rights of the software without written employment contract? Employer or employee?
My suggestion: Talk to a lawyer.
Oct
27
awarded  Commentator
Oct
27
awarded  Critic
Oct
27
awarded  Supporter
Oct
27
awarded  Teacher
Oct
27
awarded  Editor
Oct
27
comment Is saying “if ( $a != null && $a == 5)” the same as “if ($a == 5)”
@user127379 Almost certainly. It's extra code serving no purpose, it just makes it less clear and probably slightly slower. Don't get me wrong - it's going to be insignificant performance wise, but it is entirely pointless. In a language where == could be overloaded to a very expensive operation, this might be worth doing, but I'd argue that the design would need to be changed.
Oct
27
revised Is saying “if ( $a != null && $a == 5)” the same as “if ($a == 5)”
added 49 characters in body
Oct
27
answered Is saying “if ( $a != null && $a == 5)” the same as “if ($a == 5)”
Oct
25
comment How important is using the same language for client and server?
I'd argue this isn't necessarily a great thing, especially when JavaScript is the language in question.