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

What do you think of Play?

comment 12y ago · link · parent

I think there are signs of change. I read somewhere that they are practically giving away the Windows mobile operating system.

comment 12y ago · link · parent

Does anybody know when C++ got templates?

comment 12y ago · link · parent

Sorry if I'm harsh, but I think this is a terrible way to choose a programming language. It is suggesting a one size fits all approach, and I'm kind of disappointed to see a lot of languages thrown out without objective scrutiny.

Also, it could be foolhardy to pick just one for the next 10 years. When all you have is a hammer everything looks like a nail.

It might help to try to think of the specific constraints that you envision running into. How can your technology choice help address those concerns and simplify your stack or speed of development, or ability to hire talent? You should easily come up with over a dozen items that you will want to be able to address with your choice of technology.

comment 12y ago · link · parent

Yes this might be true right now, but take a look at a lot of the tech startups are cropping up - humor yourself and look up a list of the tech ipos the last two years. They are overwhelmingly based on open source technology and they are also displacing or disrupting your traditional 'enterprise' businesses.

Even though C# and .NET has a huge developer following, .NET is losing ground to OSS within the top traffic driving sites. 10 years ago, people would build their MVP in .NET because it was the best technology around, but nowadays I see more people building new businesses and placing their strategic technology bets elsewhere (Java/Python/Ruby or Node).

A lot of these developers don't want to be married to the Windows eco-system, for a variety of reasons. Microsoft cannot continue to thrive on the sole basis of it being the only game in town anymore. So all in all what I'm trying to say is I don't think the long-term prospect is looking great.

comment 12y ago · link · parent

Have you been able to find any of it in the internet archive?

comment 12y ago · link · parent

Maybe you can explain something that puzzles me - why is (1 / 0) * (1 / (1 / 0)) equal to NaN?

Edit: just checked and haskell behaves the same way.

comment 12y ago · link · parent

Sure you can, but the technology of the future is not being built or run on windows stacks. You find it everywhere in the enterprise, yet almost every big new tech company that has come up in the last 10 years all rely primarily on open source technology.

comment 12y ago · link · parent

Yes. Most users of .NET is in the enterprise (as opposed to tech and startups) and Java has positioned itself as the go-to platform for big data analytics and processing.

I think this comes down to clinging to an antiquated product model. A lot of the technologies that are seeing rapid adoption are open source and driven by transparent communities. In some cases companies back them (e.g. cloudera, datastax, 10gen, typesafe).

comment 12y ago · link · parent

I say that a lot and I feel like .NET is loosing relevance. Embracing open source and making Linux a first-class citizen in the eco system would be the only way for .NET to increase adoption or stay technologically relevant, and unfortunately its happening too slow.

comment 12y ago · link · parent

Is this admission that codeplex is dead?

comment 12y ago · link · parent

This has happened to me a lot too. A lot of times there will be tons of politics involved and for whatever reason somebody (a team or project lead) may want to portray 'their' version of the narrative mostly for political reasons.

At one place where I worked there were 4-5 big teams with different technology specializations and for every big project we did, these 4 teams had to have a cut of the project for budgeting purposes.

So no matter if there was a need for it or not, youd have BizTalk, or SAP, or SalesForce or whatever inject themselves into a solution and create a complete mess from an architecture standpoint. Completely idiotic.

comment 12y ago · link · parent

I used to be in 'Enterprise' development and I have noticed that a lot of people I knew who were doing PM work have now jumped onto the Agile bandwagon.

comment 12y ago · link · parent

This was a great read. I find this approach to be the path of least resistance with languages like C#, but for Python or Ruby, I always find myself using a mock framework. That overhead in structure (classes, interfaces etc.) feels like it adds very little in dynamic languages and generally the mock syntax can be quite readable (notably RSpec mocks).

comment 12y ago · link · parent

Crush all opposition, just like Stevie would have done!

196.

Gramofon, a Sonos contender?(businessinsider.com ↗)

1 points · by dev360 · 12y ago · discuss

comment 12y ago · link · parent

Yes, it sounds like its a websocket server. A lot of that stuff is relatively low complexity if you glue everything together with a message queue since they can be made language agnostic very easily.

comment 12y ago · link · parent

This doesn't feel like a genuine analysis of SRP.

The OP asks "but why should a class have one single Reason To Change™?" Answer is in the text - "If a class has more than one responsibility, then the responsibilities become coupled. Changes to one responsibility may impair or inhibit the class’ ability to meet the others. This kind of coupling leads to fragile designs that break in unexpected ways when changed."

