Yii Framework Forum: Coding Ergonomics - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Coding Ergonomics Rate Topic: -----

#1 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 05 October 2012 - 06:20 AM

With the release of Adobe's Source Code Pro (a typeface that claims to make typing source code more pleasant) I think we should have a thread discussing things that make our day-to-day job as developers a bit smoother. Fonts, settings, themes, the like ...

As a starter: I'm using the Solarized Dark theme for my editors and consoles. I find it much less straining to the eye during extended hacking sessions. I am currently using the aforementioned Source Code Pro font on my Windows 7 machine. I've got to say that I needed to get used to it at first, but it really helps after a while. On my Fedora notebook I'm making use of the monospaced variant of Google's Droid fontset. In addition, I am using the infinality freetype patches for improved font rendering (I find that essential with a limited display).
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#2 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,166
  • Joined: 05-January 12
  • Location:Morocco

Posted 05 October 2012 - 06:53 AM

I'm still using… Courrier New even on OS X, I haven't accustomed to the included Menlo, Andale Mono, or Monaco, which are nice the three of them. And I code on white background, and lowest screen brightness.

I guess the font family is not the only criteria: I find my 13,3" MBP screen is more comfortable (brightness and font smoothness) than my XP's HP 17". Go figure. (Yes, the HP is obviously older).
0

#3 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,385
  • Joined: 17-January 09
  • Location:Russia

Posted 05 October 2012 - 09:49 AM

Using PhpStorm with almost default black-on-white theme. Windows 7, font is Consolas (haven't found better one yet).
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 05 October 2012 - 11:47 AM

I am using the default (I guess) color theme in Aptana:

Attached File  aptanacolors.jpg (202.31K)
Number of downloads: 31

Haven't bothered to change any font settings - maybe I should?
"Less noise - more signal"
0

#5 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,385
  • Joined: 17-January 09
  • Location:Russia

Posted 05 October 2012 - 01:44 PM

What's the goal of having dark code while all panels are like flashlights? Try consolas.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#6 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 05 October 2012 - 03:00 PM

My editor screen Attached File  ide.png (83.12K)
Number of downloads: 54
0

#7 User is offline   Rodrigo Coelho 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 665
  • Joined: 05-August 10
  • Location:Rio de Janeiro, Brazil

Posted 05 October 2012 - 03:15 PM

I feel very comfortable in NetBeans with the default configuration.
This week I started experimenting with PhpStorm and it felt bad on the eyes.

Thanks for your recommendations. I'll try these fonts there.
0

#8 User is offline   nkd 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 49
  • Joined: 28-September 12

Posted 05 October 2012 - 04:56 PM

I started using netbeans and I changed to phpstorm (I hated that the tab reorder in netbeans is very laggy). I am using right now the Monokai theme, and because of the suggestion made in this topic I changed the font to Consolas (from the default Monaco). I am liking it very much!
Attached File  screenshot.jpg (153.01K)
Number of downloads: 22
0

#9 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 06 October 2012 - 06:07 AM

View Postqiang, on 05 October 2012 - 03:00 PM, said:

My editor screen Attachment ide.png

I see no classes or filenames with C-prefix, yet the structure looks very familiar. Are we looking at Yii2 code here?
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#10 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,385
  • Joined: 17-January 09
  • Location:Russia

Posted 06 October 2012 - 10:49 AM

He-he, yeah, that's Yii2 in progress.

qiang, have you tried enabling cleartype and using cleartype-optimized fonts such as Consolas? I've spent lots of time without it and when I've finally turned it on my eyes felt better.

nkd, and again I don't see why it's good when code is on black but panels are still very bright.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#11 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 06 October 2012 - 11:05 AM

View Postsamdark, on 06 October 2012 - 10:49 AM, said:

He-he, yeah, that's Yii2 in progress.

Interesting. So if we want to see more of Yii2 before the alpha gets released we just need to trick the core devs into posting more screenshots of their IDEs? :lol:
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
1

#12 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,385
  • Joined: 17-January 09
  • Location:Russia

Posted 06 October 2012 - 11:09 AM

You can check our gists as well https://gist.github.com/2835927
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#13 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 06 October 2012 - 11:25 AM

But that's not as much fun :P Not to mention that those gists do not necessarily reflect the current state of development.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#14 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 October 2012 - 11:36 AM

View Postsamdark, on 06 October 2012 - 10:49 AM, said:

qiang, have you tried enabling cleartype and using cleartype-optimized fonts such as Consolas? I've spent lots of time without it and when I've finally turned it on my eyes felt better.


Yeah, but that doesn't help with Java - that screenshot does look a bit like Netbeans or other Java-based IDE.
That's a royal pain in the rearside.
No matter how much cleartype you set for your window manager, it doesn't apply to Java which has it's very own font rendering engine. :(
"Less noise - more signal"
0

#15 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 06 October 2012 - 11:56 AM

@samdark: I'm using Monaco TTF (it is shipped with Mac OS). My screenshot was taken through RDP, so the font looks very edgy. I was using Consolas before changing to Monaco.
0

#16 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,875
  • Joined: 04-October 08
  • Location:DC, USA

Posted 06 October 2012 - 12:00 PM

@jacmoe: I'm using PhpStorm with some UI customization.

I'm gradually moving towards Mac OS. I found my productivity improves a lot once I master a lot of keyboard shortcuts, and these IDE's do help a lot.
1

#17 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 October 2012 - 01:04 PM

Finally - the font rendering problems in Netbeans has been solved! :lol:

In <netbeans>/etc/netbeans.conf, I append those options to 'netbeans_default_options' :

J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on -J-Dorg.netbeans.editor.aa.extra.hints=true


Now, the font rendering is acceptable!

And, if you want a different color scheme then here's some alternatives:

Zenburn:
http://netbeans.org/...2-07/message/23

Solarized:
https://github.com/f...olors-solarized

Oblivion-revival and Monokai:
http://codesleepshre...al-and-monokai/

Attached File(s)


"Less noise - more signal"
0

#18 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 October 2012 - 01:07 PM

View Postsamdark, on 05 October 2012 - 01:44 PM, said:

What's the goal of having dark code while all panels are like flashlights? Try consolas.

Yeah, I think I'll try with Solarized. :)
I am old and my eyes needs less contrast - hence me favoring dark color schemes.
"Less noise - more signal"
0

#19 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 06 October 2012 - 01:23 PM

Solarized Light:

Attached File  netbeansSolarizedLight.png (90.24K)
Number of downloads: 16
"Less noise - more signal"
0

#20 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 06 October 2012 - 01:24 PM

I've had a closer look at this Monaco font now. I don't think I'd want to code with that: For my liking, it has a bizarre scale, effectively wasting more vertical space than needed and making it a bit hard to read.

By the way, there is a nice round-up of coding fonts over at codinghorror.com.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users