Better HN
topnewbestaskshowjobs
Log inSign up

dev360

440 karma · joined Sep 18, 2010 (16y ago) · 251 submissions

AI tinkerer, Python / Typescript dev. Same handle on twitter.

https://x1agent.com - AI Dark Factories on K8s | https://hotwired.sh - Desktop agent orchestration | https://treble.build - Figma to Code

Submissions

comment 12y ago · link · parent

Why should anyone bother with .net if Microsoft can't make a wholehearted commitment to have it run on all platforms?

comment 12y ago · link · parent

What language do you program in?

comment 12y ago · link · parent

Screw Frontpage, it littered your markup when you went into design mode. Hotdog Pro or Coffee Cup Editor was where it was at!

comment 12y ago · link · parent

I find that it's a perfectly fine maxim to follow as long as you don't bleed in concerns that don't belong in the class. To call it rubbish would be unwise.

comment 12y ago · link · parent

I have become better at executing on projects by spending a lot more time thinking through the execution of potential projects instead of actually executing on them.

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

Try to learn vim in earnest and you will never want to even open Visual Studio ever again.

comment 12y ago · link · parent

You ought to look elsewhere so you can realize you dont need to know 309 namespaces and 11,417 types to build a modern website.

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 12y ago · link · parent

Not only that, its a pain in the ass to maintain Microsoft boxes compared to *nix. I dont understand how anybody has patience dealing with guis that just get in your way of getting shit done.

comment 13y ago · link · parent

Yes we switched to it a month ago, which improved it but like you said, we are still having to compact frequently and having the hassle of switching the primary. Cassandra has turned out to be much more performant and easier to maintain for our use case.

comment 13y ago · link · parent

In all fairness, the compaction is a major pain in Mongo. I get a little worked up about this because I cant think of another database that handles compaction this poorly, but feel free to correct me if Im wrong.

comment 13y ago · link · parent

Very inspiring talk! Is it possible to deal with continuous data in those matrices or is it more oriented around discrete values?

comment 13y ago · link · parent

It is very nice and I would agree with you. I had a lot of problems interacting with the IO monads in the beginning though, and the type system in a production environment is a lot more intricate than what most of the literature purports ;).. Other than that it was pretty easy to start writing code without knowing much.

comment 13y ago · link · parent

So I felt really torn with this. I applaud the author for introducing Python devs to FP; I love functional programming. Python was one of the things that opened my eyes to FP with its cute little m/r syntax and for that I'm forever grateful.

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

Have a kid or two and tell me that with a straight face.

comment 13y ago · link · parent

"I spent most of my time on the SmallBusiness forum on Reddit." ... I'm not saying this is the cause for the failure, but imho, this is a terrible place to look for validation because its a breeding ground for people that have tons of opinions but don't really represent your end customer and at the ending of the day, have zero desire to buy your product, they just want to login in and have opinions. Its in a sense, similar to techcrunch.. a club for internal admiration. I see so many people fall for this sort of thing.. I personally just think its unfortunate.

comment 13y ago · link · parent

They have amazing history shows - like Pawn Stars and Larry the cable guy... Swamp people too.

comment 13y ago · link · parent

Another thing that bothers the CRAP out of me is that now I feel like I can't say how I feel with friends because I know government is monitoring me. Its not that I am a terrorist or criminal, but this feels /exactly/ like I'm living in some unfree communist piece of shit country where you cannot speak how you feel without facing scrutiny from informants or stasi style police; UNLESS its in the comfort of your four walls with your close family and friends. This is tyranny, make no mistake about it.

comment 13y ago · link · parent

surely, this child has never heard about heroku.

comment 13y ago · link · parent

Not to mention that it sometimes gets super slow for no apparent reason.. which lead me to turn it off.

comment 13y ago · link · parent

Have you tried writing Haskell in the repl? I would argue that just omitting the types (essentially var:ing everything) would still make a repl very valuable for trying stuff out while you write your code. When I worked at citrix I would debug constantly in ironpython and I would find and fix bugs 5 times faster than my coworkers that would write clunky command line programs.. A repl is a very powerful tool that any nimble dev should take seriously.

comment 13y ago · link · parent

I personally think its typical Microsoft stuff. Too little too late. C# is/was a delight to work with but Microsoft has built themselves into a corner with their platform. They are always 6-7 years behind and misjudge. We had to wait how long to get a decent shell?? Why couldn't they make the damn thing posix compatible?? Or how long we had to wait for a package manager???? I will admit though that if I was still stuck in miserable ms land I would program in f# exclusively. The way it does oop feels like an improvement over traditional languages which is paradoxically bizarre and fascinating at the same time. I don't know but in retrospect leaving .net was the best thing that ever happened to me personally. It broadens your perspective on software dev when you don't constantly constrain yourself to viewing your world through entity framework or nuget or whatever other precious few technologies that run well on windows. That's all.

comment 13y ago · link · parent

If this would have come 7 years ago then maybe I would have been excited.

comment 13y ago · link · parent

Great - I'm happy we got that out of the way. Now the detectives over at 4chan will feel much better.

comment 13y ago · link · parent

Interesting. How do you rebalance your shards in the event that a new server is added to the keyring and your keys shift?

comment 13y ago · link · parent

with (nolock) is amazing. I worked at a very large fortune 500 company where that was the company policy because if you removed nolock, the thread contention would grind the servers to a halt. This also lead to some really interesting bugs, like a 5 million dollar order not flowing through a system because the row wasn't in the result set.

comment 13y ago · link · parent

Use whatever technology you are the most productive in.

comment 13y ago · link · parent

The revolution will not be televised.

comment 13y ago · link · parent

I'm also an ex-C# dev, now doing Python, haven't looked back once.

comment 14y ago · link · parent

I love the look - reminds me of spongebob squarepants.

comment 14y ago · link · parent

If this was done algorithmically, then it would be way cool.
1
56789