Tag Info

New answers tagged

3

As always in such cases YAGNI (You Ain't Gonna Need It) and KISS (Keep It Simple Stupid) applies. In other words, keep your application as simple as possible, and only add features which are currently needed (don't add features which may be needed in the future). Simple systems are easier to develop, easier to maintain and are often easy to scale.


5

It is difficult to imagine a situation in which being scalable is not important enough to take into consideration when building a web application, however, I imagine it could happen. If you are making a web application in order to try out new technologies, it does not need to be "production ready." Likewise if you know that this is going to be a web ...


1

Few benefits of using GWT that I think of ( more details read my blog http://www.pandurangpatil.com/2012/09/benefits-of-using-gwt.html) As GWT client application is written in Java, one get an opportunity to catch syntactical mistakes at compile time because of the same (Though it doesn't support all the JRE classes as those features are not supported by ...


0

Should I be paid for time spent learning a framework? Should a lawyer working on retainer be paid for time spent reading legal volumes? The answer to both questions is 'YES'. We have seen the computing world undergo enormous change in the past two decades, and you should expect more of the same for the foreseeable future. An employer should expect ...


1

Our software is developed and executes on AIX, but the AIX boxes a locked down so running Eclipse in AIX is not posisble (let alone what happens when 10 poeple fire eclipse on one server). I mount my source folder locally (NFS on a Linux box) and run Eclipse on the linux box. Builds are done by shelling across to the AIX server and runnig the build. The ...


2

I understand you are trying to solve two key problems here Syncing configuration files to between two locations Deploying applications from development to production. To answer your first question: There a number of sync tools that are available you can use to sync a bunch of directories to across multiple systems my favorite is rsync. ...


4

The description on the Suhosin website is pretty clear, emphasis mine: If you are using PHP only for your own server and only for your own scripts and applications, then you can judge for yourself, if you trust your code enough. In that case you most probably don’t need the Suhosin extension. [...] Even PHP core programmers are writing insecure code from ...


2

Well, I think your design is fine I would only recommend you only a simple thing on how to store the roles. I have here a system that has almost the same concepts. It is not based on roles as per the name. So I have a user session object with objects of type Map that store the permissions that the user has. And this Map objects is filled on demmand It will ...


1

Starting with the user experience and how that works is actually a good way to start off. It ensures that what you build is fit for purpose and that you end up building what needs to be built and not things you think you will need. See User Centered Design on Wikipedia.


1

You don't need to role your own, Angular combined with ui-router is a great SPA framework for that sort of thing. $stateProvider .state('home', { url: "/", templateUrl:'/home.html' }) .state('foo', { url: "/foo", templateUrl:'/foo.html', resolve:{ bar: function(){ return {'value': 'baz'}; } ...


0

You can refer more detail about ajax. Ajax allow to respond user's request without refresh the whole page or go to a new page. In some situations it might has better user experience to use ajax. For traditional php post request, it allow to bring user to other page. Hence, you can apply both ways into your project base on different situation.


2

There are three options: You are programming on the server side You are programming on the client side You are writing a stand alone application that is neither a server nor a client Some applications are both clients and servers (many CRUD applications are on the server, but also are clients of a database). Peer to Peer apps can be thought of ones that ...


1

I used to work on a system with fixed number of tables/directories (different from yours), so I didn't use role-base security schema like the one of yours (or of file system, or of SQL DB). I used linear access level. At high level, the thing is similar though, especially with your question. Nevertheless, wherever and however you store Access Right on the ...


0

I think it would be best to store a List<Action> in the session. Resolve this list based on the roles the user has at the beginning of the session. Unless permissions change often, it is enough that the user permissions are updated on each login. On a sidenote, I would not design it so that Role has a List<Module> but instead a ...


1

A browser is a desktop application, its very easy to pack your war with and embebed server (with jetty its really easy), this way you can run your app in a stand-alone machine. If you want two versions, web and desktop, its because one of this versions gives things to your users that the other versions cannot give, if you are thinking in a "automatic" way ...


4

MVC is a good pattern for this, but its the V part "View" that isn't reusable from platform to platform. The code for modifying the document of a webpage on the clientside without postback is javascript, that is non-negotiable. The code for modifying controls in a native/jvm form application for example, is not javascript. So for the presentation part the ...


5

The simplest way would be to implement it using web technologies (eg HTML controls) so that it can be displayed as a web page easily, and then create a desktop app that uses the same html pages only wrapped as a 'executable'. To create a desktop application you can either view the web page in an embedded browser in an application that exists solely to show ...


0

There should be very little overhead associated with getting the user permissions on page load, so do that. Don't use the session to store much of anything. This will allow permissions to be dynamically changed by admins (so that the user won't have to login again). Rather than develop a detailed role infrastructure, why not consider something simpler ...


