₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,019 members, 8,448,249 topics. Date: Monday, 20 July 2026 at 05:15 AM

Toggle theme

Blueyedgeek's Posts

Nairaland ForumBlueyedgeek's ProfileBlueyedgeek's Posts

1 2 3 4 5 6 7 8 9 10 11 12 (of 15 pages)

ProgrammingRe: Have You Tried Out Angularjs(mvc Framework) by blueyedgeek(m): 5:06pm On Mar 01, 2015
{{var bump = true}}
ProgrammingRe: Javascript Frameworks Tutorials by blueyedgeek(m): 4:55pm On Mar 01, 2015
pcguru1:
wow thanks for this even till now am still using Dojotoolkit i guess am old. but my JS knowledge has changed i'm not as good as before thanks to relying too much on transpilers
cool. What is a transpiler? Are they the same as preprocessors?
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 4:27pm On Mar 01, 2015
Nmeri17:
"input and return" as in u input the function value in yo array and return the reverse of yo input OR for statement. not both options. that's why my ist post had two options. dyu understand??
Nope or do you mean that the function will be called as a method on the array?
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 3:08pm On Mar 01, 2015
Nmeri17:
just tested it
cry embarassed
I wish I had good news

PS1: there arr two styles yu can uses. either simple input and return OR for statement. not both undecided
PS2: what's that len shii in line4huh

I'm going to pray that NEPA brings yo light. see u when my prayers arr answered wink
I don't understand PS1.

PS2: len is just another variable to hold and cache the length of the array passed in, good for performance (if we have an array of say 50,000 items, it only has to search for the length once and not 50,000 times).
ProgrammingRe: Javascript Study Group by blueyedgeek(op):
Nmeri17:
sorry I failed to state you can't use the reverse method tongue yu should know this question
Okay, that should give me a workout and light no dey make I test for pc. I will try it out when I have access to a system.
I still think yours isn't working because of the parameter ish.

Edit:

This should work,
Create a function that accepts one parameter.

Create a locally scoped variable inside the function, it should be an empty array.

Loop through the passed in array (passed as an argument)

For each time the loop executes, the last item in the passed in array should be passed in to the temporary array as a first item.

Return the temporary array and it will have the reversed form of the passed in array.


Should look like this



function reverseArray(array) {
var tempArr = [];

for (var i = 0, len = array.length; i < len; i += 1) {
tempArr.push(array.pop())
}
return tempArr;
}
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 1:05pm On Mar 01, 2015
Nmeri17:
morning bro. I've got another one: write a reverseArray function that takes an array as an argument and produces a new array that has the same elements in inverse order
me:

function reverseArray() {
var array = [];
array.unshift = reverseArray.slice;
return array};

or


function reverseArray() {
var array = [];
for (i = array.length-1; i> >= 0; i--);
array.push = i
return array};
but it seems I'm missing something
First off, there is a reverse method defined on Array.prototype that does this easily. A very simple reverse array function would look like this,


function reverseArray(arr) {
return arr.reverse();
}


Now to your question, your function is supposed to be passed an argument and it is that argument that the body of your function should work on. So pass in a parameter and it is that parameter that you manipulate inside the body of your function.
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 12:00pm On Mar 01, 2015
DAvIt0:
Basically, React makes use of a Virtual DOM(for reconciliation).

React uses one directional flow style as opposed to the two-way data binding done in Angular.

ReactJS is so fast that instead of rendering the View(V) on the client as AngularJS does it(which is slow),

It instead renders its UI on the server, lots of advantages here --

1) SEO,

2). It doesn't joke with the DOM, cuz it knows the DOM is slow, that's where the term Virtual DOM comes is for reconciliation (updates the view with the difference calculated from the DOM and its own Virtual DOM).

More - http://facebook.github.io/react
cool, built any application with it before? Also, where do you stand on meteor js, just read about it on javascriptissexy.com, sounds exciting.
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 7:58am On Mar 01, 2015
Nmeri17:
**update
github?? check
Odin project?? check
code wars pending. I need to answer questions from the secret life of objects before signing up and I'm not there yet sad those guys ain't joking at all huh

