r/GoodSoftware • • Sep 14 '19

Terry's mistakes

0 Upvotes

https://www.youtube.com/watch?v=ALvssgCcdPQ

I agree with most of what Terry says. Unlike today's programmers, he was not modern scum. But I want to mention where I disagree.

His racist language indicates the first mistake. The real problem here is the assumption that the average white person is okay. This is totally wrong. All members of modern culture are complete scum regardless of race or political leaning. This change in modern culture (from decent to scum) was gradual and Terry (like many racists) failed to recognize it. Terry fails to recognize that all the horrible software that he criticizes isn't the result of some evil segment of society, but is rather the result of modern culture as a whole becoming completely evil.

The other issue is related. That is that his software is basically for entertainment and is not practical. This would be okay if there were a lot of decent people around to enjoy it, but that isn't the case. Decent people are a tiny oppressed minority in a world dominated by modern scum. Instead of entertainment, decent people need practical tools that they can use to get through life. This is why I made Luan completely practical. Luan shares much of Terry's philosophy but it is designed for the practical benefit of decent people.


r/GoodSoftware • • Nov 17 '19

What the fuck

1 Upvotes

All you guys do is hating other people and modern software for some unknown reason. There is nothing good about this subreddit. You need to calm down and get your mental health checked.


r/GoodSoftware • • Sep 07 '19

My clock got reset and all websites stopped working

0 Upvotes

There is something wrong with my computer's clock, and so I depend on internet to keep my time up to date. When my internet went down for a few hours this morning, my clock's time got reset.

When my clock got reset, I was unable to access almost every website. I think it had to do with https, because the only website I was able to access was luan.ws, which is the only website on the internet that does not use https. Just try searching for something on Google - nearly every website uses https. This was frustrating since this meant I couldn't even look up online what command to send in order to synchronize my clock again. Eventually I gave up and had to set my clock manually.

I am sure if I rebuked the maintainers of these websites for this, they would say "There is nothing wrong with my website - the problem is with your clock". This is what modern people do: They design systems that are fragile due to many unnecessary dependencies, and then when their system breaks because something happens to one of the unnecessary dependencies, they point their finger at the dependency.


r/GoodSoftware • • Aug 25 '19

Parsing

0 Upvotes

In computer science, parsing is a big deal. They make it complicated, of course. But it shouldn't be. I developed a new approach to parsing which is implemented here:

https://hg.luan.ws/luan/file/default/src/goodjava/parser/

It is based on a simple stack of integers that are positions in what is effectively recursive descent parsing. I use this idea to compile Luan but also to parse JSON, Lucene queries, HTTP requests, BBCode, CSS, CSV, HTML, and other things. Here is the JSON parser:

https://hg.luan.ws/luan/file/default/src/goodjava/json/JsonParser.java

When I wrote this, it worked on the first run. It is so much simpler than any other JSON parser. I dare you to look for any JSON parser as simple as this one. All my other parsers are similar.

My approach to parsing reflects my anti-modern values. I hate theoretical bullshit and I hate needless complexity. Think deeply about a problem (like parsing) until you see the essence of it. Then write clean simple code to solve the problem.


r/GoodSoftware • • Sep 12 '19

Jave inner classes

1 Upvotes
public class Inner {
	static Object keep;

	void run() {
		keep = new Object() {};
	}

	protected void finalize() throws Throwable {
		System.out.println("finalize");
	}

	public static void main(String[] args) throws Exception {
		new Inner().run();
		System.gc();
		Thread.sleep(1000L);
		System.out.println("done");
	}
}

The Inner instance isn't garbage collected here because all inner classes keep a reference to the outer class. This is horrible, especially for anonymous inner classes that don't user the other class at all. I thought the Java compiler would have the intelligence to detect this for anonymous inner classes and to make them effectively static when it has no reference to the outer class, but no. This can cause serious garbage collection issues.

