bitsoflogic
  • Member for 11 years, 2 months
  • Last seen more than a month ago
Acceptable # Lines of Code for Projects to be Presented to Interviewer?
17 votes

It's not the size of the project. It's the quality. Take the time to do it right so that it is worthy of being a portfolio piece. So long as the project is sufficiently large enough to demonstrate ...

View answer
Separation of application logic and domain logic in Clean Architecture
9 votes

You don't need a one-to-one mapping of interactors and entities. I believe such a design would be harmful. DDD is all about context boundaries and the ubiquitous language within those boundaries. ...

View answer
How to define a system class?
4 votes

What's the name of the system? You're looking for something like class PcPartPicker given the website pcpartpicker.com. This would have your main(), startService, or startApi type of method that is ...

View answer
Rerun unit tests affected by change
3 votes

Yes. For JavaScript there is https://wallabyjs.com/ From their homepage: The tool is insanely fast, because it only executes tests affected by your code changes and runs your tests in parallel.

View answer
ORM vs Web API differences
Accepted answer
3 votes

Calling something an API doesn't tell you much about it. It's a very broad category, so very unrelated things will fall into it. But lets take a look at the two you mentioned. Representational ...

View answer
Unit Testing For Different Environments
3 votes

Create unit tests for both! You need to know that it is working code! PHP has a great unit testing tool known as PHPUnit, which offers a few ways of doing this. My recommendation would be to group ...

View answer
PHP Project deployment
3 votes

I would highly recommend implementing a VCS for yourself. Even if you are the only developer, it is a great tool to have. You will be able to deploy code easier, undo mistakes in an instant, and ...

View answer
In domain driven design, is a timestamp a property or a value object?
1 votes

Is a timestamp a value object or a property of one? This is up to you. It can even be both. Value objects can be composed of other value objects. To be clear though, giving a primitive an useful ...

View answer
Multiple classes working on an object
1 votes

There's no "correct" way to handle this. That comes down to the needs of the project. We can comment on the complexity though, which will have an effect on how easy it is to manage the code going ...

View answer
Searching in a repository
1 votes

My preferred version control is Mercurial. There are a lot of options available for searching via a graphical interface however these are the methods I've utilized most heavily. In a terminal, you ...

View answer
What could be my path? Networking, programming, or something else?
1 votes

It sounds like you are not sure what you want to do. It can truly be difficult to figure out as well, since you don't have the experience to know what skill sets different jobs truly require. When I ...

View answer
How do you deal with Knowledge based questions in interviews?
1 votes

I've had this happen to me during a phone interview where I was presented with a question involving a BASH utility I had not used before. I explained that while I had not used it before, I was ...

View answer
How do you remember where in your code you want to continue next time?
1 votes

By far, my favorite way is through TDD. It's quite obvious where you are when your test suite fails. But, not all projects allow for TDD, so I tend to break the code with an uncommented, comment of ...

View answer
What should I call the process of converting an object to a string?
1 votes

It seems to me that you are looking to output not just a string, per se, but rather a blueprint of the object. Something that encapsulates how it behaves and all of its attributes. You stated that ...

View answer
Little value in unit-testing the database component
0 votes

I agree with your thought process here. Integration tests are where you'll see the greatest benefit. The only place I would consider unit tests would be when you are cleaning up data prior to hitting ...

View answer
What's a good Programming Metaphor?
0 votes

Programming is like wielding massive amounts of power. You can make the computer do anything you want it to. You are only limited by your imagination and the amount of time you're willing to invest. ...

View answer
How to make people new to programming stop asking me questions and distracting me?
0 votes

I find the best way to let someone down in a kind way is to explain the situation and provide them with some options. people are constantly distracting me while I'm writing code to ask me to solve ...

View answer