Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 13 Aug 2006
Offline Last Active Today, 09:18 AM

Posts I've Made

In Topic: TDD and predefined models

20 October 2016 - 01:55 AM

I'm not sure I understand your question.  TDD has nothing to do with using an already defined pattern or not.  You wright your tests to test for expected outcomes against a mock. They should all fail.  Then you write your code weather its a FSA or not to make the tests pass.

In Topic: [Facebook] Is game request still worth to implement?

12 October 2016 - 10:15 AM

As we all know spamming game request (e.g. request tickets to continue stages in Candy Crush) was almost a MUST in popular games, but nowadays less and less people are actually paying attention to these annoying notifications in Facebook (at least I do and blocked all of them).

And, I don't see any trending games doing this anymore (e.g. Clash Royale).

Should we still spend time implement it or is there a good way to do it?



The reason games aren't doing it anymore is that Facebook changed their API so that you can no longer spam people.  


Previously if somebody signed into your mobile app with FB you could get a list of all their contacts and allow them to send game requests or even spam on their behalf.


Now you can only get a group of contacts if they have set in their security settings that they want game requests. Also you can no longer get the contacts if you only have a mobile app.  You must have a Facebook Canvas app if you want your mobile app to do friend requests.

In Topic: Why do most people recommend Python

23 September 2016 - 07:48 AM

Although I have only played with swift, it looks quite pleasant to use. However as a developer it is always required that you look outside the language to see what libraries are available, what platforms it can be used for and what is the future feasibility of it. I can try to answer these:


1) It only really has libraries available to it on Apple's Cocoa platform. I.e otherwise you are going to be spending most of your time writing binding layers for every platform you use it on. For example bindings would need to be written for it to use OpenGL or SDL on the Linux platform.


2) It is cross platform because it uses LLVM as its underlying technology but there is very little support on non Apple platforms. IBM was looking at getting it running on some of its enterprise operating systems but lets be honest, we wont be writing games to target them ;)


3) Lifespan... Nothing from Apple really has the best lifespan but it does look like they are committed to Swift. That said they are not going to be rewriting the OS to use Swift rather than Objective-C so you might want to stick with the latter instead. (You can also use SDL and OpenGL directly from Objective-C on non-Apple platforms ;)).


So sometimes it isn't about how easy the language is. It is about how useful the technology (and legacy) behind the language is. Otherwise, lets be honest, C would not be second from the top on the IEEE and TIOBE language stats ;).





To be honest Swift is no longer an Apple only technology.  It has been open sourced and as well as the IBM sandbox there are a few others.  There are also two other non LLVM compilers that support swift including ones for .NET, JVM and Dalvik.

There are also several Swift website frameworks already in development or already in use targeting both client and backend development.

However another reason why I dislike Swift is that because of the its dumb name (there were already a few IT technologies around called Swift before Apple used it) if you google any of these you get lots of unrelated content.

In Topic: Why do most people recommend Python

21 September 2016 - 04:14 AM

I am an iOS developer and I strongly recommend against using swift as a first language.   If you like the Swift syntax and want to play around with functional programming then choose Scala.   Swift is a language that I have to use because Apple forced it upon me.

My main gripe with Swift is that yes it does have some cool features but, in the real world it does not work the way apple tells us it does.  Yes if you demonstrate it in a Playground with some comp science 101 algorithm then it looks like it uses less code and looks pretty.  However when you actually use it in the real world with Apples libraries it ends up requiring a fuck ton of boiler plate code and looks ugly.  Something simple like downloading a json file from a remote server and storing it in a dictionary takes around 5 lines of code in Objective-C  doing it in Swift in a safe manner requires around 20 lines.
Also the language is continually changing and these changes keep breaking compilation.  Apple have said that from Swift 3 there will be no more breaking changes but, I really wouldn't trust them.

The reason people suggest Python is because it has so many uses and because it does have a huge community behind it.

Want to right your first 2D game?
Python can do it
Want to write a single page web app?
Want to right an extension Blender or Gimp?
Want to earn a 6 figure salary as a Quantitive Analyst?
Then you need to learn Python

In Topic: Is it inefficient to use Unity to turn 32kb of Javascript into a mobile app?...

24 August 2016 - 03:00 AM

I'm not sure that's so true these days - the DOM is pretty well standardised at the moment. http://youmightnotneedjquery.com/



The DOM is standardised but, few browsers follow the standard and the ones that do follow the standard have their own interpretation of it.  The link you provided only has 3 different versions of IE to show their examples and one or two of these may be enough to sway some people into using a library. Once you add Firefox, Chrome, Safari, Edge and Opera you start to get a whole slew of differences.  


The point of the link that developers should be aware of what JQuery is doing (A lot of them aren't) and not telling them that they don't need it.