HNHacker News
TopNewBestAskShowJobs

menotyou

204 karma · joined September 22, 2015

submissionscomments
menotyou··on Surprising things about HTTP
(11) HTTP is a highly inefficient protocol and abandoning it would help a lot against global warming
menotyou··on The Beauty of Unix Pipelines (2020)
Yah, I was expecting this comment. I'd agree but I see nowadays to obsession on abstract issues around functional programming like clojures, monads, recursion and code is data and function as first class citizens which might be of theoretical interest, but quite often are only code obfuscating technics.

When you use (progn ....) in lisp or (do ...) or (-> ...) in clojure you are pretty near to what I understand as imperative but you are leaving the orthodoxy of functional programming.

What is relevant is idempotence which is easily achievable in functional programming and in procedural/imperative as long as you don't use global variables.

Idempotence generally not a feature of OOP. (OOP quite often is not even deterministic).

menotyou··on The Beauty of Unix Pipelines (2020)
This should remind us what programming is all about: Take a data set, modify it, present it to the user or write it back to a file or a database.

And we can see why imperative programming is much more simpler than OOP or functional programming.

- That that data!

- Transform the data!

- Take result of transformation and transform further!

- Display the result!

Not:

- Think about an abstraction of the problem

- Define a class which is vaguely near to the problem domain.

- Take the data and press into the object using a constructor.

- Write some methods which fits the object abstraction but not related to the actual problem

- Write a couple of methods to administrate the data inside the object

- Do the same for a second class because after doing the first transformation step you have a different kind of object

- Use a mixin to combine the two classes

- Refactor the code to adhere to Clean Code

- Write a helper class which is actually not an abstraction of anything

- Write test classes to test quality into your code because your codebase became to messy.

- Explain everybody why this approach is superior than just pipelining the data between functions.

- Complain about why the state of the industry is so bad.

menotyou··on We are all confident idiots (2014)
100% agree on this. State of the industry is bad because we put on layers and layers of rubbish to cover up the mess we started with dom and js and later decided we can introduce this pile of junk to everybody by inventing node.
menotyou··on Teach your kids poker, not chess
I'd go for teaching them chess. Much more thing you can learn. The most obvious

- The reward is not always immediate, patience can help you to succeed

- Don't look only on your plans, check your opponents opportunities and threads as well

- When you are behind, there a quite often chances to turn a game around - don't give up

- When you lose, or make a mistake, you can't blame it to bad luck or anyone else

- Analyse your games afterwards - learn from your mistakes

Even for adults the is a awful lot you can learn in chess. Most basic thing, when you took a look on a game in middle play, amateurs mostly look for a small gain from an exchange. More skilled players look at the board and first look at the asymetries of the position and analyse how the can use them in their favor.

Magnus Carlsen really took the game to another level. You see games which look totally even, and 5 turns later where Magnus just reordered two or three pieces to slightly different positions and he manage to get into a winning position - without even exchange a single piece. That's another thing what you can learn from chess: Improve your position by changing small thnings.

menotyou··on OnlyFans creator stalked and had sex with Meta employees to reinstate Instagram
What is actually the utility of Facebook?
menotyou··on Ask HN: What technologies greatly improve the efficiency of development?
Using either functional or imperative languages.
menotyou··on Kremlin arrests FSB chiefs in fallout from Ukraine chaos
This is even better: https://youtu.be/kF9KretXqJw

(In Finish but with english subtitles)

menotyou··on Case against OOP is understated, not overstated (2020)
I need to counter the argument that you can not write complex systems without OOP.

SAPs ERP system is arguably one of the biggest, if not the biggest software system on the planet. It is written in ABAP and ABAP is a procedural/imperative language. SAP is open source and the code is fairly easy to read. Reusability of functions an procedures provided is fairly easy and groundwork for every developer working with SAP to modifiy, enhance functionality or writing add ons.

Or more specifically it was. ABAP got OOP extensions about 10 years ago and since then the code became more and more inflexible and less maintainable for people other than the original authors.

