Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

coding-style

How do I get the index of an iterator of an std::vector?

by IT Nursery

I would prefer it – vec.begin() precisely for the opposite reason given by Naveen: so it wouldn’t compile if you change the vector … Read more

Tags c, coding-style, iterator

Alternatives for returning multiple values from a Python function [closed]

by IT Nursery

Named tuples were added in 2.6 for this purpose. Also see os.stat for a similar builtin example. >>> import collections >>> Point = … Read more

Tags coding-style, python, return, return-value

Are there any coding standards for JavaScript? [closed]

by IT Nursery

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, … Read more

Tags coding-style, javascript

Setting variable to NULL after free

by IT Nursery

In my company there is a coding rule that says, after freeing any memory, reset the variable to NULL. For example … void … Read more

Tags c, coding-style, free, heap-memory, malloc

How to name factory like methods?

by IT Nursery

I guess that most factory-like methods start with create. But why are they called “create”? Why not “make”, “produce”, “build”, “generate” or something … Read more

Tags coding-style, factory, methods, naming-conventions

Relational table naming convention [closed]

by IT Nursery

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be … Read more

Tags coding-style, database, database-design, naming-conventions, relational-database

String output: format or concat in C#?

by IT Nursery

Let’s say that you want to output or concat strings. Which of the following styles do you prefer? var p = new { … Read more

Tags c, coding-style, string, string.format

Why is it considered a bad practice to omit curly braces? [closed]

by IT Nursery

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, … Read more

Tags c, coding-style, java

Checking for NULL pointer in C/C++ [closed]

by IT Nursery

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be … Read more

Tags c, coding-style, if-statement, null

pythonic way to do something N times without an index variable?

by IT Nursery

Every day I love python more and more. Today, I was writing some code like: for i in xrange(N): do_something() I had to … Read more

Tags coding-style, for-loop, python
Older posts
Page1 Page2 … Page7 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery