[QUOTE=TerabyteS_;34051128]Which one is better?
[img]http://gabrielecirulli.com/p/20120104-210005.png[/img][/QUOTE]
If you don't mind me asking, what font is this? (The script one)
[QUOTE=Cow Muffins;34080597]If you don't mind me asking, what font is this? (The script one)[/QUOTE]
Pacifico.
This ; [url]http://dl.dropbox.com/u/17570140/chrisportfolio/Home.htm[/url]
I'm a tool with websites, so I'm pretty proud of this :p
I just finished working on a consolidated stream using PHP with serverside caching (to static JSON pages), that provides stripped-down output of my Twitter, Last.FM and Steam status in JSON format. Caches Twitter and Steam for five minutes, Last.FM for two, and adding a new service is as easy as writing a new callback for it. Though the code is still messy as hell.
I must say that after working with XML in PHP a little (using only base XML libraries and whatnot) the simplicity of working with JSON in it is a breath of fresh air. About the hardest thing I found in the whole thing was parsing some odd attribute names the Last.FM API spits out (@attr and #text, for whatever reason) but that's as simple as some braces. Just json_decode() and you're good to go, so long as you remember it returns stdClass objects and not string-keyed arrays (took me a minute to realize that)
Also, with the colossal amount of spare time I had at work the other day, I built a simple calendar widget to record my thoughts (currently into static JSON documents).
[img]http://dl.dropbox.com/u/12906062/calendar.png[/img]
This is the fourth iteration of it (aka '3:00PM', the first iteration is codenamed '12:45'). Working as a receptionist then getting two phone calls in a seven hour shift [i]sounds[/i] fantastic, but in reality is very very boring when you've only got [i]intra[/i]net. If it happens again next week, I'll probably just play Minesweeper.
[QUOTE=cocknugget;34093347]This ; [url]http://dl.dropbox.com/u/17570140/chrisportfolio/Home.htm[/url]
I'm a tool with websites, so I'm pretty proud of this :p[/QUOTE]
images everything
[QUOTE=cocknugget;34093347]This ; [url]http://dl.dropbox.com/u/17570140/chrisportfolio/Home.htm[/url]
I'm a tool with websites, so I'm pretty proud of this :p[/QUOTE]
position:absolute; x 200000
[QUOTE=cocknugget;34093347]This ; [url]http://dl.dropbox.com/u/17570140/chrisportfolio/Home.htm[/url]
I'm a tool with websites, so I'm pretty proud of this :p[/QUOTE]
DreamWeaver Templates :(
found yet another terrible php bug
[url]https://bugs.php.net/bug.php?id=60682[/url]
[php]
<?php
function f() { call_user_func("f"); }
f();
[/php]
^ that segfaults
[QUOTE=swift and shift;34094188]found yet another terrible php bug
[url]https://bugs.php.net/bug.php?id=60682[/url]
[php]
<?php
function f() { call_user_func("f"); }
f();
[/php]
^ that segfaults[/QUOTE]
You spend a lot of time using PHP for somebody who severely dislikes it
[QUOTE=Dotmister;34094306]You spend a lot of time using PHP for somebody who severely dislikes it[/QUOTE]
sometimes you gotta do what you gotta do
[editline]8th January 2012[/editline]
that segfault was a real productivity killer too, i spent about 30 minutes tracking it down.
btw this segfaults too:
[php]
<?php function f() { array_map("f", array(1)); } f();
[/php]
[QUOTE=swift and shift;34094337]sometimes you gotta do what you gotta do
[editline]8th January 2012[/editline]
that segfault was a real productivity killer too, i spent about 30 minutes tracking it down.
btw this segfaults too:
[php]
<?php function f() { array_map("f", array(1)); } f();
[/php][/QUOTE]
As does:
[php]<?php class c { static function f(){ forward_static_call(array('c', 'f')); } } c::f();[/php]
Every conversation I have with you makes me hate PHP more and more.
[QUOTE=Jelly;34094428]As does:
[php]<?php class c { static function f(){ forward_static_call(array('c', 'f')); } } c::f();[/php]
Every conversation I have with you makes me hate PHP more and more.[/QUOTE]
it's a really fucking shaky language.
i have no idea why people continue to start new projects in it
[QUOTE=swift and shift;34094444]it's a really fucking shaky language.
i have no idea why people continue to start new projects in it[/QUOTE]
Because they (me) haven't gotten around to learning a better language.
[QUOTE=Jelly;34094450]Because they (me) haven't gotten around to learning a better language.[/QUOTE]
get off your ass
[QUOTE=swift and shift;34094444]it's a really fucking shaky language.
i have no idea why people continue to start new projects in it[/QUOTE]
Simply because it's so easy to make PHP projects on all platforms. Added to the fact it's really widely supported and advertised on web hosting plans it's just an easy option.
I'm not saying PHP should be used, I just think it's not that hard to see why people do use it.
Done with the HTML version of my new homepage
[img]http://gabrielecirulli.com/p/20120107-181047.png[/img]
~~~Developed on Linux!!!11!~~~
Also do not trust Chromium on Ubuntu because the layout engine fucks up and overlaps elements it shouldn't overlap. Test with Firefox instead or on Windows.
With the amount of routine PHP bashing that happens in these threads I honestly don't even know if you're sarcastic, but I'm converting to Christianity so I can pray that you are
[QUOTE=Weiss;34094727]With the amount of routine PHP bashing that happens in these threads I honestly don't even know if you're sarcastic, but I'm converting to Christianity so I can pray that you are[/QUOTE]
i'm being completely 100% serious when i say [b]php sucks[/b]
[QUOTE=Jelly;34094450]Because they (me) haven't gotten around to learning a better language.[/QUOTE]
What other language would you suggest? I use PHP because it's the only C style language I know of.
[QUOTE=commander204;34095477]What other language would you suggest? I use PHP because it's the only C style language I know of.[/QUOTE]
As per recommendation from swift and shift I'm learning Ruby next, I'm not really the best person to ask.
He suggests C# ASP.NET, of course. To be honest, I find developing web apps in C# rather boring. It feels as if everything is done for you and don't need to think at all when creating new websites.
[QUOTE=Crhem van der B;34095605]He suggests C# ASP.NET, of course. To be honest, I find developing web apps in C# rather boring. It feels as if everything is done for you and don't need to think at all when creating new websites.[/QUOTE]
I'm sure that feeling goes away with larger projects.
Maybe it does, however, for now PHP seems much more challenging, because you can always create better code in 100 different ways, which, I believe, adds to the interestingness of coding websites.
[QUOTE=Crhem van der B;34099001]Maybe it does, however, for now PHP seems much more challenging, because you can always create better code in 100 different ways, which, I believe, adds to the interestingness of coding websites.[/QUOTE]
I can't tell if this is serious or not, I hope it isn't
[QUOTE=TerabyteS_;34083485]Pacifico.[/QUOTE]
Thank you very much! I'm always happy to find new fonts.
i don't get about when people say "hard" about coding. It feels like either you know it or you don't you can make or can't.
So for me "hard" is taking a LOOOOONNNGGGG time to make.
[QUOTE=Crhem van der B;34099001]Maybe it does, however, for now PHP seems much more challenging, because you can always create better code in 100 different ways, which, I believe, adds to the interestingness of coding websites.[/QUOTE]
When you start doing larger projects, it's nice to be able to focus on the project at hand and not on the hundreds of tiny implementation details.
Say I want to show a post.
I put this in config/routes.rb:
[code]
resources :posts
[/code]
This in app/controllers/posts_controller.rb
[code]
def show
@post = Post.find params[:id]
end
[/code]
and then I can just write my HTML in app/views/posts/show.html.erb.
I can avoid writing the same SQL shit over and over, I can avoid all kinds of stuff that you have to write yourself when you don't use a framework. And the less code you write, the better.
There [i]are[/i] PHP frameworks that let you just focus on the parts that matter, but then you still have to use PHP (which is a terrible language) anyway.
Updated my [url=http://marlamin.com/gmaps/]World of Warcraft Map[/url]. Trying out some new interface features and improved the map's quality.
Does anyone that worked with the Google Maps API this heavily before have some tips on how I could enhance certain things before I start adding more features?
The new [URL="http://www.gabrielecirulli.com"]gabrielecirulli.com[/URL] is up!
Sorry, you need to Log In to post a reply to this thread.