#code criticism needed, 0.12.x

1 messages · Page 1 of 1 (latest)

vagrant viper
#

build.zig

const std = @import("std");

pub fn build(b: *std.Build) !void {
    const target = b.standardTargetOptions(.{});

    // const optimize = std.builtin.OptimizeMode.ReleaseFast;
    const optimize = std.builtin.OptimizeMode.Debug;

    const run_step = b.step("run", "Run the demo");
    const test_step = b.step("test", "Run unit tests");

    const targs = [_]Targ{
        .{
            .name = "kod",
            .src

build.zig.zon

.{
    .name = "example packaging a zzplot and nanovg into an app",
    .version = "0.0.0",
    .dependencies = .{
        .zzplot_zon_name = .{
            .path = "../../aaa",
        },
    },
    .paths = .{""},
}
#

^ this reads -> "functions for exercise number 4"
I want to graph it for k=1,2,3

I should have not initialized a variable called two made a for loop mess
shouldve used functions there
couldnt really do it well for it to work with the library.

I am using zzplot module, example template for handling multiple windows of graphs at once. I will be dealing with them on regular basis in university, so it is crucial for me to make it as organized and professional of a proces as I can.

My first thought was to move two files togther, I thought it needed to be like that for assignment but turns out it doesnt, yay😃

Ive tried using gamedev plot module, but I gave up.

#

sorry i was doing it on phone, hard to paste stuff on this small device...

#

code criticism neededusing 0.12.x version from 2 weeks ago or so

#

code criticism needed, using 0.12.x version from 2 weeks ago or so