Better HN
topnewbestaskshowjobs
Log inSign up

hakunin

2,515 karma · joined Mar 4, 2010 (16y ago) · 549 submissions

https://max.engineer, mastodon:ruby.social/@maxim, x.com/hakunin, bsky.app/profile/max.engineer

meet.hn/city/43.1009031,-75.2326641/City-of-Utica

---

Submissions

comment 11y ago · link · parent

I'm pretty sure you're responding to the rsync creator.

comment 12y ago · link · parent

Author stated that classes and interfaces seem redundant, not actually redundant. Repeated code could improve maintainability because it may actually have different reasons to change, and only look similar on the surface. I've seen this often missed by inexperienced devs who get overzealous trying to DRY up everything.

513.

Refactoring single page app(perfectionkills.com ↗)

4 points · by hakunin · 12y ago · discuss

514.

6 Practices for Super Smooth Ansible Experience(hakunin.com ↗)

3 points · by hakunin · 12y ago · discuss

comment 12y ago · link · parent

The author should absolutely do what he wants, there is no problem with that, and I don't claim entitlement to anything beyond what I paid for. The only problem I have is with lack of a minimal status update. I don't expect blogs, emails, honestly not even support from the author. Only a tweet "I'm taking a break for now, will continue when feel better." This is what Ryan Bates did with railscasts, and I respect that. Then again, I don't even claim entitlement to this type of tweet, it just would be a decent thing to do. Saying nothing signals abandonment, while "I'm taking time off" signals exactly what it says.

comment 12y ago · link · parent

If it wasn't for movements like these, there would be nothing to adjust to.

comment 12y ago · link · parent

I was able to zoom in and find my apartment building all the way down at Coney Island.

comment 13y ago · link · parent

Seeing notes as files (plain text or whatever they provide). Not sure about attachments, it could be abstracted in various ways. Then there are Skitch files, that have become part of Evernote.

comment 13y ago · link · parent

Is there a list of providers it supports? And I'm wondering if Evernote can be one of those providers (not sure if they even have this type of API).

comment 13y ago · link · parent

It's interesting to consider that everything carries a death count. I wonder if there are stats on how many deaths pillows caused, and plastic bags, toothbrushes, laptops, light bulbs, etc. Would be helpful to keep new inventions in perspective.

comment 13y ago · link · parent

Except there is a difference in that the really awful scenario is already here, and little by little, with big and small efforts, some communities are trying to climb out of it. How is spreading fear of upcoming doom in any way similar to trying to fix the existing, real problem?

comment 13y ago · link · parent

I agree, what you are describing sounds like what I pointed out about bigger companies in the article. They not only can afford this, but they pursue this intentionally.

> It would in my opinion be absurd to create an ecommerce system where the pricing and products require code to be updated. Much better to leverage an existing product or worse case write the logic to allow the users to make changes on their own.

This I disagree with. An e-commerce system that deals with limited number of products (like a printing shop) could easily start with hardcoded base prices, it will be months of growth and rare pricing tweaks in code before this starts becoming an issue (based on my own experience).

comment 13y ago · link · parent

I should've made it clearer, sorry. When referring to CMS in the article, I refer to the wider meaning of a content management system, the code that you write as a developer of your own site, which happens to manage your content. Not a CMS that one could download and install.

524.

CMS Trap(hakunin.com ↗)

252 points · by hakunin · 13y ago · 61 comments

comment 13y ago · link · parent

Right now you treat this as an awkward brush-off. Hopefully, if things go as planned, this will become increasingly treated as low, insensitive sexism, and people who never learn would grow old to be the innocent elderly sexists who simply didn't keep up with the times. Hopefully the fact that right now it seems unwarranted to politely correct someone for saying "guys" in the name of spreading awareness on gender issues will change. And hopefully this hurtful, alienating comeback will not be possible to justify as "brush-off" any longer. It's a work in progress.

comment 13y ago · link · parent

While I don't have much hope for enough public outrage to make a specific change, I still feel that leaks like these change the world. Not by any public actions, rather it plants a seed of accountability in minds of every individual and official involved on every level. It's the probability of unstoppable leaks that will make all of this no longer ok. Such behavior is no longer safely hidden away under the "fog of war". Even if up to this point many didn't get punished for these atrocities, what matters is that in the future they might, increasingly likely. Somehow the anger from this post made me feel almost optimistic.

