Posts tagged ‘programming’

Visibility of a method

By default methods within a class in Ruby is PUBLIC. But as we know, ruby supports meta programming and hence a new/updated code can be generated on fly during the runtime.
here is a way to make the public class methods to private.

class Myclass
  def mymethod
    puts "I am public and wishing to be private!"
  end
  private :mymethod
  # OR also can be written as 
  # private_class_method :mymethod
end

obj = Myclass.new
obj.mymethod 
# private method `mymethod' called for # (NoMethodError)

Similary public :mymethod or public_class_method :mymethod

July 3, 2008 at 7:09 pm Leave a comment

Rank of programming languages & TIOBE

The TIOBE Programming Community index gives an indication of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. The popular search engines Google, MSN, Yahoo!, and YouTube are used to calculate the ratings. Observe that the TIOBE index is not about the best programming language or the language in which most lines of code have been written.

The index can be used to check whether your programming skills are still up to date or to make a strategic decision about what programming language should be adopted when starting to build a new software system. The definition of the TIOBE index can be found here

Rank
Mar 2008

Rank
Mar 2007

Delta in Position

Programming

Language

Ratings
Mar’08

Delta
Mar’07

Status

1

1

=

Java

20.651%

+2.61%

A

2

2

=

C

15.593%

-0.04%

A

3

5

++

Visual Basic

10.795%

+2.65%

A

4

4

=

PHP

10.138%

+0.68%

A

5

3

C++

9.776%

-1.33%

A

6

6

=

Perl

5.781%

-0.64%

A

7

7

=

Python

4.593%

+0.70%

A

8

9

+

C#

4.143%

+0.78%

A

9

12

+++

Delphi

2.697%

+0.94%

A

10

10

=

Ruby

2.661%

-0.11%

A

11

8

JavaScript

2.462%

-1.02%

A

12

14

++

D

1.107%

-0.16%

A

13

13

=

PL/SQL

0.747%

-0.80%

A

14

11

SAS

0.630%

-1.22%

A-

15

18

+++

COBOL

0.615%

-0.03%

A-

16

21

+++++

Pascal

0.554%

-0.01%

B

17

17

=

Ada

0.485%

-0.17%

B

18

16

Lisp/Scheme

0.434%

-0.29%

B

19

19

=

FoxPro/xBase

0.423%

-0.18%

B

20

25

+++++

Lua

0.385%

-0.01%

B

March 24, 2008 at 10:18 am Leave a comment


Categories

posts[:recent]

@@name = PRAYAS

This blog has more intention for my self reference@24×7. But if some search engine crawler directs you to my page, believe I may learn form your comments or feedback. Hence feel free to comment good or bad!
prayas2010@gmail.com

visitors[:since_Mar'08]

free web counter

Prayas@Nikon

A colored life

Chhweet Kidss

An independent world

More Photos

Feeds


Follow

Get every new post delivered to your Inbox.