if you're around yo system now u can try that prev question. yo code is returning 11
I'll check it when I'm on pc but I'm quite sure it should work. Morning.
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 9:34pm On Feb 28, 2015
Nmeri17:
code wars kehuh arr y'all tryna start a third world war with codes?? grin
Trust me, it's refreshing.
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 9:16pm On Feb 28, 2015
@nmeri17, you should also sign up for an account on codewars.com

Social network for programmers (na code challenges full there ooo).
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 9:14pm On Feb 28, 2015
Nmeri17:
oh owky LOL. this one you said you'll ask me, my mind don dh cut angry

just kidding. I'll sign up on there this night. you kno this question write a range function that takes two arguments start and end and returns an array containing all the numbers from start up to (and including end)?? I wrote
function range (start, end) {
var gold = [];
gold.push = range;
for (start = 1; start <= end; start++);
return gold;}
console.log (range(1, 10));

and its saying
push: function cry cry cry
well you assigned a property 'push' and passed the function range as the result and so it returns an array containing the function (I'm just guessing, I haven't tested it.) A simpler way to write this would be


function range(start, end) {
var arr = [];

for (var i = start; i <= end; i += 1) {
arr.push(i);
}
return arr;
}
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 10:17am On Feb 28, 2015
Nmeri17:
yea I have. I've been at their website once but I've not signed up. I'm about to drop some questions. good morning
Cool by me. I'll try my best to answer any questions you might have and also be ready to answer mine too ooo.


Regarding the odin project, I want to follow their guide and I wanted to know if you are interested. We could skip the html and css section and start with the javascript and continue from there.
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 5:51am On Feb 28, 2015
Nmeri17:
hmmmmm...behold my eyes have been opened shocked shocked

bro sup with that weekend class. u still game??
Yeah, I'm game.

Side note: Ever heard of the odin project before?
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 5:50am On Feb 28, 2015
Nmeri17:
grin grin

see this wayo boy. and you said you're still a learner. I actually saw this yo mention in the morning but I wanno reply when I'm settled back home.

now let me read the explanation and modify wink
I'm still learning oo, so many things to learn sef. The learning never really stops.
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 7:44am On Feb 27, 2015
Nmeri17:
1) what is the difference between the methods CharAt and indexOf??
2) how do u get to make a closure without causing a stack to over flow or explode?
3) function remove (array, index) {
return array.slice (0, index)
.concat (array.slice (index + 1));
}
console log (remove(["a", "b", "c", "d", "e"], 2) );
// ["a", "b", "d", "e"]
Lemme attempt 1 and 3. I don't fully understand question 2.

1. The charAt method simply stands for 'character at', from this break down, you know the method is used to return a character at a specific position in a string. You could also use array notation [] on a string and it would do the same thing. Use case:

var myName = "Blueyedgeek";

console.log(myName.charAt(2)) // logs "u"


The indexOf method returns the index position of a particular string. Use case:

var myName = "Blueyedgeek";

console.log(myName.indexOf('u')) // logs 2


The difference is in the arguments passed, charAt expects a number while indexOf expects a string.


3. The remove function takes two arguments, the array to act on and an index position (this should have been named stop if you ask me) to stop.

When an array is passed in, the slice method is called on the array with a starting position of 0 and a stop position of anything passed to index. (0,0) should return the first item in the array. The array is then concatenated with a slice of the array starting at the stop position with an addition of one. I guess this isn't clear enough.


Please ignore syntax errors, I'm on phone

