Questions tagged [rules]

This tag is very broad, try being more specific by using tags relevant to your problem. Examples are "rule-engine" for rules engines, "url-rewriting"/"mod-rewrite" for rewrite rules or "form-validation" for validation rules. See the full wiki article for a more complete list.

Rules are used to describe a requirement for data or behavior in software.

If a more specific tag exists for the subject of your question, please use that tag to better contact experts familiar with that technology.

1666 questions
466
votes
9 answers

How do browser cookie domains work?

Due to weird domain/subdomain cookie issues that I'm getting, I'd like to know how browsers handle cookies. If they do it in different ways, it would also be nice to know the differences. In other words - when a browser receives a cookie, that…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
128
votes
7 answers

How to show all privileges from a user in oracle?

Can someone please tell me how to show all privileges/rules from a specific user in the sql-console?
destiny
  • 1,802
  • 3
  • 16
  • 18
68
votes
6 answers

Where can I find the rule definitions for "eslint:recommended"?

In a .eslintrc file, we can use: "extends": "eslint:recommended" to extend the recommended rules provided by eslint, and in the rule list, many of them are marked as "recommended". My question what is the exact rule definitions for them? I searched…
Freewind
  • 193,756
  • 157
  • 432
  • 708
59
votes
3 answers

Why eslint consider JSX or some react @types undefined, since upgrade typescript-eslint/parser to version 4.0.0

The context is pretty big project built with ReactJs, based on eslint rules, with this eslint configuration const DONT_WARN_CI = process.env.NODE_ENV === 'production' ? 0 : 1 module.exports = { extends: [ 'eslint:recommended', …
axel
  • 3,778
  • 4
  • 45
  • 72
44
votes
64 answers

I am compiling a rules of programming mindset for my team: What are yours?

I have been working on a list for a while that helps me share the why of programming approach and thought as much as how to do something. For this, I wanted to build a list of things that are: best practice, best thought, best approach... that…
Jas Panesar
  • 6,597
  • 3
  • 36
  • 47
43
votes
1 answer

List of C++ name resolution (and overloading) rules

Where I can find a list of the rules that a C++ compliant compiler must apply in order to perform names resolution (including overloading)? I'd like something like a natural-language algorithm or flow chart. C++ standard of course has this set of…
user781847
43
votes
1 answer

Makefile with multiples rules sharing same recipe

I'd like to know if it's possible to write a Makefile with several rules, each one defining its own prerequisites and executing all of them the same recipe without duplicating the recipe. Example: TARGETS= file1 file2 file3 all: $(TARGETS) file1:…
superruzafa
  • 701
  • 1
  • 7
  • 10
42
votes
4 answers

What are PostgreSQL RULEs good for?

Question I often see it stated that rules should be avoided and triggers used instead. I can see the danger in the rule system, but certainly there are valid uses for rules, right? What are they? I'm asking this out of general interest; I'm not very…
40
votes
6 answers

C# - StyleCop - SA1121: UseBuiltInTypeAlias - Readability Rules

Not found it in StyleCop Help Manual, on SO and Google so here it is ;) During StyleCop use I have a warning: SA1121 - UseBuiltInTypeAlias - Readability Rules The code uses one of the basic C# types, but does not use the built-in alias for…
binball
  • 2,255
  • 4
  • 30
  • 34
37
votes
3 answers

Why should i use Drools?

I am no Drools expert. I have some familiarity with it though, by experimenting with it. I am unable to appreciate, why would i need it. My Typical Applications are Business Web Applications. Yes they do have some amount of Rules. But those are…
Jasper
  • 8,440
  • 31
  • 92
  • 133
36
votes
2 answers

I need my Debian rules file to simply copy files to it's target

I have a large project where we have the following files: A few 3rd party pre-compiled binaries Our own in-house binaries collection of Ruby scripts A sizable Ruby on Rails project This product will be installed on appliance hardware that my…
Chip Castle
  • 2,132
  • 3
  • 20
  • 34
32
votes
1 answer

Perplexed by how this code is processed by Haskell's Layout facility

Whilst browsing https://wiki.haskell.org/IO_inside, I encountered the following commentary and code ... "Moreover, Haskell layout rules allow us to use the following layout: main = do a <- readLn if (a>=0) then return () else…
memexor
  • 323
  • 2
  • 6
30
votes
1 answer

Python Rule Based Engine

I am looking to design a system that will essentially need to make decisions based on input. The input will be a person. class Person: def __init__(self, name, age, sex, weight, height, nationality): self.name = name self.age =…
28
votes
5 answers

How to Set a Outlook rule to classify email received by BCC?

I am in diff distribution list like A , B , C There are a lot of email BCC to A , B ,C I want to setup rules that "Move all mail bcc to specific Distribution list to specific folder " It seems that no rules on "BCC" ,
Shawn Zhang
  • 1,680
  • 1
  • 12
  • 21
27
votes
3 answers

Warning Unexpected unnamed function func-names under, ESLint rule

My eslint version is 4.18.2, it would give a warning like this: Unexpected unnamed function Expected an assignment or function call and instead saw an expression When defining functions in such a way: const farmerIds = a.reduce((function…
DZS
  • 337
  • 1
  • 4
  • 13
1
2 3
99 100