Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for djm‭

Type On... Excerpt Status Date
Edit Post #289864 Initial revision 7 months ago
Answer A: How does scoping work in R?
Unlike some other languages, all scoping in R is dynamic. When R evaluates an expression like `print(b)`, it looks up the function `print` in the current "environment", and later will look up the variable `b` in the same environment. Environments Environments are R objects that have two p...
(more)
7 months ago
Edit Post #289863 Initial revision 7 months ago
Question How does scoping work in R?
If I run `ls()` in R, it shows the variables (including functions) in my workspace. But there are other variables visible too, e.g. functions from packages like `ls` itself. And if I write a function myself, all of those are still visible as well as local variables from that function, but not varia...
(more)
7 months ago
Comment Post #278365 Another improvement: you say `<<-` "goes through all environments", but that's not quite right. It goes through the chain of parent environments to the function evaluation environment. If it finds an unlocked variable matching the name you are assigning to, it assigns there. (Package variables ar...
(more)
7 months ago
Comment Post #278365 You end up saying `assign()` is safer. You might want to put that first, and leave the `<<-` super-assignment operator for later. The fact that `<<-` assigns to the global environment when it doesn't find the variable in parent environments is more of a design flaw than a good thing.
(more)
7 months ago
Comment Post #289655 Does this have something to do with RStudio?
(more)
7 months ago
Edit Post #289861 Initial revision 7 months ago
Answer A: How do I properly render a quad in OpenGL using a GL_TRIANGLE_STRIP primitive?
It looks like your `vertexSizeBytes` stride variable doesn't include `uvSize`. To figure things like this out, use this kind of logic: The shape of the image isn't a square, so something is wrong with the position coordinates. Possible problems: bad offset, bad stride, bad size, bad order o...
(more)
7 months ago