Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suites: simplify code #201

Closed
wants to merge 1 commit into from
Closed

suites: simplify code #201

wants to merge 1 commit into from

Conversation

blaggacao
Copy link
Contributor

@blaggacao blaggacao commented Mar 18, 2021

If this code had been written this way, I wouldn't have opened #200 in
the first place. (perspective of a begginer nix-langer)

closes: #200 This is a pre-fix to PR #202

@Pacman99
Copy link
Member

This makes defining suites much more complex. You have to call profileMap at the front of every suite.

@blaggacao
Copy link
Contributor Author

blaggacao commented Mar 18, 2021

This makes defining suites much more complex. You have to call profileMap at the front of every suite.

But at least I do understand what I'm actually doing 😉

profileMap implements the receiving end of the fs layout contract. Now everything is clear by analogy / parallelism with allProfiles & allUsers.

bors bot added a commit that referenced this pull request Mar 18, 2021
@blaggacao
Copy link
Contributor Author

bors try

@bors
Copy link
Contributor

bors bot commented Mar 18, 2021

try

Already running a review

@blaggacao
Copy link
Contributor Author

bors try-

I think I still don't understand what this code does.

@Pacman99
Copy link
Member

profileMap implements the receiving end of the fs layout contract. Now everything is clear by analogy / parallelism with allProfiles & allUsers.

I think proper ux and a stable api is more important than an analogy being correct. And having users run a function on every suite manually, imo, is a step backwards. And if you just look down at the mapAttrs, you would see that profileMap is run at every function. So I really don't see what this PR accomplishes.

@blaggacao
Copy link
Contributor Author

blaggacao commented Mar 18, 2021

ping, made a change.

The commit message has the impetus (me in abstractable role of nix beginner trying to understand what's going on).

I think I still don't understand what this code does.

I think this is still true. ❓

@blaggacao blaggacao marked this pull request as draft March 18, 2021 23:38
If this code had been written this way, I wouldn't have opened divnix#200 in
the first place. (perspective of a begginer nix-langer)

closes: divnix#200
@blaggacao
Copy link
Contributor Author

bors try

bors bot added a commit that referenced this pull request Mar 18, 2021
@blaggacao

This comment has been minimized.

@blaggacao blaggacao closed this Mar 19, 2021
@bors
Copy link
Contributor

bors bot commented Mar 19, 2021

try

Timed out.

@blaggacao blaggacao deleted the da/fix-200 branch April 22, 2021 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

potential naming clash
2 participants