#Any teachers here?

1 messages · Page 1 of 1 (latest)

open wyvern
#

Hi all, im a computer science teacher. Is there anyone here who teaches java using Moodle?
My question is specifically about this plugin called Code Runner. I want to create a question that requires to use java.io but to be able to work with files, you need to specify a path. Since Moodle runs on a server, I'm unsure what path should I use in terms for my code to pass test cases on Code Runner.

final stumpBOT
#

<@&987246399047479336> please have a look, thanks.

delicate ivy
#

Why io if nio exists pepe_sad

open wyvern
past lantern
#

@open wyvern Right, but Files.readString and Files.writeString are miles easier than BufferedReader nonsense

#

so its not about "io then nio" its about showing the easier api

#

but

#

okay looking into moodle

past lantern
#

I haven't found anything too clear

#

but

#

i think you can give them a temp file and read back from it

#

Since Moodle runs on a server, I'm unsure what path should I use in terms for my code to pass test cases on Code Runner
Basically there are 2 options

#

either it stops you from doing filesystem operations entirely

#

or it lets you and will clean up files later

#

if its the 1st...well harder problem

#

if its the 2nd, you just need to make them write a file and read it to validate before execution is done

#

specifics of that would be pretty tied into moodle

open wyvern
#

thank you so much for looking into this@past lantern !! 🙏 I'll try the second option.

open wyvern
#

your solution worked! thank you so much once again @past lantern !!!

delicate ivy
#

nice, remember to close this question thread using /help-thread close if your question got resolved

past lantern
#

i'm curious about the curriculum you are going to be using

#

we get a lot of questions from confused students here

delicate ivy
#

yeah actually good opportunity to talk about that

open wyvern
#

it's the national curriculum of Bulgaria. needs improvement for sure. I'm not Bulgarian. I'm an international teacher here. But I'm adapting as well. I'll definitely bring up the need for update in the curriculum

past lantern
#

is there a place i can get a reference for that?

#

need for update in the curriculum
Well, luckily for everyone but the people who write curriculums, it probably needs an overhaul

#
void main() {
    println("Hello, world");
}
#

hard to overstate how not needing to show people classes, static, or String[] args fundamentally shifts the order of teaching

open wyvern
#

well. the curriculum is all in Bulgarian.. there's a rough draft of its translation but definitely a mess. The person who translated it had no idea. there's a new bulgarian/english speaking faculty just started. im hoping to work together with her to make it make sense peepoG

past lantern
#

so bulgarian is fine

open wyvern
#

ok give me a sec

open wyvern
past lantern
#

so module 1 is a spreadsheets class and module 2 is a database class?

#

where did java get into the mix

delicate ivy
#

there is not a single mention of java wut

delicate ivy
#

cant access that link

open wyvern
delicate ivy
#

all good