HN user

rdfi

319 karma
Posts80
Comments33
View on HN
www.blinkingcaret.com 3y ago

Microservices, but with Benefits

rdfi
2pts0
www.blinkingcaret.com 4y ago

The Power of Native

rdfi
2pts0
www.blinkingcaret.com 5y ago

Two ways you can take advantage of types in JavaScript (without TypeScript)

rdfi
1pts0
www.blinkingcaret.com 6y ago

I created a way to port Windows Apps to Linux

rdfi
2pts0
www.blinkingcaret.com 6y ago

ElectronCGI 1.0 – Cross-Platform GUIs for .NET Core

rdfi
2pts0
www.blinkingcaret.com 6y ago

ElectronCGI – A Solution to Cross-Platform GUIs for .NET Core

rdfi
66pts83
www.blinkingcaret.com 7y ago

Concurrency with No Locks: TPL Dataflow in .Net Core, in Depth (Part 2/2)

rdfi
2pts0
www.blinkingcaret.com 7y ago

TPL Dataflow in .Net Core, in Depth

rdfi
1pts0
www.blinkingcaret.com 7y ago

Create Cross-Platform GUIs Apps with .Net Core and ElectronCGI

rdfi
2pts1
news.ycombinator.com 7y ago

Show HN: ElectronCGI – Cross Platform .Net Core GUIs with Electron

rdfi
4pts2
www.blinkingcaret.com 7y ago

External Login Providers in an Angular Application Served by ASP.NET Core

rdfi
1pts0
www.blinkingcaret.com 7y ago

Software Development as an Emergent System

rdfi
58pts25
www.blinkingcaret.com 8y ago

Secure an ASP.NET Core Web Api Using Cookies

rdfi
2pts0
www.blinkingcaret.com 8y ago

Everyone is watching what you do online. How user tracking with cookies works

rdfi
131pts66
www.blinkingcaret.com 8y ago

Refresh Tokens in ASP.NET Core Web Api

rdfi
1pts0
www.blinkingcaret.com 8y ago

ORM-Less Data Access in .Net Core

rdfi
2pts1
www.blinkingcaret.com 8y ago

Setting Up Entity Framework Core

rdfi
1pts0
www.blinkingcaret.com 8y ago

ASP.NET Core Development in Linux

rdfi
2pts0
www.blinkingcaret.com 8y ago

Logging in .Net Core Console Apps

rdfi
1pts0
www.blinkingcaret.com 8y ago

Angular and ASP.NET Core

rdfi
2pts0
www.blinkingcaret.com 8y ago

Anatomy of an ASP.NET Identity PasswordHash

rdfi
2pts0
www.blinkingcaret.com 8y ago

Things you wanted to know about storing passwords but were afraid to ask

rdfi
1pts0
www.blinkingcaret.com 8y ago

Create Your Own ASP.NET Core Middleware

rdfi
2pts0
www.blinkingcaret.com 8y ago

Secure a Web Api in ASP.NET Core

rdfi
2pts0
www.blinkingcaret.com 8y ago

The Road to Modern JavaScript

rdfi
11pts0
www.blinkingcaret.com 9y ago

Keeping secrets in ASP.NET Core

rdfi
3pts0
anthonysciamanna.com 9y ago

TDD is not a testing practice

rdfi
1pts0
www.blinkingcaret.com 9y ago

ORMs, Lazy Loading and Web Applications

rdfi
1pts0
www.blinkingcaret.com 9y ago

Facebook Login with ASP.NET Core

rdfi
2pts0
www.blinkingcaret.com 9y ago

External Login Providers in ASP.NET Core

rdfi
1pts0

I wonder if you can, under GDPR, request that all your data is deleted and then create a new account. Not allowing you to create a new account could be argued as a violation of GDPR as it would mean that they kept personally identifiable data about you.

I've been using Anki since 2013 (almost 5 years). One really nice thing about Anki is that it has analytics. I currently have 4532 cards and my numbers are 99.18% correct answers for "Learning" (very young) cards, 98.44% for Young cards and 92.52% for Mature cards. No way I would be able to remember over 4000 pieces of information without spaced repetition. I truly believe this is the best learning "hack" there is. I've wrote about my experience here: https://www.blinkingcaret.com/2016/05/04/hack-your-brain-lea...

Healthy lifestyle will do wonders for your memory. Try to keep your stress levels down, eat right and sleep well. Memory can be trained too. Look up Dominic O'Brien or Tony Buzan. Their books are a bit sensationalist, but the techniques work, e.g. you'll quickly be able to memorize a full deck of cards. Don't know if that kind of training will improve all aspects of memory, but it certainly won't hurt

One thing that should also be emphasized is that there is a great number of PhD candidates that never actually finish, in some universities that number is more than half. Many of these, before quitting, teach to help pay tuition and do all sorts of tasks for their department/supervisor that are not related or help them finish their PhD.

[dead] 12 years ago

I'm of the opinion that you should only test public methods (what your class exposes to the outside world, i.e. its contract). Private methods are implementation details and therefore you should be able to change them [effectively changing your implementation, but that should not change how your public methods behave] and rely on the tests you have on your public methods to detect any change in behavior that is not correct.

When you say: "...methods used by a method under test can only be assumed to work if each of those methods has good tests", my opinion is that if that is an issue, than those private methods belong in another class that is a dependency of the class you are testing, and should be tested in the context of that other class.

And that is what I pointed out in the answer, although worded a little differently: "If you use a callback, at the time of the invocation of the asynchronous operation you have to specify how it will be handled, hence the coupling. With promises you can specify how it will be handled later."

Even if you have a PhD it isn't necessarily easily to find a job as a lecturer in an university. Often the criteria for hiring a lecturer is their publication record, and if you leave academia for the industry you probably won't be writing any papers. Without publications getting a lecturer position probably won't happen. This is the case in most European universities that I know. Also, the average time a student takes to complete a PhD, especially if you are planning to work while you do it, is well over 5 years.

I agree that reproducing someone else's experiment won't help you get your PhD closer to completion (because you should be doing your own experiments and publishing no matter what, if you expect to land that lecturing position, i.e. publish or perish).

Reproducibility is one of the main principles of the scientific method (those papers shouldn't even been accepted if they don't contain enough information about how to reproduce the experiments they describe)

If an experiment is so complex that it can be compared to redoing someone else's thesis it can be either that the thesis is very simple or the experiment is so complex that it probably proves nothing.

I'm inclined to agree that it is hard to create an algorithm using tdd (for example Dijkstra's algorithm). But "the example" mentioned in the post is not grounded. It would be nice if someone had a real-world example to back up this claim or else it is very easy to bring up the argument that the author is not applying tdd correcly

A pissing match of who can find the most errors in other people's code is probably a good thing :P It's when it starts being about personal aesthetic preferences without any consequences in terms of code readability/quality that I think it starts to be annoying.

I believe the rule is not necessarily about having a small number of lines (that is just a consequence), it's about the method having one responsibility, only do one thing, and that thing should be understandable just by reading the method's name. The ultimate goal is that the code can almost be read as plain English.

This has the consequence of making the methods smaller since they are narrow in scope.

It's easier to understand a well named method with a few lines of code (and believe me, it's easier to properly name it than a method with a lot of code, since the former is focused in one task and it is easy to come up with a name that describes that task; and the latter, where the method does so many things that there's no way you can name it properly [have you ever found methods with names like DoWork and then 100 lines, I'd say that is a code-smell].