DEV Community

loading...
Jason McCreary profile picture

Jason McCreary

I build things with my hands. The human behind Shift - https://laravelshift.com, master of Git - https://gettinggit.com, and author of "BaseCode" - https://basecodefieldguide.com

All 155 comments

42 Git Questions Answered

Good one. I'll read up more on that and maybe do a follow-u...

42 Git Questions Answered

Absolutely. Some things are definitely easier with the GUI....

42 Git Questions Answered

For sure. Good point, I'll add that as an option.

10 practices for writing readable code

👍🏻

Removing Comments

I don't consider "doc blocks" to be comments. So I wouldn't...

Jekyll to Jigsaw

Indeed, there are dozens of solutions available and as such...

Black Friday Deals

A few I've picked up as well as a few of my own: 40% off ...

A month of clean code

You are absolutely correct. Unfortunately it's an old scree...

10 practices for writing readable code

You're welcome. Be sure to read the full article by Sandi M...

10 practices for writing readable code

Good quote from a good book (Refactoring).

10 practices for writing readable code

I would challenge, "why is the code tricky?"

10 practices for writing readable code

Cool man. Thanks for letting me know.

10 practices for writing readable code

Something that could possibly better represent emptiness. F...

10 practices for writing readable code

Depends. Generally, returning null for objects is common pr...

10 practices for writing readable code

Nice. I'll definitely check it out.

10 practices for writing readable code

Great book. Believe it's on The Reading List. But while the...

10 practices for writing readable code

Pick up a copy of BaseCode for the team!

10 practices for writing readable code

Oh yeah, Go is awesome with the predefined formatting and m...

10 practices for writing readable code

Sounds like a good professor.

A month of clean code

Great. Check out BaseCode for even more practices.

Writing Clean Code

Thanks. Definitely check out BaseCode as it has over 40 suc...

Untangling Nested Code

Glad you found it valuable. More to come from BaseCode. Als...

Untangling Nested Code

Completely agree for simple blocks like the examples. Just ...

Untangling Nested Code

As noted, definitely take a look at the array or collection...

A month of clean code

Sure. Send me the link when you're done.

A month of clean code

I stopped reading your reply after your first point… Clean ...

Writing Clean Code

As noted in other comments, it's not about shorter, it's ab...

Are you a Boy Scout?

Yes, checkout out my "BaseCode" videos.

A month of clean code

Atom with the default theme.

Self Documenting code isn't

Developers often equate clean code to self documenting code...

100 days practicing TDD

It's the color for "refactor" phase. It's not used often, m...

Removing Comments

Agreed, removing comments is not the only step here. It mus...

Removing Comments

Agreed, there is definitely value in widely shared codebase...

Removing Comments

Code is not a "cooking show" where you are guided line by l...

Removing Comments

Agreed, don't go removing comments, or any other boyscoutin...

Practicing YAGNI - Show me the code

Awesome. I didn't know the exact source either. Just always...

Practicing YAGNI - Show me the code

Thanks. I would recommend watching my talk to give you more...

Practicing YAGNI - Show me the code

Thanks. What you describe is more design and architecture....

Practicing YAGNI - Show me the code

YAGNI is really framework agnostic. One might argue you cou...

I'm a Git Master, Ask Me Anything

I suggest showing them how quickly Git and Git services can...

Practicing YAGNI

When everyone on the team practice YAGNI, so much of the n...

Practicing YAGNI

Absolutely.

Practicing YAGNI

Thanks!

Practicing YAGNI

While I understand what you mean, you're still playing the ...

Practicing YAGNI

Ideally, you wouldn't have decided on a design pattern upfr...

When to make a Git Commit

Excellent. I'm glad to hear this was helpful. Definitely ch...

Git - Command line vs GUIs

git branch --sort=-committerdate

Tabs VS Space

Exactly. You're seeing this more and more in modern languag...

Tabs VS Space

We need to make formatting simpler: Adopt a coding style…...

2018 Dev Goals

🤞

2018 Dev Goals

Thanks!

100 days practicing TDD

This is one of those things that's impossible to test and t...

A month of clean code

I see your suggestion. However, it's important to remember ...

When to make a Git Commit

Absolutely include it - the tests are part of the unit of w...

Another month of clean code

That was probably my typo transcribing it. Fixed! Thanks!