Of course I don't use most new Java features. But inner classes were released early, so here we begin to see where Java went wrong. Java is supposed be like an object-oriented C with garbage collection. This means that it should be explicit with no magic and no hidden nonsense. Inner classes were the first violation of Java's initial good design, with a hidden reference to the outer class. Not only does this cause garbage collection issues but it also breaks the clone() method. Java should have only added static nested classes. Anonymous "inner" classes should have also been static and should have only had access to outer variables and the outer class during construction. This would force things to be explicit and would eliminate all problems and would have been consistent with what Java was originally meant to be.

Of course as modern culture became depraved, all kinds of insane depraved features were added to Java. For example lambda expressions which are really depraved pseudo-closures implemented like broken anonymous inner classes. Of course I never use such depravity which was designed by and for modern scum. True closures make sense for languages based on this concept like Luan is. True closures work because they only keep references to variables that they really use. But closures don't belong in a language like Java.

In conclusion, don't use inner classes at all. Only use static nested classes. And avoid most new Java features. I will write a full review of Java when I have time, explaining which features are good or bad.


r/GoodSoftware • • Sep 26 '19

Online Payment Processors Suck

1 Upvotes

Online payment processing just means a service that charges credit cards for you. You need this if you are going to sell anything online. I have been using Stripe which is one of the most popular and used to be tolerable. But it is a Silicon Valley company, so of course it only gets worse and worse. Its API gets more complicated and less functional over time. Stripe is no longer usable, so I need alternative.

I have looked at alternatives and they all suck. It is just incredible how such a simple function can be made into an overcomplicated inflexible dysfunctional mess. The current Stripe API is a typical example.

What is really needed? The only tricky part is that you don't want credit card numbers to hit your server in order to avoid government regulation. So a reasonable payment processor just needs 3 calls - one javascript and two server-side. First it should give a you a private key and public key. Then from a web page you should be able to do a javascript call with the credit card info and your public key. This should return a token which you can then pass back to your server. Your server should then be able to call the payment processor's server anytime with this token, your private key, and amount to make a charge. The charge should return a payment ID. The third needed call is just to refund the charge using the payment ID. That's it, there is literally no other function needed. And in fact very few payment processors even offer the flexibility that these 3 simple functions would offer.

Of course nothing like this exists in today's insane world. It's all bloated crap. I will keep looking for a payment processor that is at least tolerable. Please let me know if you know of one. I will probably make another post when I decide what payment processor to use.


r/GoodSoftware • • Sep 10 '19

Chip Readers

0 Upvotes

I hate chip readers because every time I try to buy groceries it always says "Error reading chip", and then I have to carefully reinsert at just the right angle so that the machine is happy. But I often fail too many times and the machine gives up and tells me to use the magnetic strip instead. Wait, I thought these chip readers were for additional security - what's the point if you can just bypass them by inserting them wrong a few times?


r/GoodSoftware • • Aug 30 '19

slf4j breaks log4j

0 Upvotes

I use log4j 1.2's RepositorySelector to return different loggers for different Luan instances. That works fine until I use slf4j. Why? Because slf4j caches loggers as a performance optimization, and this completely breaks using RepositorySelector.

Here's the funny part. log4j and slf4j were both written by the same programmer, Ceki Gülcü. So what happened? Why did he write two related projects that are incompatible with each other? The answer is that slf4j is too complicated. It should only implement a compatible API across logging libraries. It has absolutely no business optimizing performance. Needless complexity always results in bugs. As Knuth said "premature optimization is the root of all evil (or at least most of it) in programming".

So what did I do? First, I stuck with log4j 1.2, not log4j 2 which is an overcomplicated mess. Of course all software only gets worse in evil modern culture. And second, I replaced slf4j with my own implementation which is simple and clean. Problem solved.

Log4j 1.2 really is good software, so I will add it to the list. But log4j 2 and slf4j are modern junk. So I presume that Ceki Gülcü remained in modern culture and followed it to the depths of programming hell. I call on Ceki Gülcü to repent from evil modern culture to save his soul and to save his software.


r/GoodSoftware • • Nov 12 '19

Tabs or spaces?

1 Upvotes

Which is better for indenting code?


r/GoodSoftware • • Apr 15 '20

Luan Dependencies

