Jump to content

Photo

thePHPdev has turned Majestic


  • Please log in to reply
7 replies to this topic

#1 Majestic

Majestic

    Megabyte

  • Members
  • 289 posts
  • LocationOut of phase.

Posted 28 April 2015 - 04:08 PM

Yes, I know, I can't seem to come to some final concluding decision regarding my choice of display name... ...but, I think I've found it.

 

The word is a perpetual property of itself. The word Majestic, is, Majestic. I just love that word, the way it rolls off of the tongue. It just has a real ring to it. Anyway, I'm getting waaay overhyped by a word. I really need to find more time for this place. Been busy as fuck recently - not even had time to blaze much.

 


*insert cliché inspirational quote here*


#2 Elfie

Elfie

    Goddess

  • Members
  • 1,972 posts
  • LocationThe land of Oz

Posted 28 April 2015 - 04:15 PM

Boooooooooo


Ginger, is the spice of life

#3 Majestic

Majestic

    Megabyte

  • Members
  • 289 posts
  • LocationOut of phase.

Posted 28 April 2015 - 04:18 PM

Boooooooooo

Let's turn that frown upside down. I'm gonna grab that bread knife and cut the muscles that make you frown out of your face and then stitch the skin back together in such a way that you have a permanent, happy smile. Such joy and laughter... :P only jesting (majesting?) of course...


*insert cliché inspirational quote here*


#4 Elfie

Elfie

    Goddess

  • Members
  • 1,972 posts
  • LocationThe land of Oz

Posted 28 April 2015 - 04:35 PM

Very clever, I'm just boooo-ing you're thread because you kinda stomped on mine :D


Ginger, is the spice of life

#5 Majestic

Majestic

    Megabyte

  • Members
  • 289 posts
  • LocationOut of phase.

Posted 29 April 2015 - 07:06 AM

Very clever, I'm just boooo-ing you're thread because you kinda stomped on mine :D


Fair play.

*insert cliché inspirational quote here*


#6 SushiKitten

SushiKitten

    Coffee Cat

  • Members
  • 1,916 posts
  • LocationCanada

Posted 29 April 2015 - 07:23 AM

PHP is fairly majestic anyway... kind of.. maybe.



#7 Majestic

Majestic

    Megabyte

  • Members
  • 289 posts
  • LocationOut of phase.

Posted 29 April 2015 - 03:55 PM

PHP is fairly majestic anyway... kind of.. maybe.

No, I completely agree with everything this site says. But, there is nothing quite like it, at least nothing that is as easy to deploy. I prefer JavaScript, and wouldn't mind writing web software in JavaScript (I.E., NodeJS), but we use PHP in work so I'm stuck with it.

 

http://eev.ee/blog/2...-of-bad-design/

 

I don't mind the naming inconsistencies and annoying variable scope issues, but I would like to see stuff like:

 

$string = "string";

var_dump($string->length());

 

And:

 

<?php

// hopes for future:
for($i in 3 to 20) { // easier and more readable loop
	first {
		// this line will execute on the first iteration
	}
	
	alternate(2) {
		// this line will execute on every two iterations
	}
	
	alternate(2, 1) {
		// this line will execute on every two iterations starting at 1
	}
	
	alternate(3) {
		// this line will execute on every three iterations
	}
	
	last {
		// this line will execute on the last iteration
	}
}

// current:

for($i = 3; $i <= 20; $i++) {
	if($i == 3) {
		// this line will execute on the first iteration
	}
	
	if($i % 2 == 0) {
		// this line will execute on every two iterations
	}
	
	if($i % 2 == 1) {
		// this line will execute on every two iterations starting at 1
	}
	
	if($i % 3 == 0) {
		// this line will execute on every three iterations
	}
	
	if($i == 20) {
		// this line will execute on the last iteration
	}
}

// hope for the future:
for($i in 10) {
	for($n in $i) {
		if(condition) {
			break(2); // break loops to a variable depth
			// continue(2) - should be able to do the same with other keywords...
		}
	}
}

// current:

for($i = 0; $i < 10; $i++) {
	$break = false;
	for($n = 0; $n < $i; $n++) {
		if(condition) {
			$break = true;
			break;
		}
	}
	
	if($break) {
		break;
	}
}

 

Anyway, I digress...


*insert cliché inspirational quote here*


#8 Calvary

Calvary

    Conceptual

  • Members
  • 6,624 posts
  • Locationwww.

Posted 30 April 2015 - 03:36 PM

Interesting.

 

 

Have you met our resident wolf...


tumblr_om7nwjm5Wm1rsea1wo1_500.gif
Ask for my discord/Insta/Tumblr if you want.