Notes on codes, projects and everything
Generally, library holds a wide variety of reading materials and providing ample space for quiet study. A full range of services is provided in a library, such as loan, reservation, inter-library loan, reference, online resource, document delivery, photocopying, audiovisual and microform materials.
Initially, the library transactions are handled manually by the library staff. The references are stored using the filing system. This tradition method has raised many inconveniences to the library staff.
Hence, you are required to do some research on the problems that faced by the conventional library management system, and then develop a computerized library system by using the ASP.NET.
A master page is used to set up a consistent look and feel to the website. However, since it is not being discussed in class, therefore we had got to learn that ourselves. We implemented a simple master page to the website and separate the layout and data presenting element using a stylesheet file. The tool used to develop the assignment is Visual Web Developer 2005 Express Edition.
Following included are the screenshots for some main functions.
After coded enough Javascript few months back, I found that there are a couple of functions that I kept re-using in different projects. Therefore I took some time to refactor them and re-arrange them into a single file. The common code that I keep reusing even today consists of functions that does prototypical inheritance, scope maintenance, some jquery stuff, google maps api stuff and some general ajax application related code.
I don’t quite remember when did I first heard about Category Theory, but the term stuck in my head for quite a while. Eventually I attempted to start looking for tutorials on the topic, but it is hard to find one that I actually understand. Most of them are either leaning too much to the Mathematics side, or too much to the Programming side.
(more…)I finally put in some time and effort learning myself a bit of Rust. Though I am still struggling with ownership and lifetimes (which is essentially everything about the language, to be honest), I find it more interesting compared to Golang, which is relatively boring, though being functional (no pun intended). While learning the language, the one thing I came across often is the Option
enum, then I remembered that I read something about Monad.
After reading through the documentation, I find that the role based ACL and work flow can be more tightly integrated. Therefore I made all the transaction into many FSMs and my work flow component now consists of one work flow library and one work flow management model. As I am going a more normalized design (I use denormalized design in work as it deals with a lot of documents, however for a small project like mine, a denormalized design should do well).
I often struggle to get my Javascript code organized, and have tried numerous ways to do so. I have tried putting relevant code into classes and instantiate as needed, then abuse jQuery’s data()
method to store everything (from scalar values to functions and callbacks). Recently, after knowing (briefly) how a jQuery plugin should be written, it does greatly simplify my code.