0

It's possible through RAP with a single code base to develop a Web application which can be also installed as a Desktop application. Here is the link - http://eclipse.org/rap/


0

even css 2.1 has the media values of screen, handheld or print ! Isn't that going to be enough to decide how to serve your website's content? Sorry if I missed the point: http://www.w3.org/TR/CSS21/media.html


1

The most efficient setup for your configuration would be to git clone the repo via SSH directly into the virtual machine (in a location that's accessible to the SAMBA user), mount the "remote" folder from the VM as a network drive in Windows and use PHPStorm to open the project directly from that drive. The point is this: edit the project directly from the ...


3

Why Markdown? What is the advantage of using a markdown wysiwyg editor over an editor that just outputs HTML? Because there are cases where you can't use a WYSIWYG editor, and should revert to text mode. Example: diff of a question or an answer on Stack Exchange. Sometimes, you can simply compare the rendered layout. But there are cases where the ...


3

Programmers like markup languages (Wikipedia markup, Markdown, HTML, SGML, etc.). Non-technical users like WYSIWYG editors. It has been this way since the first attempts at computerized typesetting (e.g., RUNOFF, 50 years old this year).


1

Real example: Confluence, a wiki made by Atlassian. It used to have both a markdown and a WYSIWYG editor in it, and you could flip between the modes. They removed the markdown mode and I was angry because it gave me better control/ability to do what I explicitly wanted, rather than fighting the WYSIWYG editor. (I think they still have an auto ...


1

Instead of using cookies, it would be smarter to use sessions: There is now only one cookie set, which would be some unique identifier of the user.And then indeed grab all the important user information from the database. You can of course store this information in session variables afterwards, and only reload them if they are not set, or a user changed ...


1

I have used a setup similar to yours to do local develoment. In my case, I set up git (actually I use Mercurial, but same idea), and added the VM as a remote on my local repo. I can then check out different branches or commits through an SSH connection to the VM. If the VM has a GUI, you could also manage the remote repo that way. If you pretty much always ...


1

There are two places where things happen on the web in terms of actual behavior, the server and the client. The Client Most obviously a web browser but there are other clients for navigating the web. The client is where requests are made. When you type in a URL in a browser, that is making a request of a server. It looks at your request and hands you the ...


2

As you've noticed, the basic problem is that - as written - that script isn't reusable. It's hardcoded for a specific case. There's no straightforward way to pass in different settings on different pages. So you'll need to modify that script to make it reusable. There are any number of ways you could do that, but here's one that involves minimal ...


4

You understood correctly, HTML and CSS enable you to build static websites only. You can also add LESS and Sass to the series, as two languages which enable you to write CSS easier and reduce code duplication. JavaScript is a programming language which is usually executed in the browser (on client side) and enables you to add interactivity to your app. You ...


0

With things like NodeJS, Javascript can be used on both the back end and the front end for web development. So just voting that in terms of most benefit per language learned. However, my experience has been that it's easier to get a web app up and running in PHP since it's been around so long.


1

Absolutely! Modifying javascript libraries is practically a time-honored tradition. Take a look at one of the lines: br.getPageURI = function(index, reduce, rotate) { // reduce and rotate are ignored in this simple implementation, but we // could e.g. look at reduce and load images from a different directory // or pass the information to an ...



Top 50 recent answers are included