Questions tagged [policy]

Best practice and style are at the core of every program; there is always a better way to do something. Policy helps programmers determine how something should be written.

Policy is a more or less ambiguous way of describing the best way to do something in programming. This can often be described as "best practice" when writing a program. This can pertain to the way a method returns a value, the way inheritance is structured, and the way to exit a loop, among other things, and it can vary from language to language.

Many companies often have their own sets of internal documentation referred to as Coding Standards that enforce policies which they determine to be valuable for maintenance and readability purposes of their code base.

You can learn more about policy and programming paradigm here.

1311 questions
11
votes
2 answers

Privacy Policy for the app on Google Play that doesn't collect any user data

I want to publish a simple app that doesn't collect any personal data. It is an offline game (noughts and crosses), that doesn't require any account, and stores only field state on the user's device. I don't have any server and don't transfer the…
Olga Climova
  • 381
  • 3
  • 13
11
votes
1 answer

Terraform: Pass a variable containing a list of strings to a jsonencode section

I want to set up a Terraform module that assigns a policy to an Azure resource according to Terraforms policy assignment example. In order to assign the allowed locations policy, I want to pass the list of allowed locations as a list of strings…
Peter
  • 113
  • 1
  • 1
  • 5
11
votes
3 answers

privacy policy Permission (S) :

please help me and solve my problem in my google developer account. Your app has an APK with version code 508008 that requests the following permission(s): …
ADIL TEL
  • 121
  • 1
  • 1
  • 3
11
votes
2 answers

When to prefer templated policy based design over non-templated inheritance based design

I am trying to understand the real requirement of the usage of templates for policy based design. Going through the new templated designs in C++ I found that policy based class design is a highly suggested way of design which allows you to 'plug-in'…
krips89
  • 1,683
  • 4
  • 17
  • 32
11
votes
1 answer

Why Doesn't My AWS S3 Bucket Policy Override My IAM Policy?

I have a user in my IAM account called "testuser" who has administrator privileges, like so: { "Statement": [ { "Effect": "Allow", "Action": "*", "Resource": "*" } ] } And then I have a policy on my S3 bucket that…
Dasmowenator
  • 5,505
  • 5
  • 36
  • 50
11
votes
4 answers

GCC's behaviour with std::async(std::launch::async) vs. Clang's behaviour

Does anyone has experience with the rather new std::async? We are currently implementing a parallel file parser, which reads a file chunk and passes this chunk to an async function. Using Clang (v3.0) this way works really fine with the default…
Bouncner
  • 2,124
  • 1
  • 19
  • 19
10
votes
3 answers

Policy rewrite-uri To Append Context Variable in Azure APIM

What is the approach to a simple append to the url of a context variable such as context.Variables["accountKey"] during a policy rewrite? The end result should be /accounts/232. I have success earlier in setting it set-variable (0.003 ms) { …
ΩmegaMan
  • 29,542
  • 12
  • 100
  • 122
10
votes
1 answer

How to clear browser's cache from server side?

I have to create a web application that deals with user's sensitive information. I need to immediately clear the browser's cache after user logs out since cached data would be vulnerable. Client's browser should be enforced to clear the Cache from…
Dunith Dhanushka
  • 4,139
  • 6
  • 26
  • 29
10
votes
3 answers

Three ways to print in Python -- when to use each?

According to Tim Peters, "There should be one-- and preferably only one --obvious way to do it." In Python, there appears to be three ways to print information: print('Hello World', end='') sys.stdout.write('Hello World') os.write(1, b'Hello…
Noctis Skytower
  • 21,433
  • 16
  • 79
  • 117
10
votes
1 answer

DBus SystemBus policies

I wrote a program that runs as session service through dbus. I wanted to make it run as system service (creating a dbus.SystemBus bus name) if executed by root (uid 0). I am trying to run for dbus.SystemBus what I currently run for dbus.SessionBus…
user1476859
  • 101
  • 1
  • 1
  • 3
9
votes
3 answers

Disable programatic access for AWS SSO user

is there a way to disable programmatic access for users Signing in using AWS SSO? Is it possible to control the programmatic and console access using polices or Groups?
George Jose
  • 166
  • 1
  • 1
  • 11
9
votes
2 answers

Google Play rejected app because of it's uploading users' Contact information

App removed from google play store due to the following reason: APK HAS A PROMINENT DISCLOSURE BUT THE DISCLOSURE IS NOT ADEQUATE Your app is uploading users' Contact information to https://domen.com without an adequate disclosure. Because of…
Vahe Gharibyan
  • 5,277
  • 4
  • 36
  • 47
9
votes
2 answers

Questions about the new Google policy (security metadata)

I have read the post titled 'Improving app security and performance on Google Play for years to come'. In that article, I would like to ask about below the sentence. "Additionally, in early 2018, Play will start adding a small amount of security…
9
votes
5 answers

Where to place java applet policy file?

I am working on an artificial intelligence project which is a logic game and aims two user connecting to the server on the network who acts as an Admin and then start to play one by one. In order to create connections, i have a server code which is…
makdere
  • 113
  • 1
  • 1
  • 5
9
votes
1 answer

Mixing policy-based design with CRTP in C++

I'm attempting to write a policy-based host class (i.e., a class that inherits from its template class), with a twist, where the policy class is also templated by the host class, so that it can access its types. One example where this might be…
Eitan
  • 862
  • 1
  • 7
  • 17
1 2
3
87 88