kiss

Does K.I.S.S play a role in your development, if so, do you prosper from it?

In my programming life I work with the principle "K.I.S.S." - keep it simple stupid. This works out pretty well for me although the projects and tasks get even more complicated (at least for me in my project life). Do you use this principle? Why? Why not? Do you prosper from kiss or do you think this is impossible? ...

Coming to Ocaml from Ruby, Lisp, Haskell, and Erlang

I've been reading about Ocaml's consistent speed, rapid prototyping ability, and excellent memory management, and decided to take it up. As I've already got Ruby, *lisp, Haskell, and Erlang under my belt, I'm interested specifically in what KISS-violating features I should look out for in Ocaml. If you've started Ocaml with a backgroun...

Best java mvc framework implementation for web apps

What is the best MVC framework inmplementation in java? It has to be: lightweight KISS philosophy be able to make changes to the views without compile minimalistic; few lines of code ...

On K.I.S.S and paving cowpaths

I'm currently developing a PHP application that's using an Access database as a backend. Not by choice you understand... the database is what the client used originally and using it is part of the requirements. One of the problems with this database is that the column names have the most insane naming convention you could possibly imagin...

How do you fight design complexity?

I often find myself fighting overengineering -- the person in charge of designing the software comes up with an architecture that's, way, way overcomplicated. It's all fine and dandy to have all the esoteric features that users will never know about and get that sense of achievement when you're doing something that all the magazine arti...

Dead-simple web authentication for a single user

I wrote a small internal web app using (a subset of) pylons. As it turns out, I now need to allow a user to access it from the web. This is not an application that was written to be web facing, and it has a bunch of gaping security holes. What is the simplest way I can make sure this site is securely available to that user, but no one e...

Are KISS and YAGNI at odds with the trends towards increasingly more sophisticated patterns and practices like SOA, DDD, IoC, MVC, POCO, MVVM?

It seems to me that Agile methodologies encourage us to keep things simple, and lean, and not add complexity and sophistication until its needed. But the pace and volume of technology change encourages the use of increasingly abstract, complex and sophisticated tools and patterns to solve problems that we may not have yet (and may never...

KISS: Simple C# application which communicates with a RESTful web service.

Following the KISS principle, I suddenly realised the following: In .NET, you can use the Entity Model Framework to wrap around a database. This model can be exposed as a web service through WCF. This web service would have a very standardized definition. A client application could be created which could consume any such RESTful web se...

When is LINQ (to objects) Overused?

My career started as a hard-core functional-paradigm developer (LISP), and now I'm a hard-core .net/C# developer. Of course I'm enamored with LINQ. However, I also believe in (1) using the right tool for the job and (2) preserving the KISS principle: of the 60+ engineers I work with, perhaps only 20% have hours of LINQ / functional par...

Is there a more correct type for passing in the file path and file name to a method

Hi What I mean by this question is, when you need to store or pass a URL around, using a string is probably a bad practice, and a better approach would be to use a URI type. However it is so easy to make complex things more complex and bloated. So if I am going to be writing to a file on disk, do I pass it a string, as the file name a...

Can I avoid repeating myself in this situation (Java)

if (openFile == null) { new AppFileDialog().chooseFile("Save", appFrame); } if (openFile == null) { return; } Here I need to check to see if the user has already chosen a file. If not, they are given a prompt to. If the file is still null, the function returns without saving. The problem is the two identical if sta...

python - list operations

Given a list of unsorted numbers, I want to find the smallest number larger than N (if any). In C#, I'd do something like this (checks omitted) : var x = list.Where(i => i > N).Min(); What's a short, READABLE way to do this in Python? ...

How to KISS and smart this method

I have an action in my RoR application, and it calls a different script depending on the user running it. def index @user = User.find(session[:user_id], :include => [ :balances, :links, :comments ]) render :file => "#{RAILS_ROOT}/app/views/user/index_#{@user.class.to_s.downcase}.html.erb" end How to make the call to render a m...

How to send a custom command to a .Net windows Service from.Net code?

As in the following link, one can stop, start, and "stop, then start" a service using C# code. http://www.csharp-examples.net/restart-windows-service/ I have baked a .Net service that does implement OnStart and OnStop. However, I need to implement a "smart restart" functionality which is more involved than just stopping and then starti...