Title: Remove examples if-then-else pattern · Issue #618 · googleapis/google-cloud-java · GitHub
Open Graph Title: Remove examples if-then-else pattern · Issue #618 · googleapis/google-cloud-java
X Title: Remove examples if-then-else pattern · Issue #618 · googleapis/google-cloud-java
Description: In bigquery example we have the following patttern: Table table = getTable(...); if (table == null) { // create table } else { // load data } in storage we have: Blob blob = getBlob(...); if (blob == null) { // create blob } else { // ge...
Open Graph Description: In bigquery example we have the following patttern: Table table = getTable(...); if (table == null) { // create table } else { // load data } in storage we have: Blob blob = getBlob(...); if (blob ...
X Description: In bigquery example we have the following patttern: Table table = getTable(...); if (table == null) { // create table } else { // load data } in storage we have: Blob blob = getBlob(...); if (blob ...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/618
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove examples if-then-else pattern","articleBody":"In bigquery example we have the following patttern:\n\n``` java\nTable table = getTable(...);\nif (table == null) {\n // create table\n} else {\n // load data\n}\n```\n\nin storage we have:\n\n``` java\nBlob blob = getBlob(...);\nif (blob == null) {\n // create blob\n} else {\n // get and update blob's content\n}\n```\n\nIn both cases we should remove the `else` branch and rather execute it after table/blob creation.\n\nAlso in datastore we do:\n\n``` java\nEntity entity = getEntity(...);\nif (entity = null) {\n // create entity\n} else {\n // update entity access type\n}\n```\n\n@ajkannan @aozarov @mderka Do you guys think we should remove the `else` branch also for datastore's example? It makes slightly less sense to me.\n","author":{"url":"https://github.com/mziccard","@type":"Person","name":"mziccard"},"datePublished":"2016-02-04T15:16:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/618/google-cloud-java/issues/618"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b469c377-3d42-b1df-7169-ecbfdb833ffb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D06:2422A3:956A68:CD14E8:6A4DD9DA |
| html-safe-nonce | b33d17cc61b273b643017548bf1409afac6199e0501a91d7aada45a67794875b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDA2OjI0MjJBMzo5NTZBNjg6Q0QxNEU4OjZBNEREOURBIiwidmlzaXRvcl9pZCI6Ijg5NjY1Mzk4NjYyODUxMzYzNDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5b658b2616765dafbdc6cf0f17642f18a6f16cdd29a7d95539efea1364594640 |
| hovercard-subject-tag | issue:131379044 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6e4c521e8352acb4b24695c85678e346ea97f6ae89becddcc31690dda9cdb04/googleapis/google-cloud-java/issues/618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6e4c521e8352acb4b24695c85678e346ea97f6ae89becddcc31690dda9cdb04/googleapis/google-cloud-java/issues/618 |
| og:image:alt | In bigquery example we have the following patttern: Table table = getTable(...); if (table == null) { // create table } else { // load data } in storage we have: Blob blob = getBlob(...); if (blob ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mziccard |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width