Black Bytes | RSS Feed http://www.blackbytes.info Ruby Programming Tutorials Mon, 17 Oct 2016 01:59:51 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.6 Mastering Ruby Arrays http://www.blackbytes.info/2015/05/ruby-arrays/ http://www.blackbytes.info/2015/05/ruby-arrays/#comments Wed, 06 May 2015 15:47:33 +0000 http://www.blackbytes.info/?p=1873 Arrays are a fundamental data structure that stores data in memory. In Ruby you can store anything in an array, from strings to integers and even other arrays. The elements in an array are accessed using their index, which starts at 0. This is what an array containing the words “cat”, “dog” and “tiger” would […]

The post Mastering Ruby Arrays appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2015/05/ruby-arrays/feed/ 10
Dynamic Arrays in C – part 2 http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-2/ http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-2/#comments Wed, 27 Feb 2013 18:15:12 +0000 http://blackbytes.wordpress.com/?p=503 In the first part we left off laying the foundations for our dynamic array. Now it’s time to test it, this is the code responsible for that: [crayon-5805ecf0c476a372419256/] We define a pointer and call initArray() to initialize it, then we fill it with random values using a loop, and print the results of getElement to […]

The post Dynamic Arrays in C – part 2 appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-2/feed/ 0
Dynamic Arrays in C – part 1 http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-1/ http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-1/#comments Sat, 02 Feb 2013 23:20:16 +0000 http://blackbytes.wordpress.com/?p=481 While working on my C programming skills I wrote a small program to simulate the functionality of dynamic arrays on other languages. That is arrays that grow as you add elements to them instead of having a fixed size. I decided that is has to be reusable and that you should be able to have […]

The post Dynamic Arrays in C – part 1 appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2013/02/dynamic-arrays-in-c-part-1/feed/ 0
PHP Arrays http://www.blackbytes.info/2012/09/php-arrays/ http://www.blackbytes.info/2012/09/php-arrays/#comments Fri, 28 Sep 2012 17:23:15 +0000 http://blackbytes.wordpress.com/?p=434 This is an introduction to PHP arrays, so if you are new to the language or you just need a refresher you can get up to speed pretty fast. This is how we initialize an empty array and add some elements to it: [crayon-5805ecf0c59de533685533/] Then we can see it’s contents using the print_r() function. You […]

The post PHP Arrays appeared first on Black Bytes. Don't miss your free gift here :)

]]>
http://www.blackbytes.info/2012/09/php-arrays/feed/ 0