comment 13y ago · link · parent

Something that worked for me: in January I decided that 2013 will be the year of finishing things. I made a list of everything unfinished, and at this point I'm down 3, with 3rd thing just finished 2 days ago. Feels great.

comment 13y ago · link · parent

Financial field isn't the only one that cares about latency. I'm still waiting for it to become feasible to jam (play music together) remotely. This gives me hope, but the real solution is still far away. Interesting how despite all the tech progress this (deceivingly simple) problem is still unsolved.

comment 14y ago · link · parent

  foo bar baz qux quux
  corge grault garble trucks
  warg fred plugh and xyzzy
  thud clearly i'm not busy

comment 14y ago · link · parent

This discussion has little meaning. Everyone makes a call. Author made a call to express his controversial view, and there is no point in saying that his free expression was thwarted by others' free expressions. Others made a call to respond by teaching the author how wrong he is in many constructive and destructive ways. All of this is meaningless, because controversial opinions are appreciated when they are the right call, and hated when they are the wrong call. It's a coin flip for the most part.

Author complains that people are acting badly, but these people are everything that the world consists of. There is nothing else on the receiving end of his message except these (and other) people. Who else to express your opinion to? I'd assume author knows that. When you add salt into your tea, you don't blame your tastebuds for disliking it. Occasionally, however, you dip bacon into chocolate and your tastebuds go "whoa, awesome". This is the risk of controversial opinion. If you make it, just prepare yourself for the inevitable. There is a reason experiments require goggles.

As a community, we should strive to be calmer and more thoughtful about the way we express ourselves, and try harder to make the right calls. If everyone could do that, however, we probably wouldn't have the sexism problem in the first place.

comment 14y ago · link · parent

I actually love quick-prototyping music in garage band. Dream come true when it comes to bringing music from your head to life in a matter of minutes, well arranged, with nothing but iPad. It's the music sketch book I always craved.

532.

Lemonade Liberation(youtu.be ↗)

3 points · by hakunin · 15y ago · 1 comment

comment 15y ago · link · parent

Don't these methods only work in the presence of an instance of a user as well?

comment 15y ago · link · parent

I'm going to have a bit of fun here. I have known two types of developers. The ones practicing creation magic and the others, specializing in alteration.

When creation mages see a problem, they create a solution. The power of their mind allows them to come up with the exact thing that needs to be created for the given problem. Their creation skills are honed so well that they get incredibly fast. They don't need to look around much since there's no point in paying attention to what they have created before. Their old creations already solved their problems, they work, they don't have to be disturbed again. Of course creation mages are not stupid, they simply tend to focus on a direct path towards a solution. If some mana could be easily saved by using something already created, they certainly wouldn't pass it up. They would reuse what they've already built. There are just way too many things around them, and it's hard to determine if something fits. After all, they have to keep going without delays. A good creation mage has learned to keep things sufficiently neat. They frequently remember things that they could reuse here and there. However, when one observes any such mage at work, one often sees a lot of mess. Some of the mess has occasional patterns, some things are interconnected, but for the most part it's a very complicated and disconnected system of various moving parts working autonomously to solve their individual problems.

Alteration mages work a bit differently. They are often slower than creation mages, especially in the beginning. That's because they spend quite a bit of time studying their surroundings. They take longer to solve a problem. The thing about alteration mages is, they can't handle mess. (They are accustomed to altering, not creating.) There is a certain compulsive quality to their mind, they simply can't relax in the presence of something unnecessary, when something could be altered instead. You'd often see such mage cleaning their workspace leaving it neat and stripped to bare minimum. They don't have many things in their possession, but spend a lot of time learning about potential things out there that they _could_ have if they wanted. Alteration requires deep understanding of systems, something that can never be quite mastered due to such huge variety of abstract models. That's why alteration mages grab onto every opportunity to learn about a new sample system, a way things could be arranged, patterns, frameworks. When a problem arises, they don't simply create a solution, they build a system which naturally causes that solution to occur, along with keeping all the existing problems solved. In other words, if plants don't grow, alteration mages would try to augment their biosphere in a way that achieves harmony, while creationists would simply generate some water.

