HNHacker News
TopNewBestAskShowJobs

hackerm0nkey

62 karma · joined September 5, 2018

Java, Microservices, GoLang, Scala, Linux, UNIX, DevOps
submissionscomments
hackerm0nkey··on TablePlus – Modern, Native Tool for Database Management
Interesting, didn't know about SetApp before, thanks.

I wonder how they manage around DRM rights with the individual app publisher?

hackerm0nkey··on TablePlus – Modern, Native Tool for Database Management
> After 1 year, you can continue using TablePlus without any limitations but you can't upgrade to the latest version. If you want to upgrade, you must renew the license, the renewal fee is much cheaper than buying a new one.

This sort of put me off. Personally I am fine with a single user perpetual license for my use case. But as they are claiming it being a young project and likely to have more bugs than your average mature product. Why do you expect me to renew my license to get your updates ? doesn't seem fair.

> TablePlus is a young project, we fix bugs and add new features every day, then put them together in a new update released at the end of week/month.

That week/month could fall a year after the date of my initial purchase :(

hackerm0nkey··on API Practices If You Hate Your Customers
Ooh yeah. If you have ever integrated with Vantiv you will know what all this means. Heavy lifting is on the customer side. What a pain
hackerm0nkey··on An introduction to data processing on the Linux command line
Very useful article. Learned a couple of new things here.

While reading the idea that I know most of this, would that made me a data scientist? Jumped at me.

But then I quickly recovered from that thought that surely knowing some of the tools someone could use for a certain domain does not make you expert at that domain.

Might just be the case of same ingredients, different recipes.

hackerm0nkey··on An introduction to data processing on the Linux command line
Haha. That’s me. Once you go ‘set -o vi’, you can’t go back
hackerm0nkey··on Slack’s new WYSIWYG input box is terrible
yup, got the same reply back as well. Glad that our voice was heard
hackerm0nkey··on How Containers Work: Overlayfs
That's interesting, thanks for (re)sharing
hackerm0nkey··on How Containers Work: Overlayfs
fair enough, thank you :)
hackerm0nkey··on How Containers Work: Overlayfs
Great article and nice style distilling all this into a bite size chunks.

Is it me or just the title is a little bit inaccurate in the sense that there's more to "How containers work?" than overlays, e.g. it made me think that it covers more than it actually does, e.g. cgroups, namespaces, etc...

Anyone knows of a more in depth coverage of containers building block type of article that allows one to build a rudimentary container from scratch to appreciate what goes into building one ?

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
Yes, it's a welcomed side effect of TDD'ing, TDD is more of a design tool. But also I have experimented with writing tests before/after the implementation. Code with tests written first seemed to always be just to the point and get one in the mindset of thinking ahead of your edge cases and pin them down
hackerm0nkey··on Ask HN: Do you write tests before the implementation?
Yes, I understand what you mean. When I face uncertainty, I explore with not so much emphasis on testing. But once I am over with that exploratory phase, I funnel the learning into the TDD process to solidify my implementation and guide my design.

BTW, I rarely work from a well-defined spec these days.

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
> This is a good point. Just like with anything in engineering understanding the process is more important than just following some steps because you think you should.

Music to my ears. We've been all at some point or another being followers to the cargo-cult. But taking a step back and evaluating things from first principles greatly help getting one's self out of being stuck in a rut. At the end of the day, there are no silver bullets. Everything has trade off, just pick whichever is the least worst :)

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
TDD is also a design tool. I agree for newly written code, yes.

Writing a test before fixing a bug reveals the bug and solidify a proof that the fix addresses it adequately. So in this context, it's less about the design (since it's already there) and more about fixing and proving that the fix works.

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
What code won't benefit from unit testing ?

If you don't know what to test, then you don't know what you are implementing. Find what that is, clarify it and pin it down with a test then move on to the implementation to make it happen.

If you don't know what the output is like, then do some exploratory throw-away work to know a little more. Then write the test that you would've written if you knew what the output is like.

tackle your problems one a at a time, not knowing what to test is not a good enough excuse to not test first.

Make it Work - Make it Right - Make it Fast (while still under the protection of your first-written test)

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
exactly, lots of people are missing the point.
hackerm0nkey··on Ask HN: Do you write tests before the implementation?
> It works better on layered architectures, when you can easily just test the business logic independently of the framework/glue code. It has failed me for exploratory work, that's the one scenario where I just prefer to write code and manually test it, since I don't know what I want it to do...yet

Totally with you on this, when I am clueless about the what/how, I throw a bit of exploratory code and test it manually or semi-automated fashion. But once the learning has happened I will use the acquired knowledge to feed a proper TDD cycle to do it properly now that I know a little better.

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
> With the kind of software I mostly write these days, I'm fortunate to be able to incrementally develop my code and test it under real-world conditions or a subset thereof.

What kind of software you write if you don't mind me asking ?and are your "real-world conditions" tests automated ?

