₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,875 members, 8,424,016 topics. Date: Wednesday, 10 June 2026 at 03:06 PM

Toggle theme

Bizycodin's Posts

Nairaland ForumBizycodin's ProfileBizycodin's Posts

1 (of 1 pages)

ProgrammingRe: Functional Programming In Javascript by bizycodin: 12:47am On Dec 30, 2015
Have you ever done any other type of programming nay be object oriented or procedural ?If not, then I think you just have to stay at it. That's the way it will seem initially. all you need to do is just stay glued to it. re-read, research and practise. Welcome to our world!!
ProgrammingRe: Hack++ Code Editor by bizycodin: 6:16pm On Jul 29, 2015
Great! Can't wait to use a "made in Nigeria by a Nigerian" IDE. Curiously waiting and hope it's gonna b innovative? I also don't mind being a part of the project for leisure coding..
ProgrammingRe: Pattern Chaser In Javascript: Coding Challenge by bizycodin: 2:29pm On Jul 26, 2015
dhtml18:
Thanks, I am not restricted to one side - I try to combine all platforms in my work, but am just more popular with web.
Ok.! It's good to be vast.
ProgrammingRe: Pattern Chaser In Javascript: Coding Challenge by bizycodin: 1:33pm On Jul 26, 2015
dhtml18:
Too damn busy for that, notice I did not even write any code as such, just picked one of the codes someone wrote above and modified it. . . .right now I am battling out an android chat app writing JAVA like no-man's business. . .
Whao! Ok. Cool! I would also love to pick up android again but 4 now I am crzy digging the web.. All d best on your app bro!
ProgrammingRe: Pattern Chaser In Javascript: Coding Challenge by bizycodin: 12:51pm On Jul 26, 2015
dhtml18:
^^^That will now depend on your usage. You might convert the code into a prototype, or even a jquery plugin.

Check out the prototype below and the usage. It is just like adding a new string method, I use stuffs like these in my code libraries to make life easier.
Cool protoyping. But by improvement I mean rewriting the code to improve performance. A different way of thinking abt the problem! And have u tried inspecting the execution time?
ProgrammingRe: Pattern Chaser In Javascript: Coding Challenge by bizycodin: 11:54pm On Jul 25, 2015
dhtml18:
Lol, your approaches are fine as far as I can see - just that i thought i could tweak it slightly:


The above will return 3 results:
- iamaboy
- Please supply a valid string
- No match found

But technically it is still the same code written above just reformatted slightly. . .and compressed to actually look shorter
@dhtml. Kudos for d clean-up. Is there anyway solution can be improved?
ProgrammingRe: Pattern Chaser In Javascript: Coding Challenge by bizycodin: 3:55pm On Jul 24, 2015
I have test this it worked fine. But the algorithmic complexity is O(n^2) due to the nested for loop. The effect of this is the larger the input, the slower the time of execution. I would love to see other solutions and let's compare our time of execution. This should also pass most test cases.

