News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Sameer Borate:
Sentiment Analysis of Twitter feeds
September 30, 2014 @ 10:07:35

Sameer Borate continues on his theme of Twitter-related development (part one is here) with his latest post showing how to do sentiment analysis of Twitter feeds. His "sentiment analysis" analyzes a string to determine if it's generally negative or positive based on the AFINN word dataset.

In the last post we looked into accessing Twitter API v1.1 from PHP. In this post we will see how we can add sentiment analysis for the tweets. Generally speaking, sentiment analysis aims to determine the attitude of a writer with respect to some topic. A basic task in sentiment analysis is classifying the polarity of a given text, whether the expressed opinion in a sentence is positive, negative, or neutral. In this post we will use a simple sentiment analysis library to analyze the sentiment of tweets.

His example uses the viracore/caroline library to do the actual analysis. He shows how to install it via Composer and how to make a sample checker, returning the score and the comparative ranking. With that working, he shows how to integrate it into the Twitter connection originally created in the first post, extracting tweets from his own timeline and returning their scores.

0 comments voice your opinion now!
tutorial twitter sentiment positive negative afinn api oauth

Link: http://www.codediesel.com/social/sentiment-analysis-of-twitter-feeds/

Inviqa techPortal:
"Your code sucks" - Tips on giving feedback
July 25, 2014 @ 12:15:21

If you're a part of a development team anywhere, chances are at one point or another you've asked for someone else to take a look at your code and give their opinions. Maybe it was you looking over a coworker's latest addition and it was...somewhat lacking. How can you say it in a constructive and nice way? The Inviqa techPortal has some suggestions.

Feedback on performance matters. It not only maintains quality, refines and hones performance, but it can also improve morale and trust, and build relationships. It can stop minor problems from escalating into major capability issues. It's something that every people manager or team leader should be doing as standard, and yet it's so hard to get right. For some people, giving good feedback is easy. [...] Delivering negative feedback can be a tricky process so how do you give negative feedback, or (as the much hackneyed phrase would have it) "constructive" feedback?

The post includes a list of six things to think about as you provide feedback to other developers (and even as a manager to your employees). The list suggests things like making it timely, listening to their side of things and setting a plan for resolving the issue.

0 comments voice your opinion now!
feedback tips code positive negative

Link: http://techportal.inviqa.com/2014/07/23/your-code-sucks-tips-on-giving-feedback-2/

Reddit.com:
An interesting negative take on Dependency Injection
July 23, 2012 @ 10:06:03

In this recent post to Reddit.com there's some commentary about an older article sharing a negative spin on dependency injection and how it could cause more trouble that it's worth.

The attitude of these pattern junkies doesn't work with me. *I* will decide whether or not I will use a particular design pattern, and *I* will decide how I implement it. This usually means that I don't use design patterns at all, and those that I do use are implemented in my own unique way. Because of this I am widely regarded as a maverick, a heretic and an outcast by those who consider themselves to be "proper" OO programmers.

Comments in the Reddit post talk about DI not being a "silver bullet", how it "empowers polymorphism" and how design patterns should not be done for the same of using design patterns

0 comments voice your opinion now!
dependency injection di negative opinion


Michael Babker's Blog:
The Death of Joomla! - Negative Attitudes & Closed Minded Leadership
August 19, 2010 @ 13:20:49

Michael Babker has a new post to his blog talking about how recent opinions might be the death of Joomla! and how, unless things change, it could take its toll on the project.

It's quite obvious that the state of Joomla! is not one of stability, as evidenced by recent threads on the Joomla! Bug Squad. Threads such as Help in admin menu, Thanks but no thanks, and The purpose and tone of the bug squad list all demonstrate that there is a severe rift between the leadership and the community, and within members of the community as well. Simply put, now is not the time for the Joomla! community, especially the volunteers of the Joomla! Bug Squad, to fall apart.

In his opinion, the Joomla community can't continue to function like this without causing the project to collapse under itself. Pushing away the new developers just wanting to help and putting egos ahead of good contributions only hurts things.

The Joomla! Project CAN NOT go on in this state. Chasing away the volunteers will not do anything productive. Putting your own ego before the collective Joomla! ego will not do anything productive. Not having an open mind will not do anything productive. And being overly offended by the use of a certain term by a non-English speaker certainly will not do anything productive. Change needs to happen.
3 comments voice your opinion now!
joomla leadership negative attitude opinion cms


