http://www.solversmanifesto.com/
The Solver Manifesto shows our dilemma, as a web developer, probably not much to the backend developer, or system developer. But definitely web developer, which is a big chunk of software development jobs.
We are not engineer, we are not paid as much as an Expert, and we don't get respected like a artist. Yet, we hired because we knows how to program, yet we have to make things nice. And yet, our opinion is not respected. Even when technicians fixing stuff, nobody question how they do it. Not for us.
p.s yes Yet Another Rant Post
this is a place where i put my thought of technology and things that i do.
Saturday, February 19, 2011
Saturday, February 05, 2011
Random Python Learning : partial
On the holiday I decided to learn more on python, and really there is much to learn!!!!!!
One of the module I learn about is the functools module.
One of the interesting function that I learn is partial, basically it is partial application of a function
for example
read more here
http://docs.python.org/library/functools.html
So you can wrap a existing without rewriting it, but give some default value to the existing function. And is actually used in python decorators.import functoolsdef adder(a,b,c):return a+b+cdef adder2(a,b):return a+badd_three = functools.partial(adder,1,2)add_one = functools.partial(adder2,1)print add_three(1)# would print 4print add_four(3)# would print 6
read more here
http://docs.python.org/library/functools.html
Saturday, January 29, 2011
Diff'ing and Patching
So I got like a few folders with different version source code, erm text files which I am comparing in my work. Either way, thanks to unix tools like diff and patch, things is some what easier. Though it is better to use version control, which I stupid enough not to
to compare files with diff, it is just a matter of
Since I have a directory, so i would run
If i'm lucky, it is just adding stuff to the text file, i would generate a patch, for that file by
of course sometime thing is not as easy. so it is nice to use to see all the difference with highlighting. which here i use vimdiff. which i use
to compare files with diff, it is just a matter of
diff original newthen my team is creating the file on windows, which have \r\n, and me on linux, which \n. So to avoid this on diff
diff -w original newthis should able to ignore difference in white space character such as \r\n, which may not be a wise choice for python, because of the indentation sensitivity, which I trust my team sane enough not to mix tab and space(yes, for non-python progammer you can all laugh)
Since I have a directory, so i would run
diff -rw original-folder new-folderpipe it to less just for making it readable.
If i'm lucky, it is just adding stuff to the text file, i would generate a patch, for that file by
diff -u original new > original.patchand applying it with
patch original < original.patchin the folder. which i should really use -p1 option in the patch command, but there is a few folder have the same name, so i just put it in that folder and run it without -p1
of course sometime thing is not as easy. so it is nice to use to see all the difference with highlighting. which here i use vimdiff. which i use
vimdiff original newThen I realize that doing all the diff and patch can be a pain in the back. So, a better use the code with version control, what ever reason, or how rush it is.
Wednesday, January 12, 2011
What are the Windows A: and B: drives used for? - Super User
What are the Windows A: and B: drives used for? - Super User
I have expected the time for this to come. But I am not expecting it to coming that fast!!!!!!
Saturday, January 08, 2011
gist: 770894 - Why Steak (over Cucumber)- GitHub
gist: 770894 - Why Steak (over Cucumber)- GitHub
Actually in the current project i am working on, this would be a real issue, the user will describe the wrong type of solution(they insist of doing it their way). And along the way, will change their mind.
Even when we describe how it would work, or they describe what it should work, when we build it, they might change their mind, because they only see it once it is done.
just my 2 cent
Subscribe to:
Posts (Atom)