HNHacker News
TopNewBestAskShowJobs

yegor256a

447 karma · joined September 28, 2013

submissionscomments
yegor256a··on CSS Framework for Dummies
I had exactly the same frustration with Bootstrap and others. You need to spend a lot of time to learn them and in the end you end up with a lot of changes to their styles anyway. So, what's the point in having them in the first place? :) Anyway, I'd love to see your contribution, if interested.
yegor256a··on Don't Create Objects That End with -ER
Let's discuss one situation at a time. Which one bothers you most? The reader, the iterator, the generator or the list of entries? Give me one practical example of that -ER object and I'll show you how it can be refactored to get rid of this suffix and become more object oriented.
yegor256a··on Don't Create Objects That End with -ER
The idea of object-oriented programming is that you, a client of that reader, should NOT know that it reads from I/O. You should not rely on this information. You get a list of entries. Where they are coming from, either I/O, memory or a user console, is none of your business. It's an internal information of the object that gives them to you.
yegor256a··on Don't Create Objects That End with -ER
I do read your responses :) But most of them (like the one before) doesn't expect my answers. It's just an opinion that contradicts with my article. I read it and I understood it. There are no questions asked, so no answer given.
yegor256a··on Don't Create Objects That End with -ER
How about "PasswordEntries" instead?
yegor256a··on How do you manage the code quality of your projects?
This is what we do: http://www.yegor256.com/2014/08/13/strict-code-quality-contr...
yegor256a··on Getters/Setters. Evil. Period
You're not the first to comment like this (see the comments below the article). I was surprised to see how many people pay too little attention to naming of variables, methods and classes in object-oriented programming. I strongly believe that a wrong name can play a key role in a good design, as well as a bad name can ruin the entire project.
yegor256a··on Why I like XSLT
Totally agree, XSLT is a great instrument and it can/should be used in a browser too, see http://www.yegor256.com/2014/06/25/xml-and-xslt-in-browser.h...
yegor256a··on OOP Alternative to Utility Classes
Yes, I agree, this may become a performance issue, but I strongly believe that a good design is a much more important feature of modern software than its performance (there could be exceptions, of course), see my post about it: http://www.yegor256.com/2014/10/26/hacker-vs-programmer-ment...
yegor256a··on ORM Is an Offensive Anti-Pattern
It sucks when you don't understand it, like any other language/technology :) When you understand SQL, it is a powerful implementation of a relational calculus
yegor256a··on ORM Is an Offensive Anti-Pattern
Even though it sounds interesting, I believe that object-oriented programming has nothing to do with relational calculus. They are two different and very powerful things and they should stay separate, in order to stay powerful. There has to be a thin bridge between them (like JDBC). But again, I strongly believe that they should not affect each other.
yegor256a··on Java Method Logging with AOP and Annotations
Never tried. You can submit a new bug/suggestion to Github, we'll try to find a solution: https://github.com/jcabi/jcabi-aspects
yegor256a··on The Simplest Java SSH Client
jcabi-ssh is a wrapper of jSch :)
yegor256a··on The Simplest Java SSH Client
The main point is that it is easy to use and it is object-oriented
yegor256a··on Hits-of-Code Metric Instead of SLoC
When you start to create that payment module, you can predict its complexity. You have an experience of creating software, including payment modules. You can say that the module will be 1500 SLoC in size. This is what COCOMO prediction mechanism is based on, the SLoC metric.

I'm saying that this metric is wrong. And almost everybody agrees with this.

But HoC metric is perfectly suitable for such a prediction. You can say that this payment module will take 50000 HoC of my effort. And then you track performance based on this number. And you can estimate costs. Just like COCOMO, but using HoC.

yegor256a··on Hits-of-Code Metric Instead of SLoC
You're absolutely right, hits-of-code won't tell us anything about the quality of code, just the amount of effort programmers put into its creation. The code may be complete crap, but hits-of-code will be high. This metric is not an indicator of quality - not at all.

However, if all programmers in the team has similar skills and experience, they will create similar quality (well, on an average). In this case, hits-of-code can be used to predict project budget, schedule, etc.

yegor256a··on Sometimes, it’s just time to go home
am I supposed to cry?
yegor256a··on Our Development Workflow
Totally agree. Testing should be done BEFORE merging, like this article explains: http://www.yegor256.com/2014/07/21/read-only-master-branch.h...
yegor256a··on Gravity Might Explain Why Time Never Runs Backward
I wonder how much tax-payers' dollars they've spent to do this research :)
yegor256a··on Russian Memorial to Steve Jobs Dismantled After Tim Cook Comes Out
Is it a joke?
yegor256a··on Job brokers steal wages and entrap Indian tech workers in US
Do we really need to use so many words to describe so obvious situation?..
yegor256a··on Assembly for XML
Implement it in any other language and send a pull request :) The implementation is very simple, can be done in just a few hours.
yegor256a··on Assembly for XML
Not just difficult, but verbose. XML/DOM manipulations are very verbose, especially in Java. Xembly make them very simple and compact.
yegor256a··on Assembly for XML
Yes, exactly a procedural step back from XSLT. In certain situations (most of them are that) you don't want to bother with XSLT. You just want to add attribute to the node, in a few lines of code.
yegor256a··on #define CTO
would be much more convenient if the article would say in the beginning what it is about...
yegor256a··on Object-Oriented Email Sending Java SDK
It is very "procedural" and difficult to extend. jcabi-email is very "object-oriented" and easy to extend. You can easily replace any part of the library with your own class or a mock
yegor256a··on Continuous Integration is Dead
Well, you can have Gerrit (or something similar), but this won't solve the main problem - your master branch will eventually get broken. Developers will push their because they CAN. Some of the code will pass code reviews and will be merged automatically. But sometimes (very often) they will commit and push directly to master. And you will get your build into "broken" state. And it will stay their for days.
yegor256a··on Why getter and setter methods are evil
The convention of getWeight() is bad because it assumes an existence of setWeight(). And get/set methods turn an object into a holder of data.
yegor256a··on Why getter and setter methods are evil
Thanks for reading :)
yegor256a··on RESTful API and a Web Site in the Same URL
Exactly! I didn't mention that in the article, but, of course, the format of the output depends on the Accept HTTP header. I'm using mostly Java, and JAXB+JAX-RS helps to switch between formats without touching the data.
← PreviousPage 2 of 3Next →