Thumbnail
software.mikraite.org
1 Upvotes

r/GoodSoftware • • Sep 07 '19

Web browsers?

0 Upvotes

I use Firefox at home and Chrome at work. I haven't tried other browsers recently. Are there better browsers out there?


r/GoodSoftware • • Nov 08 '19

Never upgrade western software

0 Upvotes

Everything only gets worse in modern western culture, so if you upgrade any software from modern culture, the upgraded version will only be worse. I just experienced this with UtraEdit which I had recommended in this sub. I was trying to save some Chinese text as UTF-8 and couldn't figure out how. When I looked at the online documentation, it suggested using a feature that only a newer version has. So I upgraded. The newer version is completely flaky, just the kind of behavior I expect from modern overcomplicated crap. I upgraded from a 2013 version to the latest 2019 version. This again shows the rapid decay of modern culture.

As one example, when I double-click on text it is supposed to select the word. With the new version, sometimes this works and sometimes it doesn't. I contacted their support and they responded:

Thank you for sending this data. Using your settings and sample file, I was able to determine what the key variable seems to be here. If a line is proceeded by tab characters, and part of the line is soft-wrapped, dobule-click to select a word doesn't work. I will notify our developers so that they can correct this in the next update, and we'll be sure to let you know as soon as that is available. I apologize for the inconvenience this issue has caused you.

Obviously overcomplicated crap is the cause. I need to find a new editor. Thankfully this text editor is one of the last modern western software that I use for development, and soon I will be rid of it.


r/GoodSoftware • • Nov 08 '19

Good text editor?

0 Upvotes

Since UltraEdit has gone to hell I need to find a new text editor. I welcome suggestions from those with the sense to hate modern western culture. There is an older post about editors.

I will use my usual procedure to search for good software. I can eliminate 90% of the options easily by checking whether they use Git for source control. Only depraved modern scum would voluntarily use Git, which is the worst source control system ever developed, and so I know that any software whose source is hosted on Git is certainly crap. I will then try the others and I will post here if I find anything good.


r/GoodSoftware • • Sep 14 '19

Java

2 Upvotes

Java 1.0 was release in 1995. It was intended as a better cleaner C++. Java was a clean simple object-oriented language with garbage collection. I started using Java with this version.

Java 1.1 (1997) added reflection which was good. It also added inner classes which were mostly bad as I discussed here.

Java 1.2 (1998) didn't change the language.

Java 1.3 (2000) didn't change the language.

Java 1.4 (2002) added "assert" which is harmless though I don't use it.

Java 1.5 (2004) added many features.

Java 1.5 added generics which is horrible mess. Some solution to generics was needed, but this overcomplicated disaster wasn't the right solution. To be honest, I haven't thought through how this should be done. But even C++'s approach is better than Java generics. My suggestion is to only use generics when it is painless. As soon as some complication arrises, just dump generics instead of struggling to figure things out.

Java 1.5 added annotations. This is harmless and can be ignored. I have played with it but never found a real need for it.

Java 1.5 added autoboxing. I don't like this in theory, but in practice it seems harmless. I use it.

Java 1.5 added enumerations. This isn't too bad but I hardly use it.

Java 1.5 added varargs. This is a good feature.

Java 1.5 added the for each loop. This is a good feature.

Java 1.5 added static imports. This is purely a bad feature. It does nothing but reduce readability and it should never be used.

Java 1.6 (2006) added the compiler API. This is a good feature and I use it to compile Luan.

Java 1.7 (2011) had no significant language changes.

Java 1.8 (2014) added lambda expressions which is a complete horror. I have never used them. They are basically depraved pseudo-closures implemented like broken anonymous inner classes. Besides suffering from all the flaws of inner classes, they are syntactically horrible and unreadable. And they don't conceptually fit in Java at all.

I use Java 1.8. Since then Java has only gotten worse. There is no reason to use later versions. A particularly horrible added feature was local-variable type inference.

In the history of Java's development, we can see the decay of modern culture into total depravity. Java started out as an excellent language, but modern scum have gradually made it worse. But because one can still ignore the depraved features that have been added, I still consider Java to be good software.


