Development, environment setup and much more - questions! :(

Here is my story, the view is long - please bear with me :)

I am currently the only programmer, but I do not plan to do so. When I started, we did not have version control - files that were edited directly from the development server that used rsync to synchronize with production servers.

I did not have much experience in this - this is my first job (I’m 19 years old), but I have the settings, but I don’t know if it will work easily when you work with a designer and / or more programmers.

My IDE is Zend. Project - a project with SVN verification.

When I need to make changes, I do this, save it and delete my local computer with apache configured to read from these files in this project. This is mainly Webservices or just one file, not entire projects.

I started work on another project that required me to use a fully qualified domain name (because it required parsing subdomains), so I set up my local apache to use this domain name, even if it did not point to me. Using foxyProxy and making http: //*.domain.com and http://domain.com as one rule and pointing to 127.0.0.1 - this allows me to use the site www.domain.com, but I got into the dev machine (which belongs to to me).

I commit the changes and run this kind of ghetto bash script, which checks the code with SVN and synchronizes with all servers using RSYNC.

Well, soon we will get a designer to work with me. My code is broken into a View Controller system - But I do not use php templating system

I have a friend who works for this other company. They are somehow different from how I do it. I think he does it perfectly.

The code is in the Z: \ drive, which, apparently, is a network resource (I'm not 100% sure) The project uses this code, and when it saves something, it opens firefox and turns on foxyproxy. It is configured using an HTTP proxy. I think that it works, that the HTTP server is configured to create any site that this company is developing, go to bbbb (development) ip instead of aaaa (production) - I would like to know what software it is or proxy the server can do this.

It uses JIRA, and jira has a commit button - not very familiar with this, so I don’t know how it works.

The confusing part is that when he goes to the site, there is supposedly a “drop-down list” of development in which he can select any modification of the developer and look at what they worked on.

In principle, each person who can commit has his own environment, and not just one. ** How can something similar be realized, any ideas? **

He does not know how it works, because he is new to this company, but I hope he learns quickly!

Some of my questions are:

  • How are the development and middleware environments configured?
  • If the designer has full access to the php code, although all they need is "views"?
  • What is an easy way to implement a "multi-user" environment?
  • Should we use a template system or can we use basic <? = $ name? > do the work for the designer and their HTML code?
  • Any comments on what I'm not doing right?

PS: My boss was / was technical (he was a programmer), but he never used any of the tools that we use now - I am responsible for all this - he did not know what SVN is :)

+4
source share
2 answers

How are the development and middleware environments configured?

Each developer has a local XAMP installation. Default configurations, default virtual hosts, database schemas, etc. Located in the SVN repo. Updates are performed using rsync. But I don’t think this is a very productive way to manage releases, although it is very flexible. The DNS stuff is being processed by our DNS server (which is a surprise). Naming convention:

  • development: example.local
  • products: example.org

If the designer has full access to the php code, although all they need is "views"?

If all your viewing scripts are under the same path, why not just let the designer check this path? Depending on how you manage your repositories, you can set privileges very specifically.

Should we use a template system or basic to do the work for the designer and their HTML code?

IMHO PHP is a template engine and there is no need to use another. If a designer can write %VARIABLE% , he can write <?php echo $variable; ?> <?php echo $variable; ?> . And as soon as you need to implement control structures ( for , if , etc.) in the template engine, you have a level of complexity that does not differ from the basic PHP control structures. And if you cannot trust your designer, you need a new one ...; -)

+1
source

"But I do not use the php templating system" ...

PHP is a template language . it is even correctly recognized by most HTML editors, so any designer who does not support Braindead should be able to use it correctly if you separate most of the "working" code from the "view" files. or at least put all the code at the beginning of the PHP code, leaving only HTML files mixed in HTML.

personally, I only allow things like <?=$varname?> , simple loops like

 <?php for $row in pickdata() { ?> <tr> <td><?=$row->field1?></td> <td><?=$row->field2?></td> </tr> <?php } ?> 

and a few <?php if (test()) {?>

0
source

All Articles