python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Portably check whether a file is readable
I'm asking the cross-platform version of this question:
C++: How to check if a file/directory is readable? (PHP equivalent: is_readable)
I have a filesystem::path of a file (let's ignore for simplicit...
ein supports Moderator Strike
Votes: 0
Answers: 0
CS50 Pset 2: Readability
I'm having issues returning the string as an integer through printf. Heres the error i keep getting, but if I just %i to %s it compiles and prints text. i need to print the number of letters in a stri...
npandolfi
Votes: 0
Answers: 1
How can I avoid repetitive code using reference types?
I've made a method to split address line into separate distinct categories like Region, City, Street and House which are represented by a single class. It follows relatively simple structure.
Address ...
Zeum Arbuzov
Votes: 0
Answers: 3
How to avoid nested chains of "if let"?
I'm wading through a codebase full of code like this:
if let Some(i) = func1() {
if let Some(j) = func2(i) {
if let Some(k) = func3(j) {
if let Some(result) = func4(k) {
...
GMA
Votes: 0
Answers: 5