r/GoodSoftware • • Apr 12 '20

Apple: It's Good If You Like CRAP

Thumbnail
software.mikraite.org
2 Upvotes

r/GoodSoftware • • Nov 25 '20

This is why you are mentally insane if you support git

Thumbnail
stackoverflow.com
2 Upvotes

r/GoodSoftware • • Mar 13 '20

Luan

Thumbnail
software.mikraite.org
0 Upvotes

r/GoodSoftware • • Mar 13 '20

The Old Testament on Programming

Thumbnail
software.mikraite.org
0 Upvotes

r/GoodSoftware • • Aug 31 '19

Suggested Projects

0 Upvotes

All software produced by modern culture is horrible. But the purpose of this sub is not to complain about this. The purpose is to "find or write good software as an alternative to the horrible software being produced by degenerate modern western culture".

Because most software is maintained by modern scum, it will only get worse over time. If we want to preserve good software, we have to take responsibility for good code. So I urge all good programmers to take at least one small open source project.

I have Luan and a few libraries in Luan. That is enough for me, I can't handle more. I will try to post project suggestions and add them to the sidebar over time. But of course you can make up your own project. Please post about any good software that you plan to work on.


r/GoodSoftware • • Aug 22 '19

Continuous Backup

0 Upvotes

Today I will discuss a real need I have for my work. Luan uses Lucene and has scheduled backups. But now I am working on an online store that takes orders and I can't afford data loss. So I need continuous backup. A quick search shows worthless enterprise garbage. So I need to develop my own. I wrote a spec here:

https://bitbucket.org/frschmidt/luan/src/default/src/luan/backup/

This would be a stand-alone project, not dependent on my other code. Anyone here interested in implementing this?


r/GoodSoftware • • Jun 28 '20

Blasma - proposed social forum

Thumbnail luan.ws
0 Upvotes

r/GoodSoftware • • Jul 31 '20

Is economic decay bottom-up or top-down?

0 Upvotes

I remember watching one of Edward Dutton's videos where he suggests that as the average IQ declines, organizations become incompetent. And hence you see technologies get lost, like people no longer go to the moon, and the Concorde is no longer in operation. The reason he gives for why organizations become incompetent is that as IQ declines the people at the bottom become too incompetent to follow even basic instructions, or screw in a jagged piece correctly.

This is contrary to what I have seen. At work, I very rarely encounter problems that are caused by technician error. But I encounter problems caused by idiotic management decisions all the time.

I will give a real life example of this. At work, there are some configuration files that we edit on shared computers (i.e. multiple people might edit the same files, but at different times). The procedure management wants us to follow is after we are done editing a configuration file, we are supposed to commit configuration files to repositories, and then we push these repositories to a server so that if something happens to the configuration files, we can retrieve the configuration files from the server. Superficially this sounds like a good idea, but in practice this system probably results in more data loss than it saves.

A lot of times the last person does something that breaks the repository, and now it won't let you commit to the repository without running some complicated version control commands. If when trying to troubleshoot this, you run the wrong command, it is very easy to wipe out all uncommitted changes. What I saw happen at work was repositories would get "broken" and people would stop committing to them (and rightfully so) because they did not want to mess with the repositories and risk losing their work.

This ignoring of the stupid procedure worked quite well until recently management wanted us to switch from mercurial to git. They ran a script to autoconvert mercurial repositories to git repositories, but it just did a direct conversion of the repository, and so it completely wiped out all uncommitted changes around the facility. Hundreds of uncommitted changes on hundreds of repositories were wiped out without a trace. Management blamed low level workers for this disaster, saying if all workers had followed procedures and committed changes after every edit, this disaster would not have happened. But the reality is that the easiest way to avoid this mess would have been not to have this stupid "backup" system in the first place.


r/GoodSoftware • • Jul 30 '20

I wasn't able to log into my work email from home because I left my smartphone at work

0 Upvotes

Death to modern culture.


r/GoodSoftware • • Sep 07 '20

Programmer Wanted for Web Development

Thumbnail
mikraite.org
0 Upvotes