Liked: Tutorial | figwheel-main
Learning Clojure could make you a better Java or C# programmer.
When you get into Clojure, you get really good at doing some stuff. Like for example writing small functions that do one thing really well in as little code as possilble, while still being robust. A part of this means that the function itself is made to be used together with other functions.
I think this will make you a better programmer in any langage. Because you kind of learn or get into the act of just writing a lot of small functions that you use all over. Instead of writing the same stuff over and over.
That is the first way where you become a better programmer. The other is about data. Once you get into the idea that data is not something that is changed, it could become something you use a lot in any language to avoid weird bugs. It is a lot easier to write immutable code with Clojure than other languages, because their api have been made to do just that. But you can still do a lot to move in that direction in most good languages (I’m looking at you Python).
Liked: Clojure job at Apple
Liked: Blogging with Emacs org-mode
Just got my invite, can’t wait to really start using the new tags.
This used to be the big security thing everyone safe guarded against back when I was learning how to write code.
The basic idea is that input from a user is used directly to construct a SQL Query, and that can therfore be used to for example drop tables in your database.
I personally think this is a non issue today. Well, I think the issue still exist, but I do not think that it is anything that anyone should be the victim of. Because all programming languages have (or should have) libraries for most SQL databases that take care of this problem.
The way they take care of it is by the way to create the query. You write the query, and where you want to place dynmaic data, then you give it all the variables after that. By doing this you make sure that all the data in the variable are always treated as data and not as a query.
In other words: this should not be a problem as long as you use a good
library, use it in the recommended way. And don’t create the queries in
a dumb was (something like
"select * from table where value”+variable_from_url=
I’ve used this for a few internal automating a few server maintenance tasks.