A month of clean code

Thanks! Unfortunately, as commented, this is a limitation ...

Another month of clean code

🙏

Another month of clean code

Thanks, man! I have at least 3 more tips planned into the n...

A month of clean code

Yes, I added them to a screenshot of the code for the sake ...

Compensation tips

What? I literally have no idea where you're getting this…

The Debugging Golden Rule

Thanks. I have corrected the typo.

The Debugging Golden Rule

For sure. Such things should be mentioned in a retro or sta...

Writing Clean Code

Fair. Nevertheless, they contradict mine. One of the contri...

Writing Clean Code

Seems like you don't agree with any of the post then…

Writing Clean Code

To your point, do it in a separate commit. Run the formatte...

Writing Clean Code

Agreed about momentum and separate commit. However, most o...

Compensation tips

That can be one of those no-mans-land areas. If one was pr...

Why I leave a job

It's important to remember you enter into a mutual agreemen...

Why I leave a job

Thompson! Great point, my friend.

Why I leave a job

Exactly. Plenty of other things that can patch holes. But o...

I'm a Git Master, Ask Me Anything

Depends. If working on a team, I recommend doing so throug...

Git - Command line vs GUIs

As the author, I'm curious where you read the statement you...

Is testability a reason to change your design?

Is testability a reason to change your design? Yes.

A month of clean code

This is a limitation of dev.to. View my original tweets for...

Git - Command line vs GUIs

What an insightful contribute… Allow me to contribute by re...

A month of clean code

Indeed, I've written about this many times.

A month of clean code

Awesome. Be sure to share back once you write something up!

A month of clean code

To be clear, there is no actual Model/Request coupling. It'...

A month of clean code

For sure! Glad you enjoyed it. Follow me on Twitter to see ...

When to make a Git Commit

That's awesome! Glad it was helpful.

Writing Clean Code

The original code (from Part 1) was a switch statement. Per...

Writing Clean Code (Part 2)

Thanks. Exactly what I hoped for.