Let me try again, when the remove function is called with those arguments passed in, (a,b,c,d,e) and 2, the function first takes a slice of the array starting at position 0 (note that slice doesn't change the state of an array, it only returns a new modified array). Position 0 is "a", the stop position is 2. Note that the stop position isn't returned in the modified array. So let's break down what the function does in stages. It first returns a slice of the array with a stop position as specified by the argument passed in. The remove function is called with a stop position of 2 so calling (a,b,c,d,e).slice(0,2) will return a and b (note it doesn't return the item at the stop position). Now we have a and b. The function then calls concat on a slice of the array starting at the stop position plus one. When the slice method is called with only one argument, it returns everything from that position to the end of the array. So calling (a,b,c,d,e).slice(2 + 1) , 2 + 1 is 3. Let's rewrite to make it clearer (a,b,c,d,e).slice(3) will return d and e. Now we have a, b from the first operation and d , e from the second. The remove function concatenates these two arrays into one by calling the concat method. Concatenate is simply big word for join. Let's call the concat method on our values a, b, d , e. This returns (a,b,d,e). Hope this is clear

I'll attempt two when I have a better understanding of closures.
ProgrammingRe: Javascript Frameworks Tutorials by blueyedgeek(m): 7:00am On Feb 27, 2015
Bump...
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 6:18am On Feb 26, 2015
DAvIt0:
ReactJS
Cool, how does it compare with Angularjs since you have said it is used as just the 'V' in the MVC architecture. Isn't angularjs a full mvc-ish framework?
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 9:54am On Feb 25, 2015
DAvIt0:
BackBoneJS - also based-off the MVC architecture

or ReactJS -- which is just the V(View) in MVC
Cool, lemme check them out. Which do you use?
ProgrammingRe: Javascript Study Group by blueyedgeek(op): 9:52am On Feb 25, 2015
Nmeri17:
aha!! its this 500 page book I'm using cheesy I was surprised u didn't mention it in yo recommended books to download

too bad I didn't come when blue eye was still a learner. now everything is an object to him embarassed
I'm still a learner oooo. There are just so many things to learn and I keep learning everyday. I've barely even scratched the surface and I don't think I've attained the mastery I seek.

well sha I hope you're still available to help. I'll be grateful if u can refer to that book's page 75. the codes from that page down to the end of the chapter is making me lose touch with reality embarassed cry whenever I attempt to approach that side, my heart starts doing gidigbam gidigbam angry
I wouldn't get to hung up if I were you. Take your time to re - read the chapter and re - read it until it becomes clear. If that doesn't help, skip the chapter and read other chapters and then after getting a better understanding you can go back to the chapter again.

You know what, how about we both read the chapter again and on Saturday / Sunday, we come here to discuss the chapter thoroughly and iron out every issue, sounds good?
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 7:23am On Feb 24, 2015
tundex32:
Hey Guys, sorry I am 2 days late behind the schedule. I hope I am pardoned.

Straight to AngularJS - I will make this class so simple and straightforward . I will also share my personal experience in the use of this framework when necessary. We are all students, myself inclusive, so I expect to learn from you guys as well.
If I am not learning anything from you guys I would have to stop the class [smiles].

My background with the framework was when I worked on a mobile application, the agency needed a questionnaire on mobile device with lots of skip patterns. I thought the best way to handle this is to use front end scripts- Javascript came to mind. I thought this would require lots of codes.

I did not want to go through JS route. I researched a bit further and I came across AngularJS. I buried myself in it and I was able to deliver on the project. The way AngularJS simplifies what would have been serious task with JS is so amazing.

In this class, you are expected to have working knowledge of HTML, CSS and JavaScript.

I will not entertain questions bordering on any of those. My focus is on AngularJS Framework. So I will like to know our expectations and also have suggestions from my learned friends on this forum.

Olatunde.
Yipee!! Thou art remembered us. Great.

Two questions:
* with the sweeping changes coming to angularjs in version 2.0, is it advisable to invest time in learning the framework?

* Which other JavaScript framework out there would you say is a viable alternative to angularjs?
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 8:34pm On Feb 23, 2015
The o.p has definitely forgotten about this thread. Uncool
ProgrammingRe: Suggestions On How To Improve This Section by blueyedgeek(op): 9:09pm On Feb 22, 2015
Let's start implementing some of the suggestions that have been posited on this thread in the little way we can.
Christianity EtcRe: Atheists, Agnostics, Deists And Liberals And Freethinkers Lets Meet Here. by blueyedgeek(m): 9:03pm On Feb 22, 2015
malvisguy212:
blueyedgeek and liekiller.
Ok, it's a choice. Thank you for your time.