> The upside is that I don't have to write "strange" code to accommodate testing.

Can you elaborate more as what you mean by "strange" ?

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
> Do you write tests before the implementation? Absolutely, day in day out. New code and bugs fixing a like. It's the proof that I need to know that whatever code I am doing is an exact fit to the problem it's trying to solve.

> Can you describe the practical benefit? Testing first help me clarify my intentions, then implement a realisation of those intentions through code. Testable code has the side effect of being well modularized, free from hidden dependencies, and SOLID.

And it's also about making sure that whatever code you write, there's a justification for it and a proof that it works, could be seen more like a harness protecting you from writing things that you don't need, YAGNI.

> Do you happen to rewrite the tests completely while doing the implementation? I follow the classic TDD cycle, RED/GREEN/REFACTOR and I can not be any happier.

> When does this approach work for you and when did it fail you? The only exception to the above is exploratory code. I.e. the times where I don't know how to solve a given problem, I like to hack few things together and poke the application and see what happens due to what I have changed.

Having verified and learned more about how to solve that problem, I delete all my code and start afresh but this time TDD the problem/solution equipped with what I have learned from my exploratory cycle.

If you are in doubt or need further information to help you make your own decision about the matter, I can not recommend enough the classic TDD by Example from Kent Beck as a starting point.

For a more real-world view with an eye on the benefits of adopting TDD, have a look at Growing Object Oriented Software Guided by Tests, aka the Goose book.

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
yeah, that's the problem. If they don't get the value of what a test gives them, and then the focus shifts to aesthetics and conventions, etc...

Personally when I review code, I look for the test, I need to find a way to tell me why that code exists and a proof that it works.

hackerm0nkey··on Ask HN: Do you write tests before the implementation?
tests can be used to clarify your intentions and what you are attempting to build. It's best place when you are actually starting from a clean slate.

Just write enough code to make the test pass, no more no less. Refactor and repeat.

In recent years I've never written any new piece of code without test first and can not be any happier. Beside the confidence a test gives you, it really a great way to pin down your thoughts and write what makes them meterialize.

hackerm0nkey··on Ask HN: What is your experience installing/using Linux on a Mac machine?
I have never done that in the past and entertaining the idea of resurrecting older macs I have and install a Linux distro on them.

I was concerned that I might run into driver issues and such and thought to see what others have experienced in this as I have seen mixed things doing a basic Google search.

hackerm0nkey··on A developer goes to a DevOps conference
I’ve started my career very early on on the age of 16 as a system admin. Heart and soul was on pure engineering and less on what people label these things on CVs.

A few years later I moved up the stack into a full time programmer and been doing that ever since 20 years down the line.

I have built systems from the ground up literally, loading the van with the equipment, installing the racks, the servers, the EMC’s ...

Having seen it from all perspectives, sys admin, DBA, Ops and all it’s variants and a programmer. I’d like to think of my self as an engineer who solve problems or build things to solve problems.

The tools that you use does not define you. I have seen and still seeing loads of people Devs who don’t understand or willing to understand how ops work Or how the crap they produce runs and get maintained.

And ops who write hacky code in the name of infra as code.

I wish we can just be Engineers and stop labelling and define people by the tools they use. Things will be better IMO

hackerm0nkey··on Microsoft has removed the “use offline account” option when installing Windows
What puzzles me is that with al these problems and the ongoing worsening of Ms Windows, people are still using it. I just don’t get it ️
hackerm0nkey··on The C4 model for visualising software architecture
On of the tools that are built to combine the excellent PlatUML and the C4 model and achieve diagrams as code is https://github.com/RicardoNiepel/C4-PlantUML

Definitely adding this to my toolbox <insert happy nerd laugh>

hackerm0nkey··on The C4 model for visualising software architecture
The C4 model doesn't seem to mandate any particular notation, it's merely lines and boxes and you can use whatever notation you prefer.

"The C4 model doesn't prescribe any particular notation. A simple notation that works well on whiteboards, paper, sticky notes, index cards and a variety of diagraming tools is as follows."

Curious to know what makes you think it's too complex? What am I missing?

hackerm0nkey··on Real problems with functional languages
Misleading post. Bait and switch in action. The important part of the title is in small script. Probably I wouldn’t have clicked on it otherwise ️
hackerm0nkey··on Work in Lithuania
Maybe get a remote job for the US and live in Lithuania. Win Win.
hackerm0nkey··on Work in Lithuania
And then one can live anywhere they please :)
hackerm0nkey··on Ask HN: How do you keep track of the interesting things you find on HN?
found it, luckily I had parked a web page that linked to it https://getpolarized.io/
hackerm0nkey··on Ask HN: How do you keep track of the interesting things you find on HN?
but shouldn't you? At this very moment I vaguely remembered that I came across an offline reader of web pages, but for the life of me I can't remember where I found that ¯\_(ツ)_/¯
← PreviousPage 2 of 3Next →