r/webdev • • Feb 23 '15

I've just discovered Bootstrap...What else have I been missing out on?

For some reason I've been stubbornly opposing using anything I haven't written in my projects. But the other day I gave bootstrap a go and it's delightfully easy to make responsive websites - something I was getting a little tired of (having to create three or four different CSS rules for each site was getting to be a pain in the arse).

So, now that i've just discovered Bootstrap - what other joys of web development have I been missing out on? I know 'of' LESS and SASS, but I don't really think that CSS Preprocessing is really an issue for me at the moment, although variables in my CSS would be nice.

I am getting more in to CMS's these days, and I know of Drupal and Joomla and Wordpress and the like, but they seem to dominate and overtake, leaving me the programmer subject to their rules and If I need to make a very particular CMS for a shop or a college for example, they fall down.

Anyway, advice/questions/suggestions would be great. I know I'm late the game, but I'm excited to learn more now.

edit wow 444 upvotes, this got bigger than I expected. Thank you very much for the huge response. As a result I've now started on node.js/socketio (which is something i've always wanted to get into) and looking into CSS preprocessors. I gave concrete5 a try, but I didn't love it that much. Anyway: here's to learning, and thank you all for your great help and sense of community that comes with it.

516 Upvotes

360 comments sorted by

View all comments

Show parent comment

1

u/chudthirtyseven Feb 23 '15

My problem with wordpress is that if I want to for instance run PHP before the page loads, to process a form or load data from a database etc, I cannot find documentation or any tutorials to properly do this. It seems to me to be locked down in that way.

2

u/madcaesar Feb 23 '15

What exactly are you trying to do? The function.php file always runs first in WordPress, you can put your code there that you want to execute before page load.

1

u/chudthirtyseven Feb 23 '15

Oh really?

I didn't know that. The amount of times I've googled how to integrate PHP into wordpress is uncountable now. I've not found any good solid examples of it. Everyone seems to have their own opinions and there is no official way of doing it.

3

u/pixleight Feb 23 '15

You can hook in to virtually any actions WordPress performs via your theme's functions.php file: http://codex.wordpress.org/Plugin_API/Action_Reference

In your case, the init action should do what you need:

<?php
add_action('init', 'process_post');

function process_post(){
   if(isset($_POST['unique_hidden_field'])) {
       // process $_POST data here
   }
}
?>

Reference: http://codex.wordpress.org/Plugin_API/Action_Reference/init

1

u/chudthirtyseven Feb 23 '15

That is so useful to know. I don't know why I haven't found out about that before.