Emran Hasan's Blog:
Beware of the so called "Senior PHP Developers"
August 18, 2008 @ 07:55:09

Emran Hasan has a recommendation for those looking to hire on a "senior PHP developer" - beware.

With the rise of PHP developer as career, many are trying to get their share in the pie. Lately I've met a number of developers who have worked for more than one/two years in developing PHP applications in various companies and they consider themselves as "senior" developers.

Key things to keep an eye out for are the "more talk, less code" they tend to do and the lack of dedication to the tasks at hand. These bad developers then follow up with the typical blame to the junior developers, noting that it was them being difficult that caused all of the "real" problems.

0 comments voice your opinion now!
beware senior developer career interview negative


Felix Geisendorfer's Blog:
False == 0, or not?
August 14, 2007 @ 08:45:00

Felix Geisendorfer has come across something interesting in his coding - an issue where false might not be false in the right situation.

So far I've always thought false would evaluate to 0 when used in a computational context. Turns out that this isn't always the case.

His code example tries to check is a false value is greater than or equal to a negative number. The result, however (despite the thinking that false is a zero value) turns out to be false.

I randomly stumbled upon this when arguing with Mariano today if setting Model::recursive to 'false' has the same effect as setting it to '-1'. Turns out that cake uses a statement like this: if ($recursive > -1) in the core which in turn makes -1 and false do exactly the same thing.
0 comments voice your opinion now!
false zero evaluate compare negative false zero evaluate compare negative


Stefan Esser's Blog:
Suhosin Extension 0.9.17 released
March 05, 2007 @ 12:57:00

Stefan Esser has released the latest version of his Suhosin security patch for PHP:

Yesterday I released Suhosin 0.9.17 in response to a bug report by Ilia Alshanetsky and some crash problems with PHP 4 that were reported during the last weeks.

The issue dealt with a method to "bypass the hard_memory_limit of Suhosin due to a bug in PHP" that could result in memory consumption up into the gigabyte range for a single script. The patch takes care of the issue by not allowing negative memory_limit settings, preventing the problem from happening.

0 comments voice your opinion now!
suhosin extension release memorylimit bug crash problem negative suhosin extension release memorylimit bug crash problem negative


Pádraic Brady's Blog:
Filter Extension Issues - A Storm in a Teacup?
November 10, 2006 @ 11:23:00

Responding to the recent comments about the filter extension included in recent PHP 5 releases from other members of the community, Pádraic Brady has posted comments on the matter including his experience with the extension and his worry about the other comments tarnishing the extension's reputation.

Personally I haven't tested ext/filter. I should no doubt be shot like a rabid dog for daring to post about this for that reason alone. Commenting idly without any knowledge of an extension is obviously illegal somewhere, possibly China.

He notes that some of the comments (the more inflammatory ones) were a bit out of place, and that feedback about issues has its place - not in major public view. He worries that the negative comments will cast a negative shadow on the extension and that the "back and forth" that's a result of it only serves to cause more trouble than it's worth.

3 comments voice your opinion now!
extension filter comments storm teacup negative extension filter comments storm teacup negative


PHPit.net:
No more spam; Akismet and PHP to the rescue!
May 22, 2006 @ 05:57:31

If you're tired of spam comments or people flooding your PHP application with junk text and links, you'll definitely want to check out this new tutorial from PHPit.net. It looks at how to integrate the Akismet anti-spam service into your application.

I've started using Akismet myself recently, and it has completely cut down all the spam I was receiving. Normally I'd get about 700 spam comments a day on my various blogs and websites (including PHPit), but since installing Akismet I've only received four. That means that approximately 99,5% is being caught by Akismet, which is an extremely good rate, and what's even better is that Akismet hasn't caught one good spam comment (no positives). Sounds pretty good, right?

In this article you'll learn how to use the Akismet anti-spam service to prevent any spam from being added to your PHP website. Live examples and demo's are included.

To start off right, you need to know how the service works and what kind of methods you'll need to access it. They show a simple connection to the service as well as two functions to mark something as spam and to mark it as non-spam (or 'ham' as he calls it). He also links to their development page and to the WordPress plugin that performs the same action.

1 comment voice your opinion now!
spam block akismet connection positive negative spam block akismet connection positive negative



Community Events





Don't see your event here?
Let us know!


opinion install api zendserver deployment package release laravel symfony framework community library interview list language tips update series podcast introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework