Gergő Pintér, PhD
gergo.pinter@uni-corvinus.hu
def query_progress(user_id:int) -> float:
# establish connection
con= sqlite3.connect("data.db")
# build query
progress_query = f"""
SELECT
lesson / 50.0 AS progress
FROM activity
WHERE
user_id = {user_id} AND
result = 'success'
ORDER BY
lesson DESC
LIMIT 1
;
"""
# execute query
res =con.execute(progress_query)
progress=res.fetchone()[0]
return progress
every work product can and should be reviewed
source: What is Walkthrough in software testing? [2]
source: What is Technical review in software testing? [3]
type | formality | led by | effort | documentation |
---|---|---|---|---|
informal | not formal | noone | minimal | undocumented |
walkthrough | not formal1 | authors | very low | normal, fault-finding |
technical | less formal | trained moderator, not the author | moderate | more detailed |
inspection | most formal | trained moderator | high | thorough; based on standards, checklists |
based on: Code Review Guidelines for Humans [5]
the subject of the code review is not you, but your code
based on: Code Review Guidelines for Humans [5]
source: Code Review Guidelines for Humans [5]
formulate your feedback as expressing your personal thoughts
it’s hard to argue against personal feelings since they are subjective
source: Code Review Guidelines for Humans [5]
based on: Code Review Guidelines for Humans [5]
source: Code Review Guidelines for Humans [5]
based on: Code Review Guidelines for Humans [5]
source: Code Review Guidelines for Humans [5]
always ask yourself, if your feedback is true, necessary and kind
(from April Wensel [6] via [5])
source: Code Review Guidelines for Humans [5]
based on: Code Review Guidelines for Humans [5]
GH-33
(GitHub),
GL-33
(GitLab),source: How to Write a Git Commit Message [7]
source: [8]
#include <stdio.h>
main()
{
int a,b,c;
int count = 1;
for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\
TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\
NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\
HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\
T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\
Hq!WFs XDt!" [b+++21]; )
for(; a-- > 64 ; )
putchar ( ++c=='Z' ? c = c/ 9:33^b&1);
return 0;
}
#include "stdio.h"
int main (void) {
int a=10, b=0, c=10;
char* bits ="TFy!QJu ROo TNn(ROo)SLq SLq ULo+UHs UJq TNn*R\
Pn/QPbEWS_JSWQAIJO^NBELPeHBFHT}TnALVlBLOFAkHFOuFETpHCStHAU\
FAgcEAelclcn^r^r\\tZvYxXyT|S~Pn SPm SOn TNn ULo0ULo#ULo-WH\
q!WFs XDt!";
a = bits[b];
while (a != 0) {
a = bits[b];
b++;
while (a > 64) {
a--;
if (++c == 'Z') {
c /= 9;
putchar(c);
} else {
putchar(33 ^ (b & 0x01));
}
}
}
return 0;
}
a less
obfuscated version (with explanation)
by bta
CC BY-SA 2.5
Sometimes it can be somewhat formal.↩︎