Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hacker_9
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
211.
▲
by
hacker_9
9y ago
I'm not sure what approach you've described here, but it isn't TDD. In the case of adding new features to existing code, as you are continually running tests you will know straight away which you have broken. At this point yo
212.
▲
by
hacker_9
9y ago
I find a lot of enterprises follow TDD.
213.
▲
by
hacker_9
9y ago
As a counter, in this thread [1] a Rare employee says they follow TDD and it's revolutionised their development process. [1] https://news.ycombinator.com/item?id=14802333
214.
▲
by
hacker_9
9y ago
What you describe is the typical mindset against TDD, it's difficult to explain the benefits, and really you just have to experience them for yourself. Changing your mindset is difficult, I know, why change what works right? My only ti
215.
▲
by
hacker_9
9y ago
How many static classes are your methods using? And what is the problem with injecting this stuff at the top of the class instead? If you plan to write tests, you have to control your dependencies, and DI is the simpliest way to do that.
216.
▲
by
hacker_9
9y ago
I think you missed my point, it's not about the logging framework, its about the fact you don't control an external dependency during testing. Unit tests are meant to be reproducible, meaning they are done under controlled conditi
217.
▲
by
hacker_9
9y ago
People just don't write comments or tests after, that's the problem. If you do then that's fine, but after trying both routes I actually find TDD to feel like less work - not having to wait on large build times and manually n
218.
▲
by
hacker_9
9y ago
Visual tests are more general, and are more akin to putting up barriers on either side of a bowling lane so the bowling ball stays within it's lane (with room to move about still). For example when using Angular, you write 'Page O
219.
▲
by
hacker_9
9y ago
Simply because you can't mock the static dependency, therefore that method is now dependent on the static class and you don't have any control over it. This is problematic - what if at some point later another developer adds a dat
220.
▲
by
hacker_9
9y ago
The difference is night and day - writing tests first means you write 'testable code' from the beginning. Following the red, green, refactor mantra means that for every change to your code, you already have a failed test waiting t
221.
▲
by
hacker_9
9y ago
I think the main selling point for me on TDD was breaking the boring build loop where I would have to wait for the project to compile, the webpage to load, click on all the buttons to get to the bit I'm testing, and then finally see if
222.
▲
by
hacker_9
9y ago
Usually splitting out into interfaces is done in static languages as that's the best type-safe way to do things. It's not a fad, it's been like that since the beginning.
223.
▲
by
hacker_9
9y ago
Do you practise TDD? If you did a lot of this would make more sense to you. TDD is actually quite fun when you get the hang of it (less mental burden as you push all the 'intent' onto the computer).
224.
▲
by
hacker_9
9y ago
The abstraction is consistent though, and familiarity is a good thing when navigating a codebase which has N amount of other devs pushing to it every day. I practise TDD for peace of mind - if I add new functionality to existing code I can
225.
▲
by
hacker_9
9y ago
Structures that can query and adapt their own structure. Reminds me of reflection in a managed language.
226.
▲
by
hacker_9
9y ago
Does this optimise the hierarchy as the environment changes? For example when cooking, I unpackage food as needed, but when it starts to clutter the workspace I make a decision to fit in a 'clean up cycle' while waiting on some ot
227.
▲
by
hacker_9
9y ago
Yeah I agree, the problem applies to most of the entertainment industry. As a result more investment is put into sequels of successful games, artists, TV shows, movies, books etc. Edit: as for crunch times, I expect this is to do with the i
228.
▲
by
hacker_9
9y ago
I'm not going to argue as I see you're trolling, but it takes 2 seconds to sign in and read the reviews. Most good reviews from Projekt Red for example are from full time employees who say they love working there, but then list co
229.
▲
by
hacker_9
9y ago
I'm not lying, read the actual reviews and don't just look at the review score. The good reviews come from people who don't mind working 60 hour weeks, being paid lower salaries, and getting overworked.
230.
▲
by
hacker_9
9y ago
Different hardware setup - that business might have a database that is dealing with millions of other users at the same time too. In which case they need to invest more in their infrastructure.
231.
▲
by
hacker_9
9y ago
This is just capitalism at work; in the game industry there is no guaranteed reward at the end of the development cycle, so you have to keep up the pressure in order to beat out your competitors, and increase your chances of winning. This l
232.
▲
by
hacker_9
9y ago
This mostly all translates to math equations, and with data oriented design a computer can crunch through this stuff extremely quickly. But this kind of stuff is why C++ is still popular - determinism is really important to get consistent p
233.
▲
by
hacker_9
9y ago
This makes the assumption that life is simply about progressing the human species. Progression to what though? One should aim to lead a happy life, of which making things better for the next generation is a byproduct.
234.
▲
by
hacker_9
9y ago
> I have not noticed any urgency regarding the consequences of anti-aging medicine. Because that medicine is usually a hoax of some sort. Saying that, people are living longer and longer, and changes are being made to prepare for that. M
235.
▲
by
hacker_9
9y ago
Should point out that introvert/extrovert are made up terms, and humans don't fit nicely under one label or the other.
236.
▲
by
hacker_9
9y ago
Why would you use Rust over JS for front end work though?
237.
▲
by
hacker_9
9y ago
From the paper: "it uses a single neural network, rather than separate policy and value networks ... it uses a simpler tree search that relies upon this single neural network to evaluate positions and sample moves, without performing
238.
▲
by
hacker_9
9y ago
At least we work within realistic timescales..
239.
▲
by
hacker_9
9y ago
So what if they collect it and share it with foreign governments? Social media is public to begin with, so big deal if they are basically indexing the information. Doesn't stop them moaning it's not enough or preventing bomb attac
240.
▲
by
hacker_9
9y ago
Well this thread is depressing, if you're not wanting to interact with other people for fun then what is the point exactly? No one ever says they wished they did more work on their deathbed.
More ›