Nairaland Forum

Welcome, Guest: Join Nairaland / Login / Trending / Recent / New
Stats: 1062643 members, 1235317 topics. Date: Thursday, 23 May 2013 at 04:51 PM

View Fayimora's Posts

Nairaland Forum / Fayimora's Profile / Fayimora's Posts

(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (of 40 pages)

Programming / Re: How To Make Money With Your Mobile Apps At Playjoor.com.ng by Fayimora(m): 7:13pm On May 01
I'm not sure I fully understand why your platform exists. Is is primarily an advertisement platform or you actually sell apps? I hope the former is the case as the latter is a completely different ball game! I'll dive into more detail when you answer the above

Cheers
Programming / Re: Continuous Integration by Fayimora(m): 7:08pm On May 01
@lordzouga I'm glad you understand.

@megaplaza FYI what happens when a build process completes successfully/fails is up to you. It should be configurable and if it isn't, ditch your CI tool lol.
Programming / Re: Continuous Integration by Fayimora(m): 11:04pm On Apr 30
lordZOUGA: is this not just a name given to a normal developer's routine? write, test and commit.
NO! What you are really referring to is Test Driven Development(TDD). Loosely speaking, CI is more useful to large codebases.

This is an oversimplified explanation of CI.

Fork a repository -> hack on it -> test -> refactor -> test -> commit.

You do the above for a while and then you are ready to push your bug fixes/new feature to 'origin:master'. origin:master is the repo you forked in the first place. So you push your commits to origin:master(like a pull request on Github) and that is when CI comes in. Your pull request should trigger a build process on another server. This process runs your tests, builds the projects and does some other shenanigans. If nothing fails, then we are good to merge your work into origin:master.

I hope I explained this properly but I can go into more details if you want me to. Not easy explaining a tricky concept like this from an iPad. One main thing you need to note here is AUTOMATION. I wouldn't necessary call it CI if it's not automated.

To get a glimpse of the above, take a look at projects like Brackets and maybe Bootstrap.


lordZOUGA: besides, real programmers ship, checking if every line of code I write adheres to a certain pattern is just redundant
Something tells me that was a joke. You can't mean that. If you can do this cheaply, why not? By the way CI is not about "checking for a certain pattern", it's there to help you prevent integration hell.

===========================================

@harryobas and @Seun Personally, I find a combination of Github and Travis CI a breeze to setup and enjoy. You setup a hook to trigger a build process for every pull request. You only merge requests the pass the build. Very simple. Travis CI is free and you can also use other solutions like Jenkins.
Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 12:23am On Apr 13
ok Mr @naija_swag For the last time, YOU DO NOT SUBMIT CODE TO GET POINTS! You submit a result! The code you submit is just complementary! Is it really that hard to comprehend?

@Otuabaroku As for Store Credit, it is way too simple for a competition.

Disclaimer: My solution is purely functional. I could replace lines 12-19 with a one-liner but I'll probably have to always read that line 3 times to remember what it does.


Code on Gist: https://gist.github.com/fayimora/5376302

If you are looking for something more comprehendible, see this:



Code on Gist: https://gist.github.com/fayimora/5376272


Please note that for both solutions, the actual 'solution' is on lines 12-19, inclusive. Everything else is either error checking or fancy input processing.

Enjoy!
Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 11:54pm On Apr 11
Otuabaroku: I used hashmap in my implementation too. The link to the You received credit is http://code.google.com/codejam/contest/351101/dashboard#s=p0
I'll look at this when I get back from work tomorrow

naija_swag: The important thing is to have an efficient code.
Sorry but when it comes to competitions like codejam, that's very wrong! The most important thing is to have a solution wink.
Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 5:02pm On Apr 07

There is really nothing so elegant about that solution. They simply hardcoded the dictionary. You can do the same with a hash map in Java but it's going to be ugly.

Mind giving me a link to the task?(You received credit)
Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 1:56pm On Apr 07
Otuabaroku: I tried solving the last qualifying google codejam for 2012 at the link http://code.google.com/codejam/contest/1460488/dashboard.

My java solution for the challenge is thus:

..............................

The model solution provided by google in python was so portable that I'm asking my fellow Java developer is there a similar data structure in java to replicate same? The link to the question and the model solution is http://code.google.com/codejam/contest/1460488/dashboard. Thanks in anticipation.


Here is mine

Code is on Gist
Raw link: https://gist.github.com/fayimora/5330382

The actual solution is on lines 12 - 17

Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 3:12pm On Mar 30
naija_swag: Feeble minds. Humans are always in a habit of making excuses for their shortcomings. If your shallow minds cannot contend with strong reasoning, stop making silly excuses.
Hmmm ........ if you were referring to me then you really have no idea what I do.
Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 2:46pm On Mar 30
Otuabaroku: @ Fayimora, I thought you were based in England. Why would you want to attend the event if it was based in Zurich but not England?
Because I love traveling wink
Webmasters / Re: Joomla,drupal Or Wordpress Which Do I Use!!! by Fayimora(m): 9:22pm On Mar 29

Moving to "webmasters"...
Programming / Re: Did You Guys Do These At School? by Fayimora(m): 9:19pm On Mar 29

If you are trying to be exceptional in all fields, I'll say DO NOT waste your time. It's almost impossible!


Otuabaroku: Sorry guys for responding late. I did not see your replies until now. Actually , what i want is a brief description of what was covered when you guys were doing the aforementioned topics at school( course outline). Yes, you can easily come across the materials that covered them online or elsewhere, but how would you gauge if the material covered it to the standard breath? Thanks in anticipation.

IMHO, RESEARCH! Online courses? Well, yeah they are actually getting better but I prefer to have a conversation with the top guys in other Universities. At least that is what I do. I have friends in other unis and we talk wink

Final advise, no matter how good your lecturer is, there is only so much he/she can teach you! From what I gather, the top CS students are those that go the EXTRA mile.
Programming / Re: Why Doesn't Anyone In Nigeria Code In A Lisp by Fayimora(m): 9:13pm On Mar 29

What's the advantage in bringing those 4 paradigms into one language? Not really seeing any reasonable advantage. Sounds like an overkill to me...might be wrong though so enlighten me wink

I'd rather have 5 tools that each do their respective job properly than have 2 that try to accommodate for all 5.
Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 9:09pm On Mar 29
WhiZTiM:
hmn... Wish I could participate, but my semester exams wouldnt let me... Two questions...
1. Why wouldn't you participate??
2. Why should you be contacted on twitter if any Nairalander makes it to the finals? (... I hope its either a job offer or extra reward!)


1. I'm very very busy. Where I work, you never have the time for stuffs like these... It's practically a waste of time!
2. Job offer, maybe but highly unlikely considering you might not be willing to re-locate. Nevertheless, the finals are in England(btw Google's offices at LDN are great! ), I'll like to meet whoever makes it wink. I don't mind gaining a few more geeky/nerdy friends.

Also, why would I stress myself when the finals are in LDN? lol. I *might* have attempted if it was ...... Zurich?

Programming / Re: Did You Guys Do These At School? by Fayimora(m): 2:28pm On Mar 23
Everything above is in my curriculum(Some I am yet to officially take). Personally, I think the names are self explanatory but I'll advise you read the wikipedia entries for each of them. FYI, some of the modules listed are not standalone modules.

I'm happy to tell you more about any one in particular though wink

Programming / Re: Google Code Jam Contest 2013 by Fayimora(m): 2:23pm On Mar 23
Good luck to whoever is participating! Buzz me on twitter if you make it to the final round.
Programming / Re: Please Advice On The Best Platform For A Webapp by Fayimora(m): 2:16pm On Mar 23
nnomy3:
not a guy...i knw xhtml, php n mysql, vb.net n still a lil of vb although still learning
Why not use what you already know? I HATE PHP but if that's what you know, then go for it bird.

Good luck
Programming / Re: Please Advice On The Best Platform For A Webapp by Fayimora(m): 2:12pm On Mar 23
javadoctor: there myt nt b much time to achieve much.so just pay smeone to do it fr u.
WTF?!?!?

1 Like

Programming / Re: Developing A Facebook-like Ticker For Nairaland by Fayimora(m): 6:41pm On Mar 16
I'm glad you understand @worldbest wink

@pc_guru didn't know humans still used PHP in this century lol
Programming / Re: Please Advice On The Best Platform For A Webapp by Fayimora(m): 9:19am On Mar 16
Mind giving a BRIEF summary of what you are trying to build?
Programming / Re: Developing A Facebook-like Ticker For Nairaland by Fayimora(m): 9:13am On Mar 16

Hey man, good stuff.. However, it seems to me like you haven't considered an important factor, privacy! Do people really want to get tracked? I think for this to be successful, you are going to need to collaborate with Seun first. I'm sorry but this is really a serious breach of privacy and if you have been keeping up to date with recent events around the world, you'd know how serious this can get

@pc_guru Node is not just for the web. Node is used to build web network applications. I use node for a command line tool I built sometime last year.
Programming / Re: Where Are The Flex Developers in Nigeria? by Fayimora(m): 6:05pm On Mar 12
what? Flex? You've got to be kidding me @javanian.This is a troll right?
Programming / Re: Why Doesn't Anyone In Nigeria Code In A Lisp by Fayimora(m): 1:45pm On Mar 10
csharpjava: There a four major programming paradigms, they are:

Object-Oriented: "C#, Java, C++, SmallTalk, Python"

Functional: "Lisp, Scheme, Haskell"

Imperative: "C, Ada, Perl"

Logic: "Prolog, Sql, HTML"

Your choice of programming language will depend on the paradigm that is best suited for the application you want to develop. The most popular paradigm today is Object-Oriented paradigm which is a representation of the real world around us, this is why we have so many C#, Java and C++ programmers.


I definitely love the OO way of thinking. However, the FP way is even more fun. Bringing them together(Scala I love you) is BRILLIANT!
Programming / Re: Why Doesn't Anyone In Nigeria Code In A Lisp by Fayimora(m): 1:40pm On Mar 10

@fallguy seriously? Mate you really do have a lot of wrong assertions in your post.

FYI, from a "programming standpoint", compared to any dialect of Lisp, Java and VB are kinda too verbose IMHO!

"C/C++ will never have a large following because of their difference from english"
WHAT ? ? ?

"Visual basic is the most popular language of all times ? "
WHAT? ? ? Any reasonable references/statistics?

and the worst of them all

"lisp is shunned because of psychological rather than technical reasons."
WHAT? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

Programming / Re: Why Doesn't Anyone In Nigeria Code In A Lisp by Fayimora(m): 8:37pm On Mar 04
I agree with you. However, you need to understand that the "brackety" nature of any Lisp dialect puts a lot of people off. I actually hated ignored lisp for a while too. I still do not envy it but this is mainly because I enjoy Haskell and Scala. Both provide me with the FP constructs/semantics I'm after. Scala is also in production in A LOT of places. IMHO, it is going to be a WHILE before Clojure gets proper traction.
Programming / Re: Why Doesn't Anyone In Nigeria Code In A Lisp by Fayimora(m): 2:48am On Mar 03
Use the right tool for the job wink Personally, I write Scheme/Racket and a little Clojure but just for fun!

1 Like

Programming / Re: [PROGRAMMERS] Work It Out- On Bumpy Sequence by Fayimora(m): 2:20am On Mar 03
@pc_guru yeah vim is AWESOME.. Best text editor smiley Learning vim is like learning Functional Programming. To learn FP, you have to forget all you know about programming. To learn vim, you have to forget all you know about text editing first.

lol @ "uncommon languages I code in".. I use the best tool for the job wink
Programming / Re: [PROGRAMMERS] Work It Out- On Bumpy Sequence by Fayimora(m): 6:26pm On Mar 02
@prodam the code there is 30 lines but look at it closely. The main stuff is about 10 lines. I added a few print statements for those who haven't used Scala wink Also, it's a recursive solution. I can make this way shorter but trust me, the code will be really cryptic if you are yet to meet FP.

@pc_guru That is vim on a Mac. I'm a vim user. Also, the language is Scala not Python wink
Also why don't you remove `addOne` and just print `_array.length+1` ?
Programming / Re: [PROGRAMMERS] Work It Out- On Bumpy Sequence by Fayimora(m): 3:17am On Mar 02
This is called The 3N+1 problem.

I wrote this in Haskell but I was pretty sure the code looked too cryptic so I re-wrote it in Scala.

Code: https://gist.github.com/fayimora/5069397

The gist also contains an HTML file I generated(see screenshot below), you can download it and open in your browser cool

I can explain the code in detail if anyone wants me to but I can't be arsed to right now grin



@pc_guru You can implement it recursively in JS easily. Use a nested function!
Programming / Re: Pagination Vs Infinite Scroll by Fayimora(m): 9:44pm On Feb 17
FYI, you can bookmark with infinte scroll.. Have a look at HTML5 history API and most importantly replaceState()

With that, you can keep updating the url, appending the current post's number to the url(1 way to do it). So when post 3 is at the top of the page, url will be http://www.nairaland.com/1195236/3.

Q.E.D wink
Programming / Re: Pagination Vs Infinite Scroll by Fayimora(m): 6:00pm On Feb 17
It's possible to bookmark while infinitely scrolling! However it depends on the structure of your page. Something like a list of blog post is fairly trivial.
Programming / Re: Pagination Vs Infinite Scroll by Fayimora(m): 10:28am On Feb 17
Hey big man you still around! By slow I was referring to "searching visually". For instance on Twitter, I find that searching for a tweet is as easy as scrolling down my timeline. I seldom realize when I hit the next "page". Pagination breaks that flow. Same applies to Google images.

But as I said above, I think they both have slightly different use-cases.
Programming / Re: Pagination Vs Infinite Scroll by Fayimora(m): 4:15am On Feb 17

@lordZOUGA
Go, to Twitter -> Your Profile -> Your Tweets -> Scroll down(2-4 'pages'). Note your current location on your timeline
Now from that page, click someone's username -> His/Her tweets.
Use the back button to get back to your tweets and see where the app takes you to wink

Pros of infinite scrolling, IMO
- Speed (pagination is freaking SLOW)
- Ease of use

Cons
- Skipping results

IMHO, they both have slightly different use-cases. Pagination on Twitter for instance is just a waste of time and resources!


@Seun pleaseeeeeee where is the preview button?

(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (of 40 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio writing webmasters programming techmarket

Links: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2013 Oluwaseun Osewa. All rights reserved. See Privacy Policy & Nairalist. 184.72.91.94