Programming by Coincidence (Don't Do It)

Love it. One of my favorite tips from the Pragmatic Program...

Stop aliasing core Git commands

You're right, I don't setup custom key bindings in my IDE. ...

Writing Clean Code (Part 2)

Thank you. I have made this update.

The Proximity Rule

Very good point. Grouping can help you see more easily see ...

Explain git pull --rebase to me like Im five

Take a closer look at git rebase.

Are you a Boy Scout?

It's a conundrum for such named rules. On one hand, I want ...

Writing Clean Code

As noted in the article, I don't believe in only one return...

When to make a Git Commit

You should not change your approach because of one edge cas...

When to make a Git Commit

Break your work up into smaller chunks and commit those as ...

When to make a Git Commit

I rebase before merging my feature branch. This allows me t...

I created @ThePracticalDev and dev.to, ask me anything!

Definitely agree. Was interested in your take and glad to h...

I created @ThePracticalDev and dev.to, ask me anything!

While the ends have justified the means, from a reinvent th...

SMS admin in 8 lines of code

Exactly. I think what's more important than the 8 lines of ...

I'm a Git Master, Ask Me Anything

Have the club split the cost of the Getting Git video serie...

I'm a Git Master, Ask Me Anything

I'm command line all the way, so I couldn't say. In general...

I'm a Git Master, Ask Me Anything

Sounds like you have the basics. Where are you experiencing...

I'm a Git Master, Ask Me Anything

Pretty awesome. Thanks for sharing.

I'm a Git Master, Ask Me Anything

What is the use case for needing to change the date?

How do you make it easier to search through version control for deleted code?

While I think this is an interesting discussion and there a...

I'm a Git Master, Ask Me Anything

If I understand correctly, you use different GitHub users f...

I'm a Git Master, Ask Me Anything

git rebase is likely reserved for feature branches to prepa...

I'm a Git Master, Ask Me Anything

Yes. From the feature branch, you would run git rebase deve...

I'm a Git Master, Ask Me Anything

You could do that. Many forget checkout takes second argum...

I'm a Git Master, Ask Me Anything

reset doesn't sound like the right command for what you des...

I'm a Git Master, Ask Me Anything

It's the modern, popular tool for version control. So assum...

I'm a Git Master, Ask Me Anything

What can you say to convince me I'm wrong? Nothing. Asid...

I'm a Git Master, Ask Me Anything

I'm not sure I understand the first question. As far as th...

I'm a Git Master, Ask Me Anything

True, not much is different. As with anything, it's all ab...

I'm a Git Master, Ask Me Anything

Learn Git from the command line. Be able to create a repo,...

I'm a Git Master, Ask Me Anything

git-extras is pretty cool. I don't have many aliases. Only...

I'm a Git Master, Ask Me Anything

It sounds like your challenge isn't so much learning Git, b...

I'm a Git Master, Ask Me Anything

Looks like there isn't - stackoverflow.com/a/37644574/16499...

I'm a Git Master, Ask Me Anything

I've done this on a few C# projects. From my understanding,...

I'm a Git Master, Ask Me Anything

I suggest creating a Git Style Guide, similar to a Code Sty...

I'm a Git Master, Ask Me Anything

I'd still use GitHub Flow. The rest is a deployment process...

I'm a Git Master, Ask Me Anything

Sounds like you have the basics and are using Git to solve ...

I'm a Git Master, Ask Me Anything

I haven't leveraged Git to manage many binary files. Maybe ...

I'm a Git Master, Ask Me Anything

You misunderstood. Please read the full comment for context...

I'm a Git Master, Ask Me Anything

The reason people shy away from rebase is because it rewrit...

I'm a Git Master, Ask Me Anything

I think if it's a tool that helps you do something more eff...

I'm a Git Master, Ask Me Anything

Commented code is dead code - REMOVE IT! Let Git do its job...

I'm a Git Master, Ask Me Anything

Give them limited access (read only) and setup a code revie...

I'm a Git Master, Ask Me Anything

Often when things go wrong, we resort to deleting our local...

I'm a Git Master, Ask Me Anything

I honestly have not dug through the source code. I find bro...

I'm a Git Master, Ask Me Anything

This really depends on your workflow. For example, if you'r...

I'm a Git Master, Ask Me Anything

Of course I recommend Getting Git. It's a video series I cr...

I'm a Git Master, Ask Me Anything

I want to learn more of the options for log. There are so m...

I'm a Git Master, Ask Me Anything

I think visualizing the tree takes time to master. Once you...

I'm a Git Master, Ask Me Anything

I always start with GitHub Flow. I find this master/feature...

I'm a Git Master, Ask Me Anything

Command line all the way!

I'm a Git Master, Ask Me Anything

I haven't experienced any issues where feature branches inh...

Writing Clean Code

Exactly. Many languages have a built in coding style, such ...

Tweak your Terminal for Git

I don't make commits based on time. Check out When to make ...

Git - Command line vs GUIs

So does git open.

Git - Command line vs GUIs

I like git open better - github.com/paulirish/git-open

Writing Clean Code

I'll explore this in a future post. As a tangent, I never ...

Writing Clean Code

That's interesting you consider it a code smell. I have som...

Writing Clean Code

You're right. I corrected the initial examples. As far as ...

Writing Clean Code

I don't consider a single return with a compound condition re...

You changed the code, you didn't refactor the code.

That's the "gray-area" I want to discuss in my follow up post...

Tweak your Terminal for Git

No fault. Homebrew is a great package manager and definitely ...

Starting an online workshop on Git

Thanks man! Hoping to turn this into an ongoing event. Maybe ...

Git - Command line vs GUIs

You're extrapolating too far. The commands are indeed not the...

Git - Command line vs GUIs

You simply can't work efficiently from the command line. B...

Git - Command line vs GUIs

We might be closer than you think. Your statement of: To un...

Tweak your Terminal for Git

Definitely do so if you're using homebrew. I'm not a fan of h...

The Boy Scout Rule

Nice article. I posted a similar one a few years ago entitled...

Using git bisect

Awesome, glad to hear it. Definitely check out the Getting Gi...

3 Git Commands I Use Every Day

That's another good one. I recommend tacking on the -w option...

Stop aliasing core Git commands

Aliases are a point of customization and as such personal. I ...

Stop aliasing core Git commands

Ha. That's a good way to put it. Thanks for reading the full ...

Stop aliasing core Git commands

git log --oneline is not an alias for a core command. My issu...

A closer look at git rebase

No, the commit dates do not influence a rebase. The base bran...

loading...
Forem Open with the Forem app