Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
UK-Al05
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
271.
▲
by
UK-Al05
6y ago
Tbh a lot of NoSQL databases don't use foreign key constraints. If you have a SQL system with messaging and eventual consistency you have to turn them off anyway. So in a lot of ways, yes people use databases like they're just per
272.
▲
by
UK-Al05
6y ago
Business Logic is calculating tax, working out price, adding something to a bag, populating an order object with infomation according to some rules. Business logic isn't pulling data from database, how to map an object to a table, or t
273.
▲
by
UK-Al05
6y ago
They just have better than what humans can plan.
274.
▲
by
UK-Al05
6y ago
“open transaction need to be ROLLBACKed” isn't business logic. Business logic should rely on operations being transactional anyway.
275.
▲
by
UK-Al05
6y ago
Don't put business logic in stored procs. They're great for storing complicated queries, but the actual buiness logic? No. Have some stored procs for updating and querying data, then a lightweight abstraction around them in the ap
276.
▲
by
UK-Al05
6y ago
I don't mind very simple stored procs for queries, saving data, and the application just has lightweight abstraction around them. Putting core business logic in stored procs though is a big no no.
277.
▲
by
UK-Al05
6y ago
In most async implementations the final stock check just cancels the order. Which is fairly rare. An eventually consistent implementation is good enough for displaying to the user. The extra complexity of displaying consistent and up to dat
278.
▲
by
UK-Al05
6y ago
Yes at a large ecommerce company with many teams. Each team is able to treat their own microservice as a product, with its own release schedule and roadmap. Decoupled from other teams. If your having to touch multiple services to implement
279.
▲
by
UK-Al05
6y ago
Write integration tests than run against the real thing and the fake one. Test for the relied upon behaviours. It's essentially contract testing. It's great objects that perform external actions.
280.
▲
by
UK-Al05
6y ago
# Implement feature # Whoops fixed issue in feature i just implemented # Add in whitespace # Remove whitespace # Forgot place to add in whitespace # Fix variable name for feature Vs # Implemented feature "x"
281.
▲
by
UK-Al05
6y ago
That's a pretty common way of doing it.
282.
▲
by
UK-Al05
6y ago
This guy just asked how to get into them because he is interested in them. You just replied don't. Have you considered he wants to this regardless of not applying them purely commercially and wants to perform research, or in a novel in
283.
▲
by
UK-Al05
6y ago
Its' not a counter movement, its' in addition to.
284.
▲
by
UK-Al05
6y ago
You can still assert one small thing even with larger tests. Whats the relationship between single field of input and single field of output through multiple objects? Thats the invariant you test. It's also relationship the business is
285.
▲
by
UK-Al05
6y ago
This must be a very old article, in the last 5 - 8 years the best ideas in unit testing has changed. Highly mockist code bases have ended up with their own problems when it comes to change and refactoring. Not read/writing files, dbs e
286.
▲
by
UK-Al05
6y ago
Not only is it legal. It's fairly standard.
287.
▲
by
UK-Al05
6y ago
BDD is just TDD but from business acceptance criteria language. To say TDD doesn't work but BDD does is ridiculous. People have been using TDD like BDD before it was called BDD. Hint: TDD and BDD are acutally the same thing but BDD is
288.
▲
by
UK-Al05
6y ago
Nearly every accountancy firm or management consultant firm you can achieve senior associate within 4 years.
289.
▲
by
UK-Al05
6y ago
Catch up with java? C# .net was always ahead. The advantage java had was the ecosystem.
290.
▲
by
UK-Al05
6y ago
To get anything done fast, and reliably it takes that knowledge to be decent.
291.
▲
by
UK-Al05
6y ago
Learning a language is easy, Learning the idioms, ecosystem, culture of a language to become senior level can take years.
292.
▲
by
UK-Al05
6y ago
It's more about what it doesn't have.
293.
▲
by
UK-Al05
6y ago
Go for backend web services. Go in my mind is a replacement for java/c# Rust is a replacement for c/c++ Do you see that much development for backend web services in C or C++?
294.
▲
by
UK-Al05
6y ago
I think it will be established boutique firms, not acccenture or deloitte.
295.
▲
by
UK-Al05
6y ago
Plently of java,c# and go backend jobs around.
296.
▲
by
UK-Al05
6y ago
I don't really understand his argument against it.
297.
▲
by
UK-Al05
6y ago
We're not talking about user interfaces. It's what the user interface calls.
298.
▲
by
UK-Al05
6y ago
TDD is meant to be done on public interfaces. So TDD is meant to allow you design interfaces from the pov of a consumer of that public interfaces.
299.
▲
by
UK-Al05
6y ago
Unit tests, integration tests were never fully defined that well. They change based on who you talk to. Especially integration tests. Better definition is the small, medium and large tests from Google's testing blog.
300.
▲
by
UK-Al05
6y ago
Mocks allow you test a certain method was called, with certain parameters, and in certain order. That's extreme test implementation coupling. Most don't use those features, but in my experience mocks indicate implementation coupli
More ›