The application of declarative programming

2009-06-19  来源:本站原创  分类:Development  人气:24 

I am now responsible for the development of a production line management system,
Because the lines are often based on user requirements, system control and do some recording, so a lot of changes to the old system,
Dynamic changes in this change process, often a lot of problems, mainly a few are:
1. A function of code scattered everywhere.
2. A lot of duplicate code appeared.
I think everyone in the development process, whether tried this programmatically, write-only process is to write the program logic,
For example, a check process:

class CheckData(CheckClass):

    # Interface will need to enter data
    sn = Input()
    data = Input()

    # Checking logic
    def check(self):
        addCheck(IsUnique(sn)); # Check for uniqueness
        addCheck(IsNew(data));  # Check if the data is the new 

    # Processing logic
    def process(self):

Then, with the other modules to assemble these into the actual code logic.
This ensures that write less code and concentrate on the introduction of the information.

What we have to share the same practice?

  • The application of declarative programming 2009-06-19

    I am now responsible for the development of a production line management system, Because the lines are often based on user requirements, system control and do some recording, so a lot of changes to the old system, Dynamic changes in this change proce

  • Introduction and Application of Declarative Services specification 2010-10-17

    Declarative Services is a service-oriented component model, which aims to develop more easily in the OSGi service platform to publish, find, binding services, dynamic management of services, such as monitoring the service status and to resolve the co

  • Android Application of Visual Programming Services open invitation 2010-07-29

    Google Labs announced two weeks ago for a project entitled App Inventor for Android (Android application inventor) of the new service will be graphical concept of modular application development applications ported to mobile phone production to let t

  • Enterprise Application Architecture 2009-09-25 I. What is the structure In the Oxford Advanced Dictionary (7th edition), the structure (architecture) is the interpreta

  • Programming language trends and future direction (3): functional programming 2010-08-18

    Transfer from This is Anders Hejlsberg (who had not introduced it right) in the opening made by the Belgian TechDa

  • [Switch] with the functional and beautiful writing JavaScript programming 2010-12-31 # functional Shantanu Bhattacharya, Principal Consultant, Siemens Information Systems Limited Introduction: functional or declarative programming is a very powerful programming method in the

  • Father of C # Anders Hejlsberg lectures Interpretation: trend in programming languages 2010-07-29

    Author: wuzhimin - Based on the father of C # Anders Hejlsberg lectures summary Wen / Zhao Jie Programming programming language can not be separated, but the programming language environment in the country appears to have been a second-class citizens

  • Books of the required network programming must see (change) 2010-08-08

    TCP / IP protocol is the current common WAN and LAN network protocol, therefore, based on TCP / IP programming is particularly important. From the application point of view, now directly use the C-level Socket API for TCP / IP programming, people do

  • [Zz] The basic idea of ​​dynamic programming 2011-07-28

    Previous | Return | Next Dynamic Programming Dynamic Programming Starfish ( starfish.h @ ) Summary This article describes the basic idea of ​​dynamic programming and the basic steps, through case studies the use of dynamic programming algor

  • Java Products and software download 2009-03-13

    This column provides hundreds of Java products and software download site link and brief introduction developerWorks Web site resources related technologies. Through this column, you can easily find you need Java tools, components and code, but also

  • ActionScript Flash Flex FlexBuilder AIR 2009-10-16

    Original Link: A comment on my previous posting asked for some explanation of what Flex is and how it relates to Flash. I'm still intending on posting some technical content here and going ove

  • Recognizing spring Services 2010-02-05

    ps: this article a few months ago, finishing well, with reference to a lot of good articles, to learn the essence of them + some of their own understanding, share je friends! Spring framework is one important factor in eye-catching is its comprehensi

  • spring surface Question 2010-03-29

    1, spring works: 1.spring mvc invited all of the requests are submitted to the DispatcherServlet, it will delegate the application system is responsible for other modules responsible for processing requests for real. 2.DispatcherServlet query one or

  • vs2010 add a reference page and the CLR side-by-side changes 2010-04-02

    1, VS 2010 Beta2 version of the "Add Reference" has changed, we pressed to choose one, a little hollow leopard. In vs2010 when you open the dialog box,. NET and COM page is now loaded asynchronously, in filling the list will not block UI thread.

  • Spring transaction strategy 2010-04-16

    From: JAVAEYE ① Spring transaction strategy Spring transaction strategy, which is spring transaction management is realized. It has a unified abstraction is the interface to achieve the following completed. org.springframework.transaction.PlatformTra

  • I think Microsoft. NET prospect of the technology 2010-04-18

    Original link: 2002 release. NET 1.0, after 8 years of development,. NET development to a 4.0, has become a large and complex software development and operating platform, the increasing co

  • spring face questions 2010-05-25

    1, spring works: 1.spring mvc please all requests are submitted to the DispatcherServlet, it commissioned the application system for other modules responsible for processing requests for real. 2.DispatcherServlet check one or more HandlerMapping, fou

  • Servlet 3.0 new features Xiang Jie 2010-06-19

    Java servlets is a widely accepted technology for building web applications based on dynamic content; Servlet 3.0 specification draft version issued earlier for the technology in features and application program interface (Application Program Interfa

  • spring interview Encyclopaedia (1) 2010-08-17

    1, Spring framework has the advantages of what? 1.Spring is a layered architecture, you can choose the level you need without the unwanted part of the tube 2.Spring a POJO programming, POJO programming enables sustainable building and testing capabil

  • Spring AOP study notes-Springle generation 2010-09-30

    Spring AOP generation Spring AOP as we discuss in detail the implementation details, we first give a simple example for the Spring AOP discussion off the ground: Let's write a simple output of "World" class, as follows: public class MessageWrite