naming

First time with linked lists - how do I name objects for insertion

一个人想着一个人 提交于 2019-12-12 04:33:38
问题 Ok, Dumb question time: Usually with an array I have an object name: object[index] ...and if I have many of them then the index is what distinguishes each object from each other, hopefully, and usually in my case the index has a connection of to the reality of whatever the object is representing so I don't have to go hunting - the third one is the third one... Now I have a job that requires a linked list as kind of queue (part of an LRU cache) - I just hit a question: I'm about to declare the

Database name restrictions

跟風遠走 提交于 2019-12-12 03:15:36
问题 What I wonder what are the database, table, and column naming restrictions in databases? (MySQL, MSSQL, Oracle, etc.) To give an example: database_name columnName TableName column_1 table.name we can use the symbol "_" and also there no problem with numbers, etc. but we can not use "." when we are naming. 回答1: The rules for the format of regular identifiers depend on the database compatibility level. This level can be set by using ALTER DATABASE . When the compatibility level is 100 , the

Suggest a good method name for “running year” [closed]

前提是你 提交于 2019-12-12 03:06:15
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . Please help to come with a nice name for a method. Actually it is a scope that defines limit on date. This limit is from today and 365 days to the past, to the same day in past basically. So this is kind of rolling year I would say. This method is currently named #in_last

Number of hexagons and position of hexagons saved in .plist file. How can I retrieve the first item and assign it to a CCSprite?

ぃ、小莉子 提交于 2019-12-11 15:37:11
问题 This is the plist file whith a dictionary that contains the position of the hexagons. The position of the hexagons is an array where another dictionary for x and y value for the position of the hexagon is stored. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>level1</key> <dict> <key>hexposition</key> <array> <dict> <key>xVal</key> <integer>105</integer> <key>yVal<

How should I name a header file designed for one structure

我是研究僧i 提交于 2019-12-11 14:29:43
问题 I have a structure called NDPlane , and I want to put it in its own file by following this answer. To avoid confusion as this just being an Objective-C interface for an NDPlane object, how should I name the file? ndplane.h , plane.h , or struct_NDPlane.h , etc... 来源: https://stackoverflow.com/questions/21343553/how-should-i-name-a-header-file-designed-for-one-structure

Android: capital letter in filename of xml file, and the rule of naming a xml file

萝らか妹 提交于 2019-12-11 12:41:26
问题 It's ok to use capital letter in java file name in android project, but captial letter is not allowed in xml file name. What is the profit of this design? I used to name xml file like this: activity_xxx . Is there any suggestion or rule in naming? 回答1: It seems to be no official answer to this question. Resources are defined automatically in R.java. As an example, if you have a layout named activity_test then it will generate public static final int activity_test=0x7f040034; in R.java. That

Is there a specific name for the node that coresponds to a subtree?

核能气质少年 提交于 2019-12-11 12:33:14
问题 I'm designing a web site navigation hierarchy. It's a tree of nodes. Nodes represent web pages. Some nodes on the tree are special. I need a name for them. There are multiple such nodes. Each is the "root" of a sub-tree with pages that have a distinct logo, style sheet, or layout. Think of different departments. site map with color-coded sub-trees http://img518.imageshack.us/img518/153/subtreesfe1.gif What should I name this type of node? 回答1: How about Root (node with children, but no parent

What are these routing styles called in a web application?

本秂侑毒 提交于 2019-12-11 10:35:22
问题 What do you call routing that maps one URL directly to a file? Example: http://localhost/directory/file.php => /var/www/apache/htdocs/directory/file.php What do you call routing like one on https://github.com/nikic/FastRoute? Example: http://localhost/directory/file => request actually goes to a single index.php file, which then loads routing files or tables and loads appropriate class as defined in the routing table. 回答1: What do you call routing that maps one URL directly to a file? I would

Why is programming interface to database called driver?

不问归期 提交于 2019-12-11 06:46:16
问题 When writing an application which updates or queries a database, we use something called a database driver (e.g. a JDBC driver). I wonder why it is called a driver instead of a library? Is libpq a driver too? 回答1: To quote the Wikipedia article you linked to: In computing, a device driver is a computer program that operates or controls a particular type of device that is attached to a computer. The analogy here is that a database is an external device that the client computer "controls", by

Suggest class names for an Event Booking system

别等时光非礼了梦想. 提交于 2019-12-11 05:26:15
问题 I'm writing an Event Booking system in C#, which is vexing me greatly because "event" and "delegate" are reserved words. "Delegate" I've changed to "Attendee", but I can't think of an alternative name for the Event class (and instances thereof). The best I've come up with is "Happening", which is a little bit 1970s for my liking. Plus, the classes will be exposed via a customer API so I have to use professional terminology. Any suggestions would be most gratefully received. Edit: it is mainly