But maybe the main point about ABAP is that despite its procedural nature it allows data centric programming. You take a line of data, transform this line and return the transformed line. No need for abstractions, inheritances and complex design patterns, concerns with mutability etc. Just plain and simple solving domain problems instead of problems caused from abstraction.

menotyou··on Ask HN: Why is software quality always decreasing?
What is succesfully on the market is unstable and unfinished software with long list of features no one needs, nice looking but unergonomic user interface, with a software architecture based on the newest hyped buzzwords and to complex to deliver a stable product.

What users need is a stable (no CD/CI) software which has the function set they need to do their business.

menotyou··on Ask HN: Why is software quality always decreasing?
As a user I disagree. For business software I even disagree more.

What I need is a software which does have the required functionality. What I don't need is a bloatware which has errors in all function.

As a user, I hate CD/CI. After I just get used to the old functionality, suddenly my buttons moved, my function I rely on behaves differently. I have to start to learn again instead doing my productive job.

menotyou··on Ask HN: Why is software quality always decreasing?
Reasons: Overuse of OOP, Devops, CD, Microservices, Java, Javascript, nodejs, github, webserivces etc.

Every of these things bring multiple tools, frameworks, design patterns, convention and standards, which are all hyped for a short time until everything breaks down under the additional layer of unmanagable complexity until the next hyped toolset is introduced promising to solve all underlying problem, but finally adding another next layer of complexity.

Later you can't can find anyone who can maintain codebase developed using a framework hyped five years ago.

Example for large, old, good, maintainable codebase suported by a large number of developers in the world: ABAP (Sorry, no github, no open source. And sorry again: Imperative language).

And the silver medal goes to............................: SQL.

menotyou··on Why general inheritance is flawed and how to finally fix it
I am always astonished/shocked/surprised how many articles are written trying to solve obscure problems/work arounds resulting from using OOP.

How about considering if OOP might be a stupid idea at the first place?

menotyou··on Why NoSQL
I made some further research today because i wonderd myself. I think the number of generated programs is higher then my estimation. I assess that the number of not generated programs are in the ballpark of 500k and the number of transparent database tables around 300k. The rest of the are views defined on the database but not transparent table.

The numbers are smaller than initially given, but still big enough for not being handled with unstructured databases.

menotyou··on Why NoSQL
This is a standard SAP system. I just checked the numbers before I put them down here. SAP has been around since the late 80ies and is open source and very little of the code has been officially retired, so the amount of code and number of tables are monotonically growing for 4 decades. Lot's of redundant programs as well. So the code base is huge and the database is of course not completely normalized.

SAPs program environment comes with a built in editor and a relational database, and that the metadata of every table is stored in the database and the program is not stored on the file system but in the database as well. (Which makes tools like github superflous. When you edit code it gets a lock on the database).

So conveniently in SAP there is a database tables which holds all database tables and another table for all fields. Likewise there is a table for all programs and SAP stores all program lines in another database table. So you just need count the number of entries in these tables.

I am not aware of any generated tables, but maybe are some. Maybe 5%. I'd estimate that maybe half of the programs are actually generated code. Whereas "program" probably is not accurate, some of the programs are modules or function pools which are invoked by other programs.

menotyou··on Why NoSQL
"Everything can be downgraded to NoSQL"

I am just loooking on our ERP system which has around 580k tables, 10M table columns and around 5.6M programs accessing these tables.

For all practical purposes, I really wonder how this should work using unstructured data.

menotyou··on Conterintuitive facts in mathematics, CS, and physics
When I buy potatoes I am interested to buy 10 kg mass of potatoes, not the amount or potatoes of which has a gravity force of 98,1N. On mars you need to eat 10 kg of potatoes a week, not the amount of which has 98,1N gravity force.

The scales in the supermarket on earth automatically convert the weight into mass for my convenience by applying a constant factor of 1/9,81.

I am hardly far away enough from earth that the constant changed, so I did not need to distinguish between the two measures so far. When carrying the potatoes home I just use the mass of 10 kg as a proxy for the force I need.

And to determine the increased breaking distance of my car, I need to know the mass again.