Liekiller I understand you must have mistook me for an elderly man, no, am a young guy mid 32 I've done a lot of thing in my life until God say my name, yes He did.
◄ Ecclesiastes 12:1 ►
Remember your Creator in the days of
your youth, before the days of trouble
come and the years approach when you
will say, "I find no pleasure in them"--
Thanks for your time as well. Go preach somewhere else, if God himself shows up here, he might end up an atheist.
ProgrammingRe: Html5 Or Php by blueyedgeek(m): 8:44pm On Feb 22, 2015
Jregz:
I guess you are a js guy...your signature ?
We still dey learn oo but yes JavaScript is a language I like very much (first love and all).
Christianity EtcRe: Atheists, Agnostics, Deists And Liberals And Freethinkers Lets Meet Here. by blueyedgeek(m): 8:42pm On Feb 22, 2015
malvisguy212:
Another reason for rejecting God (choosing atheism), is a willing
acceptance of satanic deception.
How about,
* There is no verifiable proof of the existence of deities

* God refuses to show up during the world cup final for the whole world to see and believe

* Gods in general only exist as long as there are believers, I'm pretty sure Zeus and the Greek gods died when people stopped believing in them.

* God only exists in the mind of those that believe.

I stopped believing and he stopped existing.

The angel Lucifer fell
and became Satan (“adversary”) due to
his desire to supplant God. This was
Lucifer’s single-minded obsession.
He not only rejected God by attempting
to supplant Him, but he urged humans
to do likewise. Satan urged Eve to choose
against God for her own self-fulfilment:
He said to the woman, “Did God actually
say, ‘You shall not eat of any tree in the
garden’?” And the woman said to the
serpent, “We may eat of the fruit of the
trees in the garden, but God said, ‘You
shall not eat of the fruit of the tree that is
in the midst of the garden, neither shall
you touch it, lest you die.’” But the
serpent said to the woman, “You will not
surely die. For God knows that when you
eat of it your eyes will be opened, and
you will be like God, knowing good and
evil.” (Genesis 3:1-5 ESV).
Aren't you the least bit surprised as to what brought about this change in Lucifer? Seems like God's plan from the beginning was flawed. Also, puny Lucifer almost overthrew his creator and was also able to convince one third of the angels to side with him, something must have been very wrong with God's way of ruling his angels. People only rebel when they have been wronged. Think about that, your God didn't have a perfect rule and so the angels rebelled. Also, God f****ing set Adam and Eve to fail, could have at least warned them about the latest developments in his perfect heaven where there is no war.

The tactic is clear: firstly, question God’s
statements, then, contradict God’s
statements and, finally, urge rebellion in
seeking equality with God.
This manifests in atheists as;
1. Questioning whether there is a God to
make statements in the first place, so
God did not say anything.
2. Contradicting the statements said to
have been spoken by God.
3. Seeking equality with God by replacing
God with the self.
horse**** no one seeks equality with something that exists in the mind of believers only.

This satanic deception appeals strongly
to atheists as it bolsters two of their
desired delusions: 1) absolute autonomy
—being free to do as they please, and 2)
the lack of ultimate accountability—there
are no eternal consequences for doing as
they please.
You think that's what this is all about but you are very wrong. We are simply being honest with our selves and not clinging to a lie all in a bid to go to perfect heaven where angels fight wars like humans


