hidden-features

Hidden features of Perl?

不打扰是莪最后的温柔 提交于 2019-11-27 05:43:10
What are some really useful but esoteric language features in Perl that you've actually been able to employ to do useful work? Guidelines: Try to limit answers to the Perl core and not CPAN Please give an example and a short description Hidden Features also found in other languages' Hidden Features: (These are all from Corion's answer ) C Duff's Device Portability and Standardness C# Quotes for whitespace delimited lists and strings Aliasable namespaces Java Static Initalizers JavaScript Functions are First Class citizens Block scope and closure Calling methods and accessors indirectly through

Hidden features of CSS [closed]

浪尽此生 提交于 2019-11-27 04:54:54
问题 I have definitely picked up some useful tips in the hidden features style questions concerning PHP and XHTML. So here is one to cover CSS. While easy to pick up, it takes a little while to learn about everything, their default behaviors, properties etc Here are some to start the ball @charset "UTF-8"; /* set the character set. must be first line as Gumbo points out in comments */ .element { /* takes precedence over other stylings */ display: block !important; /* mozilla .... rounded corners

Hidden Features of Visual Studio (2005-2010)?

情到浓时终转凉″ 提交于 2019-11-26 21:12:08
Visual Studio is such a massively big product that even after years of working with it I sometimes stumble upon a new/better way to do things or things I didn't even know were possible. For instance- Crtl + R , Ctrl + W to show white spaces. Essential for editing Python build scripts. Under "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\Text Editor" Create a String called Guides with the value "RGB(255,0,0), 80" to have a red line at column 80 in the text editor. What other hidden features have you stumbled upon? Make a selection with ALT pressed - selects a square of text instead of

Hidden features of C

回眸只為那壹抹淺笑 提交于 2019-11-26 21:12:06
I know there is a standard behind all C compiler implementations, so there should be no hidden features. Despite that, I am sure all C developers have hidden/secret tricks they use all the time. Function pointers. You can use a table of function pointers to implement, e.g., fast indirect-threaded code interpreters (FORTH) or byte-code dispatchers, or to simulate OO-like virtual methods. Then there are hidden gems in the standard library, such as qsort(),bsearch(), strpbrk(), strcspn() [the latter two being useful for implementing a strtok() replacement]. A misfeature of C is that signed

Hidden Features of PHP? [closed]

烂漫一生 提交于 2019-11-26 21:11:57
I know this sounds like a point-whoring question but let me explain where I'm coming from. Out of college I got a job at a PHP shop. I worked there for a year and a half and thought that I had learned all there was to learn about programming. Then I got a job as a one-man internal development shop at a sizable corporation where all the work was in C#. In my commitment to the position I started reading a ton of blogs and books and quickly realized how wrong I was to think I knew everything. I learned about unit testing, dependency injection and decorator patterns, the design principle of loose

Hidden Features of Erlang [closed]

蓝咒 提交于 2019-11-26 18:43:49
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not

Hidden features of Objective-C [closed]

不问归期 提交于 2019-11-26 18:42:11
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. Objective-C is getting wider use due

Hidden features of Ruby

旧时模样 提交于 2019-11-26 16:50:14
Continuing the "Hidden features of ..." meme, let's share the lesser-known but useful features of Ruby programming language. Try to limit this discussion with core Ruby, without any Ruby on Rails stuff. See also: Hidden features of C# Hidden features of Java Hidden features of JavaScript Hidden features of Ruby on Rails Hidden features of Python (Please, just one hidden feature per answer.) Thank you Farrel From Ruby 1.9 Proc#=== is an alias to Proc#call, which means Proc objects can be used in case statements like so: def multiple_of(factor) Proc.new{|product| product.modulo(factor).zero?}

Favorite Django Tips & Features?

帅比萌擦擦* 提交于 2019-11-26 16:50:07
Inspired by the question series 'Hidden features of ...', I am curious to hear about your favorite Django tips or lesser known but useful features you know of. Please, include only one tip per answer. Add Django version requirements if there are any. I'm just going to start with a tip from myself :) Use os.path.dirname() in settings.py to avoid hardcoded dirnames. Don't hardcode path's in your settings.py if you want to run your project in different locations. Use the following code in settings.py if your templates and static files are located within the Django project directory: # settings.py

Hidden Features of F#

橙三吉。 提交于 2019-11-26 15:00:26
问题 This is the unabashed attempt of a similar C# question. So what are your favorite F# hidden (or not) features? Most of the features I've used so far aren't exactly hidden but have been quite refreshing. Like how trivial it is to overload operators compared to say C# or VB.NET. And Async<T> has helped me shave off some real ugly code. I'm quite new to the language still so it'd be great to learn what other features are being used in the wild. 回答1: User defined numeric literals can be defined