menotyou··on Hacker News RSS
http://www.netvibes.com
menotyou··on Ask HN: What news sources do you use to maintain a broad perspective?
Do you provide a RSS feed for this?
menotyou··on Functional programming is not popular because it is weird (2016)
I personally find object oriented languages highly unintuitive.
menotyou··on The reason you’re not more productive at work? It’s not boredom, it’s bad UX
I studied computer science with a minor in psychology. It's long ago, but at that time I some courses on the topic of ergonomic design of UIs. Shortly speaking every UI which stops the user from be interrupted in is workflow by waiting or searching is a microstressing event. (Interruptions are the most important of all stressors when working). Many microstressing events leads to stress and stress leads to bad productivity.

What can I say? The last 10 years UIs went ergonomically from bad to worse.

Loading time of screens are to long nowadays. While loading and rendering the browser typically keeps on moving screen elements around. Each of this movements interrupts the search for the relevant information for the eyes. Each of these movements enforces the eye movements, search for a new object to focus and accomodate its lenses.

Nowadays it is in many application not uncommon to have several of these movements in one loading of a page.(This problem comes is actually somehow connected that HTML is a sessionsless protocoll in connection with modern JS which makes increases loading times. Using microservices quite often lead to bad UI because of the uneven loading times).

Other problems are coming from opting into gimmicks like using "effects" or to scrolling instead of paging. While scrolling and paging is ok of websites (in most cases), in most business application you want to avoid this because it is coming with the same problems as slow loading and moving elements on the screen.

Another set of problems coming form bad choices from UX designers. Look at the example in [1]

- Wasting of precious screen real estate for white space leads to searching for information you need and again: scrolling, eyes movement, accommodation.

- Lack of optical guides like lines. Try to set all cells to white background in excel and start working then you see the effect.

- Lack of contrast: Dark grey text on light grey background (which MS Office does as well in their settings menu [4])

- For design purposes the chosen fonts are much to small to be readable in a convenient way

- Header and actual data (i.e. relevant information) are indistinguishable.

Finding Information in the "basic data" section in [1],[2] is a hide and seek game for the user. Assume you seeing this display 50 times a day during your work. You are guaranteed to come home with a headache

Another example of bad UI are the tiles in W10 start menu [6]. Instead of allowing the eye to scan the entry from top to bottom in one line, the eyes are forced in zig-zag of the tiles and they have transverse a bigger space on the screen because you have much less tiles on the same space as lines is the old menu structure.

Another example what causes stress and frustration with software is when the UI of one software does behave differently the others. Your software should generally be designed as what the user expects. An example of a bad UI for this case is MS-Outlook [3]. Some of the more often used navigation elements (switching between mail and calendar) are moved left bottom corner. This is against user expectation. Microsoft Outlook moves its navigation elements to somewhere where no one else put them. No one would design a car with gas an break pedals exchanged and putting the gear shift in the trunk. Microsoft Outlook does so with its navigation elements.

Another common problem is that to many screens in your application look to much alike. While it is desirable that the screen designs meets expectation, it is important that the user can spot immediately in which screen he is working. When for

Nested menus / hidden functionality is an typical issue in software as well [5]

Flat design is generally a stressor because is lacking optical help.

Examples of bad UI:

[1] <https://blogs.sap.com/wp-content/uploads/2017/08/Object-Page...>

[2] <https://experience.sap.com/fiori-design-web/wp-content/uploa...>

[3] <https://topbestalternative.com/wp-content/uploads/2020/08/ou...>

[4] <https://storage.googleapis.com/fe-storage/2020/09/85e03ded-e...>

[5] <https://docs.microsoft.com/en-us/azure/devops/test/media/new...>

[6] https://filestore.community.support.microsoft.com/api/images...

[7] Overloaded screens: <https://www.it-telesis.com/wp-content/uploads/Analytics.png>

menotyou··on Back to the Future with RSS
I use http://www.netvibes.com
menotyou··on Data-oriented design or why you might shoot yourself in the foot with OOP (2009)
Me too. Lot's of superfluous concepts called "abstractions" to make simple things complex.