Both alteration and creation mages gain experience, level up, and become more valueable. However, they learn slightly different skills. Creation mages learn to have high morale, learn to be calm, and treat solutions as black boxes. They learn to trust their own judgement. Alteration mages on the other hand learn a pretty crappy lesson. They learn that most of their decisions turn out to be incorrect. They build out a system and suddenly get attacked with a problem which the system can't accommodate. It happens once in a while, and they struggle to have everything redesigned from scratch. They end up burnt out, because they can't give up their quest for minimalism and elegance. Yet, it's not all that bad.

You see, alteration mages have a very important advantage. They always tend to record their practices and principles. Old and experienced mages would pass on their knowledge to the newbies. The newbies would build upon it to improve elegance of their systems. In essence, an alteration mage is never a lone warrior, they are always standing on the shoulders of the giants that came before them, which is what makes them strong. One of the first things a newbie alteration mage learns is that what they think is right will soon turn out to be wrong. They are too inexperienced to take the multitude of fairly common scenarios into account. At the same time, they quickly learn to be patient. When an elder passes down certain knowledge or framework upon a newbie, it will not be immediately obvious why things have to be the way they are. After some time they finally see that the knowledge of elders has already accounted for so much and in such an elegant manner that they don't need to worry about these problems any longer. They've already been solved by elder alteration mages in the cleanest ways possible, polished by generations of mages that came after them. Some newbies would rebel, against the elders, but only a few lucky ones actually manage to contribute anything useful, albeit this drive of ambition, trial, and error is often what causes major advancements for the whole guild, akin to the evolution process. Eventually, alteration mages manage to outperform their creation colleagues while leaving clean and elegant systems behind. They would sometimes cringe looking at poor creation mages gluing together half-baked solutions to things that are so deeply understood within alteration circles. Their pools of mana are not nearly as deep as of these performant creation wizards, but mana pools are just a small part of their power. Majority of it comes from the knowledge of frameworks. Certainly, if a problem is completely out of ordinary, they may resort to some creation magic, but for the most part you can count on them walking that extra mile towards finding a well-integrated solution.

comment 15y ago · link · parent

Step 1. Sign up for Google Reader. Step 2. Subscribe to lots of stuff. Step 3. http://labs.postrank.com/gr

comment 15y ago · link · parent

Instead of focusing on how (not) useful automated tests are, we need to admit one thing. They are often a daunting time sink, for whichever reason. You can make them habitual, but it's hard to sustainably enjoy writing them. You wish they took less time and gave more benefit. I bet if that was the case, we wouldn't have so many debates on whether tests are needed.

In the recent story about human-powered airplanes they finally came up with the right question: "How can we make the flying machine easy to fix when it crashes?". Imo, here we need to ask the right question as well: How can we minimize the time consumed by test-writing while maximizing their usefullness? Maybe we should drop the practice of 1 assertion per test, or the notion that tests are also documentation. Maybe we should embrace integration tests. Maybe not. Maybe we should strip all the cruft around the point of tests "it helps you think, it documents your code, it leads to better design" and get back to the roots. Tests are there to make sure that critical parts of your code keep working. That's it. It's better that we sustainably write useful occasional tests for critical code than lie to ourselves about how disciplined we are, burn out, and condemn the whole thing.

comment 15y ago · link · parent

There is no need to change it to use jQuery, it's not enforced. If you specifically want to switch over, you can only expect rails helpers to work out of the box.

comment 15y ago · link · parent

My rule of thumb: only buy tech books that primarily contain good practices by experienced devs. Good practices tend to survive longer than APIs, and provide long-term value.

comment 15y ago · link · parent

What he had is an emotional sentiment. What's interesting is why do people old enough to talk about "kids these days" are not wise enough to think back to one generation before them? I think the answer is along the lines of: everyone knows this, but let me just be sentimental for a moment. After all, it's my turn to be old.

comment 15y ago · link · parent

Dawkins nails it, as usual. http://www.ted.com/talks/richard_dawkins_on_militant_atheism...
1
1516171819