New answers tagged

-1

There are more than 1000 way except MVC some of them are similar to MVC and some totally different for example : Model-Template-View - MTV Model–view–presenter - MVP Hierarchical model–view–controller HMVC Model View ViewModel- MVVM etc


0

I would definitely recommend recording videos of interaction on a site. If ou can't run from a local copy of the original, Wayback or a similar archive is probably the way to go. Depending on your previous employers' contract with their clients, you may not be legally allowed to slow the whole site. You could probably get away with showing a focused portion ...


0

Why not try something like this: <Vehicle> </OilChange> </PaintRequest> <BrakeReplacement> <vin>123</vin> <brakeType>cheap</brakeType> </BrakeReplacement> </Vehicle> It is Easy to Maintain such xml. You have only one XML file with No HOTCH POTCH in your file. If ...


3

I would foster the first approach for 2 reasons: As far as I understand, painting a vehicle, changing its brakes or replacing oil are 3 distincts operations that are made separately (in time, in space). Therefore it's not the concern of the endpoint managing the brush to know that the brakes must be replaced by cheap ones (or even worse, by null ones). If ...


4

In the old days, you used <a name="whatever"> if you wanted another link to jump to a particular point on the screen. Nowadays (for a long time actually) we use the "id" attribute.


2

You could imagine that some Javascript code is dynamically changing the DOM to add that missing href= attribute dynamically at runtime.


1

This Use one type for every message seems counterintuitive and potentially problematic to me. I would much rather specify different messages for different scenarios and send these to different endpoints. Your endpoints will have to reject messages they don't expect, but as they should reject badly formed messages anyway, I don't think there's much of ...


0

I'm from the Java World, but things are pretty similar, so here are some hints about rights checking in my opinion. If your right is a right like "have the right to perform action X". Then you should check before routing and in the service layer. The check in the service layer is to be sure that whenever you call that service, you'll have a said check. ...


0

Authentication should happen after routing but before calling controller or its methods. At that point you know which route was requested and can check if user has privileges to perform a certain action (call controllers). This allows not only to separate concerns, but also to decide how to handle unathorized requests before they hit controllers - eg. ...


1

W3Schools.com says: In HTML 4.01, the tag could be either a hyperlink or an anchor. In HTML5, the tag is always a hyperlink, but if it has no href attribute, it is only a placeholder for a hyperlink. I recommend against using an <a> tag without an href as a placeholder. Better to use <u> tags so that the broken links show up ...


0

Most web apps implement their own API which exposes the underling services behind a common interface. In your particular case I think it will depend on whether your are intergrating with your customer accounts on these various apis, or using your own account. If you are using your own, you will obviously want to protect the api keys etc and a server side ...


1

Also, don't be afraid tot tell me it's a silly idea. It's a silly idea :P And here's why: Data caps. The primary hog when it comes to data are things that happen in the background without any user's consent. You wouldn't want to be leeching off a person's data. Battery and heat. Of course, processing takes up resources and resources doesn't come free, ...


1

The examples shown is correct, but Zend\Form is not exactly what you want to use in your controllers. I'm talking about Exhibit A, where it shows how much code to create, populate and style a form with two elements. It is tedious to create forms that way. To avoid turning the controller into a form factory, you need to create a factory that will create the ...



Top 50 recent answers are included