Interestingly all discussions about other paradigms on HN end very fast in "Oh, I can solve this somehow with [put in your favorite design pattern in here]" (Big deal, both paradigms are obviously turing complete). "Design Pattern" was for me always short for "Complex workaround for a problem you would not have if you wouldn't use object oriented paradigm".

But more generally, OOP is for developers whose mental model of the world is categorizing things into object hierarchies. For them it is the most intuitive approach to model the world.

For me this is as counter-intuitive as it can be. My mental model of the world just does not work like that.

menotyou··on Poll: Only 18 Percent of Germans Feel Free to Voice Views in Public (2019)
I don't think it's all political or hate speech problem, but an overboarding political correctness which seems to be everywhere around in these days. The SJW are up to misinterpret everything you said, so everything you say might be end up as being live threatening (in the meaning of your public social live or you lose your job).
menotyou··on The faster you unlearn OOP, the better for you and your software
Even after having a Master's in CS, I never pursued a career in software development but worked as a business consultant in ERP (SAP) implementation. So maybe I am not qualified for an opinion. Before that I programmed a lot in Assembler, and later C, learned and programmed Prolog and LISP, later for side projects I used PHP, Perl or Bash. I occasionally program ABAP for my work.

I really enjoyd LISP. I liked C for it's roughness.

In many ways I believe ABAP is one of the most misunderstood und underestimated language in this list. SAP, which uses ABAP as codebase, is a integrated software system based on >500k database tables, has >5.5 M programs and about 100k "Apps", all within the same system and available on your fingertips. You have dozens of programs working in parallel on the codebase.

In ABAP you have header files, no manifests, no dependencies, no git, no malloc, no gc, no lambdas, no promises, on monads, no clojures and until recently no pointers. Never missed anything of it. The type definitions are stored on the database. You temporal sturctures tables instead of arrays. SQL statements are natively embedded in the language. It supports native rollback an commit functions. The debugger is a dream.

You can understand programming in the most simple way: Processing of data. Development times are short due to the simplicity of the concept.

But the main point is: In spite of it enormous size the system is simple and easily maintainable. Even I as not being a professional programmer have no issue to understand some 30 year old programming code without documentation.

ABAP is procedural.

menotyou··on The faster you unlearn OOP, the better for you and your software
I agree to your point in a way. But for me it is just the opposite, OOP is as counter-intuitive as it can be. My mental model of the world is not categorizing things in the world into object hierarchies. And I always found it absurdly complicated to model anything hierarchies and objects which have attributes and methods. For me OOP code is just obfuscated way of getting things done.

So my take on the OOP debate is that is depended on how you brain works whether you'd consider OOP as being awesome or awful. I for myself hate OOP. I find non OOP Program always more easy to understand, having a better organized code base, and are more easy to handle complex requirements because you can modularize you functions more easily, and by far less boilerplate code.

menotyou··on Behind the design of the fresh new Firefox coming June 1
One killer feature which made me switch from FF to Vivaldi (but AFAIK available in Chrome as well) is the fast changing of profiles.
menotyou··on Humans Will Never Colonize Mars
I don't believe a word. From the Superman comics I definitely know that when you are on a planet with a tenth of gravitation you become extremely strong.

Plus the radiation on the planet will give you superpowers like flying and x-ray view.

menotyou··on Java Is Underhyped
> "Every Java project is also __severely__ underdocumented. That's because even if you write documentation for YOUR code, the framework has books of documentation on ITS specifics, and includes high-level libraries which THEMSELVES have heaps of specific documentation. Climbing the tree until one arrives at actual standard library calls is like climbing into clouds and hoping to see the sun some day."

This weaknes stems from Java being OO. On larger projects you start to have abstractions which tend to be insucfficiently documented or the documentation not being updated with changes. Throw in some helper classes here and there, from a certain point of complexity of the project from an outside perspective the whole thing looks like being obfuscated.

menotyou··on Depends on Every Package in NPM
What is actually the licence of a npm development depending on so many packages? Is the most restrictive licence in the dependecy tree the one which determines the license requirement of my program? Do I have to publish my source code if any of the dependencies is GPL?
← PreviousPage 3 of 4Next →