` Syfran.com | Coding is an Addiction

Skip to content

By syfran in Articles, Code, Euler, Full Program

Linked Lists, Double Linked Lists, Arrays, Queues, Stacks… the data structures go on and on, but don’t they all do pretty much the same thing? If you’re like me you probably don’t worry about which you use most the time. Just use whatever is convenient at the time, in C-like languages this will usually be an array, in Functional Languages a List (I believe they use linked lists by default).

Usually the defaults are fine, I mean how much difference could it really make? I didn’t think it would be too much, maybe a couple seconds until my recent experience with Project Euler 78.
Continued…

Tags: , ,

The death of the GPL

January 12, 2010
By syfran in Articles, opensource

No guarantees but my prediction is that we are going to see the gradual downfall of the GPL license over the next couple years. For awhile now there has been a trend of developers switching from GPL to less restrictive licenses, often citing the viral nature of the GPL as the reason.

Is it possible to save the GPL? It might be possible to save but the best solution would be to just let it go. The licenses that are better suited will come into it’s place.

The GPL stage of open source is ending and viral licenses are no longer needed to spread open source around. What we need now are licenses to make open source more usable. Some of the ones hat have been floating around have been the “unlicense” which effectively puts the work into public domain and ms-pl.

Is this trouble for the open source community? Absolutely not. It simply shows that it is going into a stable phase where it does not need developers to force adoption through licenses, and open source will be used regardless.

Tags: ,

Java Gotchas

October 8, 2009
By syfran in Articles, Java, Uncategorized

Gotchas are bits of code that do something completely different from what you expected. These bits of code are often hard to catch and identify leaving you debugging for hours on end with no luck. The best way to keep yourself safe is to know them ahead of time. Here are some of the ones I have encountered before. Continued…

Tags: ,

Python base converter

September 6, 2009
By syfran in Code, Snippet

Converts from any base less than or equal to 36 to any other base less than or equal to 36. This is my first python program so it is definitely not amazing, but I don’t think I did too bad.
Continued…

Tags: , , , , ,

How Java passes variables

September 2, 2009
By syfran in Articles, Java, Tutorial

In my opinion one of the most confusing topics that Java has to offer is how it passes its variables. Two people can argue for over a page trying to say the same thing but not realize it until after.
Continued…

Tags: , , ,

By syfran in Articles, Java, Tutorial

The Ternary Operator

The ternary operator is a source of confusion for many beginning programmers. In case you don’t know what the ternary operator is, it looks something like

String message = (isvalid?"Valid":"Invalid");

The ? represents the thought that goes through their head when they see it and they probably won’t get to the : .
Continued…

Tags: , ,

By syfran in Code, Snippet

This code snippet is designed to take in a string an print out every possible permutation of that string. The only problem I’ve encountered so far is that it uses a lot of memory with longer strings.

Continued…

Tags: , ,

By syfran in Full Program

Just uploaded a project I have been hiding away for awhile. My amazing name for it is Productivity Timer.
Continued…

Tags: , ,

By syfran in AI

All right, this is a very rough idea and is going to be far from perfect (and I’m sure someone else has though of it before). The idea is to use a node type system that defines an object based on it’s relationships.
Continued…

By syfran in Articles, Java, Snippet

Not sure what motivated me here but I took a little time and came up with this. It takes the original image file ( can be a multitude of formats, has worked with both jpg and png so far) and outputs a grayscale image (jpeg or png).
Continued…

Tags: , , , ,