Posted on Leave a comment

Jyrone Parker Live – More Data Types, Flow Control Logic, File I/O

[callaction url=”https://www.youtube.com/user/JPlaya01″ background_color=”#333333″ text_color=”#ffffff” button_text=”Go Now” button_background_color=”#e64429″]Subscribe To My Youtube Page[/callaction]

Three Days In!

Three days in three live streams! In today’s live stream I go over the last couple data types, arrays and closures. Array hold a collection of items such as an array of grocery prices, or an array of color codes. They can be either single dimensional or multi dimensional and they can also be associative. Some examples of arrays include:


$x = [1,2,3,4,5];
$y = [
"favorite_food" => "Fried Chicken",
"favorite_spice" => "Hot Sauce"
];
$z = [
"data" => [
"result" => 1,
"error_code" => 502
],
"message" => "Hello"
];
// Access arrays
echo $x[0]; // first element in array
echo $y["favorite_food"];//access by name
echo $z["data"]["result"]; // accessing multidimensional array elements

Flow Control Logic

I also went over control flow logic. Many times in your application you are going to need to take certain actions based on certain actions the three basic flow control structures are: if/else statements, loops, and switch statements, some examples are as follows.


//if/else statment
if($x[0] % 2){
echo "Even";
}
else{
echo "Odd";
}
//while loop
while($x == true){
echo "Running....";
}
for($i = 0; $i<count($x); ++$i){
echo $x[$i];
}
foreach($x as $key=>$value){
echo $value;
}
 
switch($car->getMake()){
case 'Hyundai':
echo "Hyundai";
break;
case "Ford":
echo "Ford";
break;
default:
echo "IdK";
break;
 
}

 

File I/O

Lastly I went over file input/output including opening files and closing files:


$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "John Doe\n";
fwrite($myfile, $txt);
$txt = "Jane Doe\n";
fwrite($myfile, $txt);
fclose($myfile);

Don’t forget to subscribe to my YouTube channel and to subscribe to this blog to learn more!

Posted on Leave a comment

Jyrone Parker Live – Setting Up Homestead, Basic Linux Commands, Intro To PHP

The Time Has Finally Come

In my last video I gave a general overview of what coding is, its pitfalls as well as its rewards. Today I am briskly walking you guys through installing Laravel Homestead, the environment that all of our web development is going to be done on. I am also going over some basic Linux commands as well. Lastly I walk you guys through the basics of PHP, the backend language that will be powering our web applications. Don’t forget that I live stream everyday Mon – Fri @ 6 PM EST, you can join the conversation and ask me questions in real time! If you enjoy my content please subscribe to my blog and to my YouTube channel to stay up to date on my content.

Posted on 3 Comments

Jyrone Parker Live – What Is Coding

[callaction url=”https://www.youtube.com/user/JPlaya01″ background_color=”#333333″ text_color=”#ffffff” button_text=”Go Now” button_background_color=”#e64429″]Subscribe To My Youtube Page[/callaction]

Today Marks An Historic Moment

Today I started my daily live stream on YouTube every day @ 6 PM EST I will spend an hour doing a live talk show. Every day will  be a different focus, some days I will do interviews with tech professionals, somedays I will do live coding sessions so you guys can see what apps I am working on (games too), the rest of the time will be spent doing programming video tutorials. This is not a replacement of my blog, but an extension of it. In today’s episode I went over what it means to code, some of the challenges to being a software developer, some of the rewards of being a software developer, a little about me and what I have going on. No actual coding during this initial pilot episode, that’s all going to change tomorrow, as I go into the basics of web development, setting up the virtual machine environment, learning some basic Linux commands and writing our first PHP program.

From N00b To Artisan

I have been working on my first eBook titled “From N00b To Artisan: Learning Laravel 5.4 With 5 projects” this is a guide for anyone who is new to Laravel (and web development in general) and gets them up to speed. While I am still pursuing this I have decided to give away the video series away for free on my YouTube channel. If you don’t want to miss out on this incredible opportunity please subscribe to my YouTube channel. I plan on having the eBook finished by the summer.

Conclusion

Not going to lie, this live streaming thing is going to take a minute to get used to! I hope this content helps those who need it the most! Remember your participation during live streams are vital to the content that’s provided tune in EVERY MON-FRI @ 6 PM EST. Please subscribe to my YouTube channel, subscribe to my newsletter, and please share it with your friends, family, and colleagues who could use this valuable and free information!

Posted on Leave a comment

Create A URL Shortener In Laravel 5.4

[callaction url=”https://www.youtube.com/user/JPlaya01″ background_color=”#333333″ text_color=”#ffffff” button_text=”Go Now” button_background_color=”#e64429″]Subscribe To My Youtube Page[/callaction]

Laravel 5.4 Is Out!

To commemorate such I am rewriting old tutorials in Laravel 5.4. I also signified this release as the time to start my live stream (subscribe to my channel here). I created a live coding video and uploaded it to my channel, but you can watch it here.

What’s Does The App Do?

This is a simple URL shortener. Paste the URL you want to shorten into the generator and it spits out a shortened URL that maps to the longer one. This app is similar to bit.ly