Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] Java naming conventions for IRI vocabulary constants
  • From: "Bart Hanssens (BOSA)" <bart.hanssens@xxxxxxxxxxxx>
  • Date: Sat, 25 Feb 2023 12:28:51 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=bosa.fgov.be; dmarc=pass action=none header.from=bosa.fgov.be; dkim=pass header.d=bosa.fgov.be; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4gAQBxP/pNYX60P9jJHgfHsz7W2ZWtBDPF2kR5fQMz4=; b=aKDM7aq5IGN1Dbxfru5pED2PlKCnJ2i3j9mFYiYTSMEe28PkbLO7WVGfFYXhD737N7mI9ixNvqz0dUL7CbHBr34TUj8hDScnSppU5VzqhYcoxon77HmRPpFWJaA3QP31dbq6zxtUM98u9qy9KsDqA10mXPdITwJ/ViT7dLzTalovEA0Tp2XIg1x5h5H9RTKS3AbolOrM/cZwy/x2jxJe6s8ZLYrn7E9/qiuZ3N9EwNGpXGqGfPRH3X93RMZBmWZJAz3yNPas2/Tp887mqDH0pW6rNK8coM9RD8FBx+PaG/QQI+8rNC3BmKCwfIE9iGSt4EYYhOVgXBRy+T857yXrgA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jxe1d3k+wK2g1XfmaMr4XgSuQzBUri9wfUj7LzADrnhvWZ5HFUukAFbk0Yl6tOQj/d9IdlHmRdy7QL+cyMDTmMl8GWRu/DspJo5dZJlLrQy+FkU8Uxs3zkSlqIdmL+e3jY4fE5wTGu3GXxocfDzrt1T8aQH+LcAEOAMWqiODC4PZY/EC9z1rHtxDwJVx6RKDegBOJjiYuDv0O9eKfH3j0LQAGMq6rjoQs/uVA07wue/4KVmo5Kf9Lf91ux+57+Wuj3rzT2DXCwu7GC+sNkPsImEQVHUvGR2uoNB1adcRi5Voks+zpNsyWYDMCfO6z9IJvlnHJ6qWDN6U/hFmZQFWSA==
  • Delivered-to: rdf4j-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/rdf4j-dev/>
  • List-help: <mailto:rdf4j-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/rdf4j-dev>, <mailto:rdf4j-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHZSK+T287cDslILECGEzKtnJuBcK7fMcOAgABkN78=
  • Thread-topic: [rdf4j-dev] Java naming conventions for IRI vocabulary constants

Hi,

Also in favor of keeping java class names all uppercase.
CamelCase for property names etc is fine with me, no real preference for one style over the other...

Best regards

Bart

From: rdf4j-dev <rdf4j-dev-bounces@xxxxxxxxxxx> on behalf of Florian Kleedorfer <florian.kleedorfer@xxxxxxxxxx>
Sent: Saturday, February 25, 2023 7:22
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>; Jeen Broekstra <jeen@xxxxxxxxxxxx>
Subject: Re: [rdf4j-dev] Java naming conventions for IRI vocabulary constants
 
I like your first suggestion (CamelCase for constants) a lot. It allows you to use the term's localname 1:1 as the constant name and it works better in IDE autocompletion.

The second suggestion (CamelCase for class names) is less intuitive for me. I like all caps for vocabularies as it sets them apart from other classes, which helps finding them in large libraries.

Best
Florian
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Back to the top