The case the OP makes for mixing Business logic and Persistance is really ironic too. In thinking he's arguing \against\ SRP, the poor example he gives actually argues \for\ it. Yes, validation and persistance usually conceptually go together as one responsibility - storing your data. Calculating payroll (see PDF), is a whole different responsibility, better suited for a separate abstraction. So the strawman argument is not really in the PDF.

The book mentions the "Unbalanced" counterpoint already. See: "If, on the other hand, the application is not changing in ways that cause the the two responsibilities to change at differen times, then there is no need to separate them. Indeed, separating them would smell of Needless Complexity. There is a corrolary here. An axis of change is only an axis of change if the changes actually occurr. It is not wise to apply the SRP, or any other principle for that matter, if there is no symptom."

Now for the amazing TLDR of the entire piece, it goes something like this: SRP is not a clear and fundamentally objective design principle, so let me offer another principle huff huff but dont worry its not clear cut (so dont follow it?!)!

This doesn't lead anywhere. Talking to the co-worker more might have been better than adopting a defensive attitude.

The big lesson here is, learn concepts like Cohesion vs Coupling, SRP, design patterns, to give you a common vocabulary, but keep your mind open and try to write code that is well organized and is free of code smells. If anybody has suggestions on how things can be improved, measure their suggestion on its merits. Software development is an excercise in balancing all kinds of different types of concerns - pun intended :). Sit down and list pros and cons between alternative approaches, and let the design that best addresses the problem/constraints at hand win.

And even better, next time, if you want to save yourself some trouble, ask others for their opinions and share your concerns with the code before you even write a line of code. Then nobody will get 'religious' in a code review and it will allow a team to focus on results.

comment 12y ago · link · parent

Interesting - I've had a lot of back and forths with a friend of mine with this.. I'd strum a Gmaj and hed insist its out of tune.

comment 12y ago · link · parent

Or like having an aspbergers stalker?

comment 12y ago · link · parent

Conceptually, theres a lot of stuff thats similar. I found Erlangs syntax to be a little unconventional so it depends on your background.

If you just want to learn a FP language, I'd go with Haskell because you learn a pure FP language that teaches you all the concepts that you will encounter in half-breed languages :) .. people will love me for that comment.

comment 12y ago · link · parent

Reading the Learn you a haskell book and digesting it really slowly was the way to go for me personally. I saw a lot of parallels with things I love in Python and that drew me in.

comment 12y ago · link · parent

Ahhh MAN! This same thing with the bracelet breaking happened to my Fitbit Flex - I'm freaking furious!

comment 12y ago · link · parent

Mocks to me represent a different approach to testing - think London School of Testing vs Classic TDD. With Classic TDD, it can be difficult to test side effects in your code since its more focused on input and output.

comment 12y ago · link · parent

Ah! An un-brainwashing from no other than Rails brainwasher in chief!

Rails has always had this fundamentalist/cult/group-think perspective on almost everything. No wonder they go overboard.

comment 12y ago · link · parent

It feels like nobody is addressing WHY angular uses DI/IoC.. In something like Java or .NET, you use it to a large extent because it separates code nicely and makes it easier to test.

In JS, one big problems is that you want your code to live in different files, and to do this, you either create your own ghetto object namespaces that hold your classes, or use requirejs.

In the case of Angular, they decided to handle this for you, so they provided IoC/DI as a means to accomplish this. They are merely doing this to make up for things that are missing in javascript as a language.

In their defense, it actually works kind of nice compared to the other two approaches imho.

comment 12y ago · link · parent

You shouldn't take offense. If you work on large complicated Java/C# projects, by all means, bake in as many GoF patterns you can muster. Part of what the OP is hinting at is that in a lot of other languages, there is simply no place for these complicated patterns, but yet we see 'Enterprise' developers bringing their bad habits and bloat with them.

comment 12y ago · link · parent

The python drivers never made it safe by default.

comment 12y ago · link · parent

I found it to really suck with horizontal scalability and high performance. We are paying 3k per month for mongo hosting because its such a pain to manage and it performs so poorly at just 150gb of data that we need 3 shards which I find incredibly ridiculous. I would pick postgres tables with JSON fields over mongo any day of the week.

comment 12y ago · link · parent

Most full stack frameworks have a way to create migrations. When the schema changes over time, you just get a mess with mongo, thats just my observation. Its far easier to manage change with db migrations.
1
56789