Nairaland ForumWelcome, Guest: Join Nairaland / Login / Trending / Recent / NewStats: 1062643 members, 1235317 topics. Date: Thursday, 23 May 2013 at 04:51 PM |
Nairaland Forum / Fayimora's Profile / Fayimora's Posts
(0) (1) (2) (3) (4) (5) (6) (7) (8) (9) (of 40 pages)
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 |
@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. |
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 redundantSomething 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. |
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! |
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=p0I'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 . |
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) |
Otuabaroku: I tried solving the last qualifying google codejam for 2012 at the link http://code.google.com/codejam/contest/1460488/dashboard. Here is mine ![]() Code is on Gist Raw link: https://gist.github.com/fayimora/5330382 The actual solution is on lines 12 - 17 |
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. |
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 |
Moving to "webmasters"... |
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 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. |
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 ![]() I'd rather have 5 tools that each do their respective job properly than have 2 that try to accommodate for all 5. |
WhiZTiM: 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 . 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? |
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 ![]() |
Good luck to whoever is participating! Buzz me on twitter if you make it to the final round. |
nnomy3:Why not use what you already know? I HATE PHP but if that's what you know, then go for it bird. Good luck |
javadoctor: there myt nt b much time to achieve much.so just pay smeone to do it fr u.WTF?!?!? 1 Like |
I'm glad you understand @worldbest @pc_guru didn't know humans still used PHP in this century lol |
Mind giving a BRIEF summary of what you are trying to build? |
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 |
what? Flex? You've got to be kidding me @javanian.This is a troll right? |
csharpjava: There a four major programming paradigms, they are: 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! |
@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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? |
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 |
Use the right tool for the job Personally, I write Scheme/Racket and a little Clojure but just for fun! 1 Like |
@pc_guru yeah vim is AWESOME.. Best text editor 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 ![]() |
@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 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 Also why don't you remove `addOne` and just print `_array.length+1` ? |
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 ![]() I can explain the code in detail if anyone wants me to but I can't be arsed to right now ![]() ![]() @pc_guru You can implement it recursively in JS easily. Use a nested function! |
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 ![]() |
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. |
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. |
@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 ![]() 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 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 |