440 karma · joined Sep 18, 2010 (16y ago) · 251 submissions
https://x1agent.com - AI Dark Factories on K8s | https://hotwired.sh - Desktop agent orchestration | https://treble.build - Figma to Code
comment 12y ago · link · parent
I ask myself things like what kind of technologies or 3rd party libraries I might want to use, what the data model would look like, and how many REST endpoints I would need, and how difficult it would be to find a nice UX abstraction for what I want to build.
This allows me to better evaluate how long it would take to finish and to evaluate the complexity and perhaps pick a better project to tackle in a short amount of time. Most projects that I have started will take between 1-3 months from start to finish (in my spare time).
Before, I was never able to finish anything and I have a project folder that I worked up over the last 8 years that has probably 15 half finished projects that I never got a chance to complete. Heh and lets not talk about all the domains I have bought through the years for ideas that never went anywhere. I suppose I've been practicing idea squatting.
comment 12y ago · link · parent
I did .net for 8 years, and for a long time I used to take on freelance projects. There came a point where I could get the same project done part time in django or rails in 2 weeks that would take me 2 months to write using ASP.NET, nhibernate and an elaborate domain layer with everything split up in two projects.
If you wanted it to take anything less than 2 months then you had to start compromising and using some idiotic ms rolled ado datasets and any self respecting .NET engineer wont stoop that low.
With django or rails, I write clean, pragmatic, domain driven, and test driven code that is best of breed. It does not take 10 years of fiddling with an API to become productive with it - it would take maybe a month once you take the plunge. And for what its worth, I can care less about getting maybe 1/10th of the raw performance that I would get with the CLR because scaling the app layer is the easiest part anyways.
comment 13y ago · link · parent
comment 13y ago · link · parent
Over the years, I have found that python code that people write to solve problems will fall in roughly four categories: a) completely ignorant and inefficient code; b) concise, idiomatic python code with a focus on readability; c) fancy functional code where the author is showing off their FP savvy (peppered with recursion and m/r); and d) raw, boring C-influenced code that looks primitive and boring to read, but is incredibly efficient and algorithmically sound. As much as I used to love going for b), I then prided myself for writing c). But last few years I have realized how under performing c) is for most serious work, so I tend to avoid it and try to strike a balance between d) and b), but preferably the latter. To write code in c) and tell yourself, well the data size will never be so great that the stack will blow, or memory will suffer, is in many ways just like avoiding null checks all together and saying to yourself your data will always have perfect integrity... e.g. any sane person will tell you that you cannot rely on this mindset in the long run.
So, for me at least it comes down to this: to try to pretend that you can write FP code effectively in Python is an exercise in futility. FP is more than writing a map and reduce. If thats your basis of reasoning, yeah I agree take that and run with it - I find m/r to be a neat syntax to use here and there in your program but its really challenging to write a whole program in python that is composed of several chained map / reduce functions to a large extent because things are not oriented around generators by default.. I'm not saying its impossible, just that it goes against the grain. I also argue that recursion and guard expressions (and lazy evaluation) are at the heart of the FP paradigm and if you want to do it right, then its just retarded to sit and do this in Python when there is no tail recursion.. how are you going to appreciate this concept when its so limiting?? If you want to muse yourself and marvel at pretty code, write it like this and have fun with it, but please pick another language if you want to actually ship production code.
And ... so sorry to piss on the parade.
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent
comment 13y ago · link · parent