I tell you the truth, I have encounter God ,long before I even became a Christian I have seen Jesus saved me in my dream.God's there.
Not surprised and I believe you. God is probably too afraid to show himself to atheists as they would probably be too much for him to handle
Christianity EtcRe: Atheists, Agnostics, Deists And Liberals And Freethinkers Lets Meet Here. by blueyedgeek(m): 9:40am On Feb 22, 2015
Beginning to wonder if the females I see here are really females because I no dey see una for real life.
ProgrammingRe: Html5 Or Php by blueyedgeek(m): 6:01am On Feb 22, 2015
Jregz:
<?php echo 'Hello World, this is a string in an awesome php script' ; ?>
missed a semicolon though
most grease to your elbow!!
yeah, just noticed it. Thanks for pointing that out.
ProgrammingRe: Html5 Or Php by blueyedgeek(m): 5:59am On Feb 22, 2015
fingard02k:
Thanks a million times.
please which lang are you into
Awa shi n learn. I wouldn't say I'm into any language per se as I try to learn as many as possible but as of now, I have gotten very comfortable with HTML, CSS, (not programming languages but very important) Sass(a css preprocessor and a superset of css) and JavaScript (programming language). I've decided to pick up Python as my backend language of choice because..... well, it's awesome. I'll also learn PHP as well because.... well, it's PHP, everyone is expected to know it. Daz all.
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 5:58am On Feb 22, 2015
Today is 22nd by the way so you are one day behind schedule.
WebmastersRe: Learn Angularjs — A Superheroic Javascript MVW Framework [tutorials] by blueyedgeek(m): 5:57am On Feb 22, 2015
Great!

Please try as much as possible to make it as interactive as possible (Answer my stupid questions, give exercises, help us work on little projects that will improve our knowledge etc...)

Signing up for the class.
ProgrammingRe: Html5 Or Php by blueyedgeek(m): 8:58pm On Feb 21, 2015
Let me try to clear up some things for you.

HTML is a markup language (not a programming language) and it is the bedrock of any web application. It has a very simple syntax and is very easy to learn. All web pages on the internet at their core are simply HTML documents.


PHP on the other hand is a server side programming language used to (permit to say) add 'smarts' to your HTML documents.

Let me give you an example to further clarify:

Look at the source code of this page (if you don't know how to do this, all you have to do is right click anywhere on the page and select 'view page source' or 'view source' depending on the browser.)

At the very top you should see something like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


That ugly looking stuff is called the doctype declaration (the newer syntax is simply <!DOCTYPE html> ) , it is used to inform the browser that the html document follows the specified standards and that the resulting page should be rendered in something known as the standards mode.

Ignoring nairaland's messy looking html tags, a simple html document looks like this:


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A simple web page</title>
</head>

<body>

<h1>Welcome to my awesome web page</h1>
<p>Like what you see? Send me a <a href="mailto:mymail@example.com">mail</a></p>

</body>
</html>



As you can see, with html, you are just basically declaring stuff. Think back to using word processors, when you want to structure documents, you have a heading and some paragraphs. Sometimes you make text bold to show importance, other times you italicize text to create emphasis. The same thing can be done with html, only this time, you are not just working with text, you are building full blown web pages.

Now, with html, everything is all good and dandy, but after sometime you realise that your web pages are just static. You create them and they just stare right back at you doing nothing of importance. Think back to when God created Adam and he was just mud, to make Adam do stuff, he was given the breath of life. In order to give your html document life, you activate it with a server side language like PHP. There are other server side languages but PHP (which you want to learn) is a good choice and is beginner friendly.

A simple php script looks like this (I no too sabi PHP ooo):

<?php echo 'Hello World, this is a string in an awesome php script' ?>


To summarise, HTML alone is used to create static pages but in order to build dynamic sites like Nairaland, Facebook, Gmail, Youtube then you have to activate your web page with a server side language.

Finally, you absolutely have to learn HTML but in order to build dynamic web pages then you absolutely need a server side language.

Pata pata pata, learn both.
ProgrammingRe: Suggestions On How To Improve This Section by blueyedgeek(op): 7:01am On Feb 20, 2015
ps3o:
always throw up a coding yet tactical problem for programmer to trash out with a reward attached.
create social group of developers' contacts
permit ideas on how people can improve the system
Cool, something like that has been done here before and I think it was discontinued because of the reward parts. It will be better if the problems are presented for people to solve so that they can improve on their skills without necessarily getting any reward, learning in and of itself is a reward.

1 2 3 4 5 6 7 8 9 10 11 12 (of 15 pages)