function patternChaser(str){

//If string is less than 4 return No Pattern
if(str.length < 4) return "No Pattern";

//IF there are mulitple occurence of decimals return No Pattern ss
if(/^\d+/.test(str)) return "NO Pattern";

var newString, newString2, nmatch, maxTestCase, testRes = "", len = str.length;

for (var i = 0; i < len; i++) {

//If iteration has gotten to the second to the last string break out of the loop
// and return testResult
//NOte: if there are no match an empty string is returned.
if (i === str.length-2) break;

/*maxTestCase is used to evaluate the maximum test case for each iteration
* The maxTestCase is gotten by dividing the length of the string into 2
* IF the value is odd ad one before division
* The maxTestCase reduces for every iteration*/
maxTestCase = ((len - i) % 2 == 0) ? (((len - i)/2)+1) : (((len -i) + 1)/2);

for (var j = 2; j < maxTestCase; j++) {

//Get a substring from the string
newString = str.substr(i, j);

var regEx = new RegExp(newString, "g"wink;

//CHeck for matches for this substring in the whole string.
nmatch = str.match(regEx);

//If there is match and match is greater than one
if (nmatch.length > 1) {

newString2 = nmatch[0];

//If length of string is greater than the existing testREs length
//testRes = newString
if (newString2.length > testRes.length) {
testRes = newString2;
}
}
}
}
return testRes;
}

console.log(patternChaser("howarekddkdkdieeialskdoeiedkdklskdiamaboyandeiei383838iamaboyexx,x"wink);

returns "iamaboy"....
ProgrammingRe: What Are Your Best Web-programming Books? by bizycodin(op): 10:16pm On Jul 18, 2015
Jregz:
thanks a lot sir, I would check SLIM, been running through the docs for about 30 minutes now.........
Uwc sir. Enjoy ur development.. @pelizbiz@gmail.com, sanyolu.isaac@yahoo.com, pls I will send d files when work resumes fully on tuesday. Thanks for d patience.
ProgrammingRe: What Are Your Best Web-programming Books? by bizycodin(op): 1:45pm On Jul 17, 2015
pelij18:
Were do i purchase any of this books.....? Please help i've been searching for related book down here in port-harcourt.
Inbox ur mail address to thrustinv@yahoo.com. I will send u d ones I have or go to ebookee.org. It's a filesharing site.
ProgrammingRe: What Are Your Best Web-programming Books? by bizycodin(op): 7:56pm On Jul 16, 2015
Greatfes17:
is this limited to php and co?
Nope. Any programming language. Let's learn from u.
ProgrammingRe: What Are Your Best Web-programming Books? by bizycodin(op): 4:33pm On Jul 16, 2015
Jregz:
Josh Lockhart (Modern Php) - this book is fire,it brought me the good tidings of composer and made my code cleaner since I now follow all psr recommendations.....

Programming PHP -- Rasmus lerdorf,Kevin traore


Essential PHP security --- Chris shifflet


am currently reading speaking JS in my leisure time......

@bizycodin sir,what's good with SLIM ? I'm trying to pick up a micro framework, I wasn't impressed after installing laravel,65 % of the framework was 3rd party code,hence would be sticking to composer....
Sir, you're really on point. I use slim because of its simplicity, easy routing amongst others. Most importantly because d version of php d host I use is 5.4.3. Lumen is also a good one but d php requirement is higher. I would check out dat book on php security now!
ProgrammingRe: What Are Your Best Web-programming Books? by bizycodin(op): 1:53pm On Jul 16, 2015
Standing5:
The Deitel brother series (Paul and Harvey Deitel). Always with excercises to help cement understanding
Yeah. Deitel is such a good book. I started Java Programming with (David Eck - Introduction to Java Programming).. That was my "First Love".!!
ProgrammingRe: What Are Your Best Web-programming Books? by bizycodin(op): 1:51pm On Jul 16, 2015
Promhize:
Javascript and jQuery : Jon Duckett. This book should be a must for all javascript beginners, like myself. No surprise it's a bestseller on Amazon

Php and mysql larry ulman. This is like the best php and mysql book on Amazon.

Will check out those you listed
Cool.. bro you really need to see Josh Lochart.
ProgrammingWhat Are Your Best Web-programming Books? by bizycodin(op): 9:48am On Jul 16, 2015
It's !(mysterious) the amazing connection between Good Books and Good Codes.

These books are just invaluable for me..
PHP
1. Josh Lochart (Modern Php) - (Exposures to psr-4 standard, generators, traits, components.) He's also the guy behind sliim micro-framework which I am currently using in one of my projects)

2. Hasin Hayder (Object Oriented Programming with PHP 5) - This guy is such a bad guy. (SPL, one of the invaluable things I learnt here was d use of ArrayObject, ArrayIterators, Reflection and code organization).

3. Matt Zandstra (PHP Objects, Patterns and Practice) Nother bad guy. (Design Patterns and core PHP)

4. Zdenek Machek (PHPUnit Essential) - though I am yet to implement unit testing in my projects, it was a good read. I read over 60% nd got bored.

5. Janet Valade (PHP and MySQL for dummies) - My PHP list would be incomplete without this book. It was a cool introduction to server side scripting for me.

JS
1. David Flamagan (the Definitive Guide) - I was almost mistook for a mad man when reading dis book. It got me in "Flow" most of d time.

2. John Resig, Bear Bebeault (secrets of the javscript ninja) - I am currently reading this and I have read over 80 out of 394 pages nd u can imagine d kind of "whao" feeling I have reading dis book. It's such a deep-dive into JS.

Other good books I'm currently eyeing now are
Martin Fowler's Patterns of Enterprise Architecture, Donald Knuth's Art of Computer Programming and any book on algorithms.

Books are indispensable to becoming a "bad guy". Add yours nd let's spread d "word"
ProgrammingRe: Please Review My Personal Website by bizycodin: 7:44pm On Jul 09, 2015
Cool.. Keep it up son!
WebmastersRe: I Need A Developer Asap by bizycodin: 5:08pm On May 28, 2015
Hi, I am interested. Hit me up @ (Skype: codesmata).. Mobile: (Gmail: Thrustinv@gmail.com).

1 (of 1 pages)