Snippets for productivity - collect good code [closed] - code-snippets

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I was wondering whether there're recommendable sites, that host collections of good and useful code-snippets.
Searching stackoverflow, to be honest, sometimes is priceless.
- But if you know sites like commandlinefu (just for Shell stuff), you may also want something like that for Ruby, Java, Python or C#. There're some small collections, of course. Very often these are specific sites dedicated to be just funny or "wicked cool" (the book series).
I'm just looking for practical stuff to learn from other people's experiences. The standard stuff. Not funny, not wicked. Just pragmatic and workflow-oriented. It seems no one wants to share that.
If you're simply googeling the web and put everything into a growing list of files, there's no overview. So that's not the workflow either, isn't it?

Not really snippets. But quite useful, http://github.com
With many languages, there is http://snippets.dzone.com/
Still with many languages, there is http://codesnippets.joyent.com/
For Django, there is http://www.djangosnippets.org/
After, there's a lot of blogs all other the web giving advices and snippets.

Some others:
Snipplr
RefactorMyCode

Codeproject and codeguru have lots of code snippets which are useful

Related

is there any book for aps.net MVC Social Networking Website? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am new to Asp.net MVC, i want to study social networking websites. so is there any good tutorial or book.i have read http://www.codeproject.com/Articles/332173/Parichay but its not enough for a new learner like me.
Thanks
First of all, I don't know of any good material for you to read, it seems a bit too specific. But I do have some advice that might get you started.
Since you are new to asp.net MVC and your goal is to create some sort of social networking website, I would recommend just starting to code. Just start small with what you already know. Like; you need to authenticate the users, they need a profile and a way to edit it, they will be posting some sort of status updates and so on. This kind of try and fail iteration approach will give you so much more in terms of knowledge, experience and insight both to asp.net MVC and to how social networking works in general.
I'm not saying tutorials are bad, but I think a balanced combination is the best. So taking pieces from different tutorials on http://www.asp.net/mvc/tutorials or other places in order to get authentication and profile editing working i.e.
Hope this is somewhat helpful to you even though I could not directly help you with your question.

Looking for an intermediate to advanced Rails 3 book recommendation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm a seasoned Symfony 1.4 developer with a good handle on Symfony 2.0, so I'm a bit beyond the basics of frameworks.
I've recently built a solution with Rails 3 and would like to pick up a book to read up on how I could have done some things better.
I'm mostly using Rails as a database layer with very minimal in the ways of ERb. Some topics I'd hope to see covered in advanced detail are:
JSON
Ideas and opinions on how to serve rich internet applications
Good ActiveRecord usage and planning
Writing models and keeping implementation out of controllers
In general, conventions on controllers and actions
There are likely many subjects I'd like to hear about however I'm not interested in focusing too strongly on testing quite yet.
Haven't read this book, but it seems really good Ruby Science
After spending a bit of time with some of the books from the comments above, it looks like Rails Antipatterns is still quite worthwhile.

In search of an easy parser generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I need a simple parser generator. The language does not matter. It only has to be easy and well documented.
Have you looked at ANTLR?
I found SableCC for Java pretty easy to use, back in the days of my compiler construction classes. A tutorial is here.
Edit: Those days were a few years back. Looking at the other answers, you might be better off with ANTLR. I'll let the votes decide!
You're definitely going to want to take a look at ANTLR. It's not only well-documented but is considered one of the de-facto utilities for language designers.
If you want to work in Visual Studio and possibly use C#, look at MPPG from Microsoft, part of the Managed Language Services SDK.
http://msdn.microsoft.com/en-us/library/bb165963(VS.80).aspx
I'm fond of bison, also known as yacc. It's not terribly hard, but it requires knowing C.
If you are more a Perl person, Parse::RecDescent is not difficult either.

Programming methodology diagram? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
There are a lot of programing languages these days. Fine. Not interesting for this question.
There are quite a few programming methodologies, like modular programming, Object Oriented, Agile, etc. Now, is there somewhere a good diagram on the Internet that shows how these methodologies are related to one another? Preferably something with a timeline showing when the methodology started to appear?
(Thus, not the programming languages but the methodologies...)
you can find one here for programming languages. this one looks at paradigms
and here is a timeline of developement methodologies:
Structured Programming, Object Oriented Design, Functional programming - all of these are the way code can be written.
WaterFall, Agile - is the process by which development can be done. Development is not the only thing when it comes to software development. Programming is one of the mandatory component of the process. The process can have design/testing/refactoring/maintenance.
And both of the above are complementary to each other (i.e. one can do structured programming and be modular and use some of the agile principles).
I don't know as to when it started (and I guess it should not matter).
You might come up with your own style of process, which can work better in your own scenario.
EDIT: In summary, people started with structured programming, used it very well. It had its own limitations & things became object oriented. OO has its own limitations, as some gurus say and they see functional programming as the way to fix it.
It all depends on what suits your scenario & what serves you better.
There is no silver bullet, as experts say.

What's the best forum resource for Ruby on Rails? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
In the past I've used RailsForum.com as a resource, but lately I've come across far too much spam and not enough useful posting. Certainly just my perspective.
So, what do you Rails developers use as a forum resource for the platform?
Use stackoverflow. I've stopped using all the email lists and forums I used to need. This site has reached critical mass so unless your dealing with some really obscure technology I find I get answers quicker here then anywhere else.
The official Ruby On Rails Talk mailing list is a good spot for discussion. I also tend to go to #rubyonrails irc channel on irc.freenode.net with my questions. There tend to be lots of helpful folks there.
I've never had a problem with railsforum.com, but I tend to just google keywords for any questions I have. There is a lot of online Rails documentation, and this system tends to produce decent results.
Also, consider browsing the Rails api when you have issues. I've found that there's a lot more data there that I'm aware of, and many of my problems are solved before they even develop when I do this frequently.

Resources