domnikl

- friends
174 link karma
46 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Verified Email

Why do web sites and software take so long to build? And why is it so hard? by swizecin programming

[–]domnikl 0 points1 point ago

It's not that hard. And nobody builts anything "by hand". The rule is if you're doing the same things over and over again you have to automate it so you can concentrate on the new and interesting stuff. Also there are hundreds of thousands of frameworks out there that help you to prevent from doing the same things over and over again.

The goal of every developer should be to learn and solve the "same" problem in a better every time, most of the time the problems are just similar not the same!

I am new to Erlang, can you please give me some feedback on my statsd client? by domniklin erlang

[–]domnikl[S] 0 points1 point ago

Thanks for this, looks like I can learn much of this implementation :)

Why Erlang? by notadutchboyin programming

[–]domnikl 4 points5 points ago

I recently did some learning on Erlang, but shortly gave it up because of it's weird syntax and I had no idea what to work on. But I love such use cases and there's so few about Erlang out there, so thanks for this great article! Would love to dig deeper into this language soon!

a statsd client written in PHP by domniklin PHP

[–]domnikl[S] 1 point2 points ago

Thanks for your feedback and your helpful suggestions! I refactored the class and now there's a Connection class (in a new \Domnikl\Statsd namespace) and I wrote unit tests for both classes. :)

HowTo: PHP Working with MySQL Databases by ionphotoin programming

[–]domnikl 0 points1 point ago

You can't expect SQLite and MySQL to behave the same, they just share a basic part of SQL anyway. In fact it's impossible to switch the underlying database system without adding an extra layer, may that be PDO or any other library ...

HowTo: PHP Working with MySQL Databases by ionphotoin programming

[–]domnikl 4 points5 points ago

Please stop using and teaching about the mysql extension! Better use (and teach) PDO with the MySQL adapter. It has a OO interface and helps you write more secure queries by automatically escaping query params and has a generic interface for all types of (relational) databases!

How I finally got over the hump and contributed to open source by aregularcontributorin programming

[–]domnikl 2 points3 points ago

I also made the exakt same experience (but with another project of course) about half a year ago and now I am working here and there on projects mostly on github, started two small Ruby projects and I got some nice feedback about it and already a few pull requests that I merged in. To find something I needed and I wanted to work on was also a long step for me. Nice post!

Developing a daemon in PHP by domniklin PHP

[–]domnikl[S] 2 points3 points ago

Just think of using pub-sub with rabbitmq, the subscriber could be a daemon. And yes, Java, Scala, Node, Ruby whatever may be better, but in the end not everyone can write code in these languages and most of the time you have to choose what all the members of the team are able to read and write.

Developing a daemon in PHP by domniklin PHP

[–]domnikl[S] 5 points6 points ago

I knew that these kinds of comments would appear here. And I know that PHP wasn't designed to run daemons as well, but why should it be a bad idea to use daemons written in PHP for small tasks? I didn't write "go ahead and implement a preforking web server that replaces Apache or nginx or whatever". It's meant to be a teaching example! That's the part of the PHP community (or just the haters?) that I don't like, you just say don't do it, but how should this language ever move forward if everyone just says "yeah it's there but don't even consider to use it"??

What are some good topics to write about in a programming blog? by rogue_coderin PHP

[–]domnikl 1 point2 points ago

You should write about the things that you're interested in, if you don't know what that is, start playing around with new tech stuff, i.e. PHP 5.4 features, Symfony2, ZF2, CouchDB or MongoDB, dependency injection, features from the SPL, Redis, Memcache, maybe you're interested in Algorithms? There's so much fun stuff out there, just try some of it and you'll find something that interests you and you want to write about in your blog :)

I know Ruby syntax; what next? by _lancelotin ruby

[–]domnikl 2 points3 points ago

There definitely is a Ruby way! Have a look at the Ruby Best Practices Book http://majesticseacreature.com/rbp-book/pdfs/rbp_1-0.pdf, it has tons of examples that will lead you to the "Ruby way". I think the owner has dropped all his rights on it, so it's available for free.

zsh – a bash alternative that’s easily customizable with oh-my-zsh by domniklin programming

[–]domnikl[S] 4 points5 points ago

Thanks for this! I added a link to my article and already switched it on my machine.

zsh – a bash alternative that’s easily customizable with oh-my-zsh by domniklin programming

[–]domnikl[S] 19 points20 points ago

Of course you can, tmux and screen are independent of the shell you want to use.

My First Ruby Project - A GitHub Flavored Markdown API by symkatin ruby

[–]domnikl 1 point2 points ago

I'll suggest you use Sinatra for this, it supports Rack and it's lightweight and very easy to get started with. Also many Ruby devs follow the rule that one file contains only one single class. Makes it easier if your project grows and you need more classes. MarkdownHandler::process is a very long method, you should consider breaking it into small methods, that are reusable. If you start unit testing your app, this change would be very useful, then you can test each method independently.

messie – a web crawler written in Ruby by domniklin ruby

[–]domnikl[S] 0 points1 point ago

No, haven't that by now, but as I can see WSOC tests a lot of things that messie doesn't support right now, e.g. Cookie handling, HTTP Basic Auth. Messie leaves a lot to the user. For instance, it only gets you one page and then you can get a list of links on that page and decide if you want to crawl that too or not. Spidr does such things automatically (depending on configuration).

messie – a web crawler written in Ruby by domniklin ruby

[–]domnikl[S] 0 points1 point ago

Messie is a very young project, Mechanize has been around for a while, so it definitely is a lot more mature. But I don't intend to copy Mechanize, it can do a lot of things that I don't want to support with messie, e.g. handling of cookies and submitting forms. Messie is just intended to download pages, not to completely automate things.

view more: next