News for hackers. Stuff that matters.

timclark

Re:Moby Dick Workout on Sunday July 05, 2026 @06:56AM (#48793098)
I used war and peace to explain to a CEO how wasteful a mobile API was; twelve distinct items of data to display but we sent JSON larger than war and peace.
The D in SOLID is for dependency INVERSION not injection.

Most dependency injection that I see in the wild completely misses this distinction. Inversion can promote good engineering practices, injection can be used to help with the inversion, but you don’t need to use it.

Try flutter - in my experience it is the shortest path from idea to working application.
In my experience this is a superb way to rapidly create bad integrations with AWS.

Some of the simple things will be easy, everything else will be hard.

Also instead of supplying an SDK, Amplify will provide components that can seriously constrain lots of your UI architecture decisions.

For Javascript the old mobile SDK was much more usable.

Almost all of the AWS services have a sensible JSON API, I wish that AWS would just generate sensible SDK bindings for Swift, Javascript and Dart and stop all development on Amplify.

Re:Release of AWS CDKv2 and Construct Hub on Thursday December 02, 2021 @03:27PM (#29422018)
I wish I could upvote this more - if I can’t do it in CloudFormation I won’t use it.
If you don’t know front end development Flutter can get you a very long way very quickly.
Re:The Solid Steel Yarn Winder on Tuesday May 18, 2021 @03:48PM (#27200090)
The plastic and wooden winders make tables wobble as well in my experience.
Re:Google Kills Keep on Friday October 30, 2020 @06:04AM (#24940729)
More accurately - Google migrates chrome application to web application.

'Google Kills Keep' is inaccurate.

Re:Prefer Fakes over Mocks on Wednesday October 14, 2020 @09:08AM (#24776060)
It depends on how you define your 'unit'; a unit can be as large or as small as you require.

But, I'd suggest if you can't test a single class in isolation easily (and you might need fakes/mocks) then the class probably needs redesigning.

X can be a check digit. From memory the check digit is calculated using a modulo 11 calculation.
Re:Ask HN: Suggestions for books about API design? on Saturday September 05, 2020 @12:35PM (#24384830)
A philosophy of software design - John Ousterhout

This has an interesting generic discussion of API design which is technology agnostic.

Re:Science Fiction Books I’ve Read (2018) on Thursday August 20, 2020 @02:12PM (#24226471)
Read shorter books!
Re:Domain-Oriented Microservice Architecture on Saturday July 25, 2020 @08:11AM (#23948600)
I’ve seen one service per database table, and have had architects seriously think that a table equals a bounded context. Then they try to work out how to do two-phase commit across micro services.
Re:Use of Assertions (2014) on Thursday July 23, 2020 @10:14AM (#23927562)
Having worked on multiple systems that have done similar things to this, I'd fall on the side of no!

If you're not really careful the assertions will quickly obscure the actual logic (as does logging), a careless engineer can easily add a bad assertion and fill up your monitoring system, another careless engineer can write a complicated but broken assertion without any tests - they've all happened to me on multiple production systems.

Eiffel style pre and post conditions might be a solution as the assertions are kept away from the main code path in the method signatures - but at that point a modern statically typed language might give you more value (preferably with null safety and sum types).

Re:Breakthrough in inverse Laplace transform procedures on Friday June 19, 2020 @05:07AM (#23572627)
I got taught them in a course on linear systems which was a pre-requisite course to control theory.

Lots of electrical circuits, mechanical systems and electro-mechanical systems can be modelled using laplace transforms if they are linear systems.

I did an electrical and electronic engineering degree and we got to skip the tedious differential equation solving lectures that the mechanical, civil and chemical engineers had to attend because of Monsieur Laplace.

Re:Minimizing Logic Expressions on Friday April 17, 2020 @09:57AM (#22898996)
You can minimise the number of gates but that doesn't minimise the number of transistors as that varies by the type of logical operation performed by the gate.

Practically you probably care more about the number of transistors than the number of gates.

Re:A quiet roadside revolution is boosting wildflowers on Monday March 16, 2020 @06:13AM (#22591404)
My key reading from the article was over-fertility leads to mono-culture, so paradoxically you need to reduce soil fertility to encourage diversity.

Reducing soil fertility probably needs intervention to remove rotting vegetation etc.

I am guessing that at one point in time native plants would have had animals and insects that were eating them and maybe reducing soil fertility.

From memory go fmt will use both tabs and spaces when formatting but it uses tabs for indentation from the left margin and uses spaces for some alignment of variables - so it doesn't introduce any crazy interleaving of tabs and spaces which I like.
Re:Show HN: A Mac Desktop App to Manage S3 and Dynamo on Thursday July 04, 2019 @02:55PM (#20356884)
How do you manage AWS credentials? We use short lived credentials that are stored in the standard file system location and expire frequently, can your application just use these? We gave up exporting permanent credential a long time ago.
This doesn’t seem to offer useful authentication to me like public / private key pair can with JWT. In order to authenticate I will need to know the secret key.
Re:Using the New AWS Secrets Manager for Serverless on Tuesday January 08, 2019 @06:43PM (#18860935)
It has caused us failures as lambdas have scaled up as it is quite easy to hit a rate limit.
Two similar books by Stansislaw Lem would be His Master's Voice and Fiasco.
Re:Testing of Microservices on Wednesday January 24, 2018 @02:59AM (#16221121)
The article linked from here on integrated tests, http://blog.thecodewhisperer.com/permalink/integrated-tests-... is also well worth reading.
Re:How I implemented my own crypto on Thursday August 03, 2017 @03:34AM (#14917666)
How will cryptography libraries ever develop if someone doesn't roll their own?
Adrift on the Sea of Rains by Ian Sales

A Dream of Wessex by Christopher Priest

Domain Driven Design by Eric Evans

Implementing Domain Driven Design by Vaughn Vernon

Clean Code by Robert Martin

I think you will find some code in all of the books but the ideas are applicable almost everywhere.

Re:The Domain-Driven Design Paradox (2016) on Monday January 30, 2017 @09:11AM (#13521268)
All those things that you mentioned are just implementation details that some people use with DDD, you can do DDD with assembly if you wanted to.

Older »