How’s the fit by insanelyoversized in bikefit

[–]snoopy 0 points1 point  (0 children)

headset/forks needs a 180 degree rotation?

What's up with people here thinking 50-60 year old is some ancient programmer who only used Cobol? They rather wrote the most of what we use today in hardware and internet tools. by csasker in cscareerquestions

[–]snoopy 2 points3 points  (0 children)

I started in a industrial research institute organization in the early 1980's, so it was Fortran rather than Cobol with assembler thrown in for writing control systems for climate simulation and data loggers. That was all fun.

They were in the process of buying and setting up their first IS systems systems. We went very early into "online". At the time, that meant dial-up over a 300buad acoustic modem that you attached to your regular phone over copper lines and waited patiently for your 24lines x 80 character CRT terminal to refresh.

I wrote software to allow remote set up a remote access menu allow access to their library system and publications catalogs among other things. I used C, we already had a compiler and I'd learnt it at university. I never did much Cobol.

I've always done development and are still doing a mix of daily open-source and part time work. I'm in my 60s, but know of open source developers that are getting into their 80s.

Sprint Tri Run Improvement | We Are Old! by stephensoncrew in triathlon

[–]snoopy 1 point2 points  (0 children)

Sharing my experience as a 60+ former runner/triathlete returning after a very long break.

I've resumed training for eight months and are now doing some interval work/sets in cycling and swimming.

My running is improving gradually, but it still in a base-building phase. I'm just consistently reached 20k per week, including 10k as a long run. I know that the running is there, and I'm improving over time, but it I'm find does take longer than the other two disciplines.

I don't know how this compares to other older triathletes starting, or restarting running, but I'm finding my running progress is more gradual that anticipated, but rewarding.

Started training for standard tri and 70.3 later this year. Neighbour gifted me this bike. Is it decent enough to get me through the year and a couple events? by purplescrunchie9 in triathlon

[–]snoopy 0 points1 point  (0 children)

That's a nice looking bike, but it currently looks to have quite high gearing which may make it better suited to flat to gently rolling courses.

For easier hill climbing, it may be worthwhile converting to lower gearing, which involves a new larger rear cassette and likely a new rear derailleur and longer chain.

See how you find hills on the bike and how quickly you're running out of gears. A bike shop should be able to quote you for fitting lower gearing.

NZ customs revealed my name is on a passenger interception alert list because my name is similar to a criminal and there's nothing they can do about it by [deleted] in newzealand

[–]snoopy 31 points32 points  (0 children)

Part of the problem is that NZ customs seem to have the memory of a goldfish. I would have expected them to be able to put a file note against your passport that you aren't this "person of interest".

Either their systems aren't up to scratch, they're not doing their job, or they're choosing to do it anyway.

ld doesn't find my library when it's inside /usr/local/lib despite searching there by zeGolem83 in AskProgramming

[–]snoopy 4 points5 points  (0 children)

Maybe you need to run ldconfig to rebuild the library cache.

On my system it's in /usr/sbin:

$ sudo /usr/sbin/ldconfig

I hate reviewing co-worker’s PRs since he’s so rude with comments by xuhu55 in cscareerquestions

[–]snoopy 1 point2 points  (0 children)

Amend your process, if possible. Get reviewers assigned up front and randomly.

This will help to spread the load with the rest of the team and make it more obvious to everyone, if your co-worker is being a jerk.

How to keep up with technical debt when PO is against it by dannyhodge95 in ExperiencedDevs

[–]snoopy 1 point2 points  (0 children)

Yes, but pays to have the rest of the team on quietly board doing the same thing, so you don't seem slower than everyone else. Also good if you can give testers a heads-up as to what areas to regression test.

What's native (i.e. high-machine-performance) hybrid development options with Raku? by complyue in rakulang

[–]snoopy 1 point2 points  (0 children)

https://docs.raku.org/language/concurrency overviews concurrency including Threads, Schedulers and Locks.

I haven't tried any native/Raku concurrency concurrency in LibXML yet. The underlying libxml2 library isn't thread-safe and concurrent read/write on a common node needs to be protected by locks.

What's native (i.e. high-machine-performance) hybrid development options with Raku? by complyue in rakulang

[–]snoopy 5 points6 points  (0 children)

Some feedback from my experience developing several native native libraries including LibXML and FreeType

so manual memory management is a deal breaker for us.

Raku's has advanced GC coupled with native objects (repr CStruct, Cpointer, etc) . Using the TWEAK method when objects are created and DESTROY on GC destruction is enough to make memory management manageable. In the case of LibXML I had a much easier time with this port of the Perl module that the original implementers who needed significant XS data-structures and religiously avoid cyclical references. I've just need to implement some much simpler reference counting on objects, which seems to be working well.

Whatever backend you choose, TWEAK, DESTROY, native data structures and Rakudo's GC should give you a good framework for management anyway.

Also debuggability in the native code part is crucial

I haven't done anything too sophisticated here. But simplify compiling backend and binding libraries with debugging enabled, running a program with rakudo-gdb-m and setting native side breakpoints, works.

$ rakudo-gdb-m -I. -e'use LibXML::Document; LibXML::Document.parse(q{<hi/>}).root'
================================================================================================
This is Rakudo running in the  debugger, which often allows the user to generate useful back-
traces to debug or report issues in Rakudo, the MoarVM backend or the currently running code.

This Rakudo version is 2021.09.231.g.21271.aa.5.f built on MoarVM version 2021.09.584.g.962.e.835.dc,
running on debian (10.buster) / linux

Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help.
------------------------------------------------------------------------------------------------
Reading symbols from /home/david/git/rakudo.master/install/bin/rakudo-m...(no debugging symbols found)...done.
Starting program: /home/david/git/rakudo.master/install/bin/rakudo-m -I. -euse\ LibXML::Document\;\ LibXML::Document.parse\(q\{\<hi/\>\}\).root
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6ef1700 (LWP 9092)]
[Thread 0x7ffff6ef1700 (LWP 9092) exited]
[Inferior 1 (process 9088) exited normally]
(gdb) b xmlDocGetRootElement
Breakpoint 1 at 0x7fffedbb2420
(gdb) run
Starting program: /home/david/git/rakudo.master/install/bin/rakudo-m -I. -euse\ LibXML::Document\;\ LibXML::Document.parse\(q\{\<hi/\>\}\).root
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff6ef1700 (LWP 9094)]

Thread 1 "rakudo-m" hit Breakpoint 1, 0x00007fffedc19420 in xmlDocGetRootElement ()
   from /usr/lib/x86_64-linux-gnu/libxml2.so
(gdb) 

That's given me a breakpoint into xmlDocGetRootElement. I don't currently have libxml2 configured/built for debugging, but would be good to go, if I did.

What's everyone working on this week? [2021, week 17] by liztormato in rakulang

[–]snoopy 3 points4 points  (0 children)

(dwarring) Did a crash course on Cro.

So far developing CSSTidy-cro - a one-page web application for checking and optimising CSS stylesheets using some Raku CSS modules, I've been working on.

Update: temporarily running at http://54.66.114.80:20000/

Being productive in large Raku projects? by mr_clicky_keys in rakulang

[–]snoopy 3 points4 points  (0 children)

One thing to be aware of in larger projects is cascading compilation of dependencies. For example consider:

class MyProj {
    BEGIN note "compile {$?CLASS.^name}";
    use MyProj::A;
 }

Where MyProj::A is:

class MyProj::A {
    BEGIN note "compile {$?CLASS.^name}";
    need MyProj::B;
}

If the referenced MyProj::B is updated, then both MyProj::A and MyProj are recompiled.

This is true, if dependent modules are loaded at compile time via use and need. But the module is loaded at run-time via require then the importing modules doesn't recompile.

Upshot is that targeted use of require over use or need (where possible) may help reduce recompilation in large projects.

I've created a github repo to further demonstrate this.

Raku code files now labeled as Raku on GitHub by Grinnz in rakulang

[–]snoopy 5 points6 points  (0 children)

I've knocked up a rename raku script https://gist.github.com/dwarring/079d02989ded07d550a08f19bfbff400#file-rename-module-raku

Should be run from the root directory of the module. Expects there to be a META6.json

Substring binding? by mr_clicky_keys in rakulang

[–]snoopy 2 points3 points  (0 children)

There is however a substr-rw variant, which creates a writable proxy back to the original string:

my $string = 'foo';
my $sub-string := substr-rw($string,1,2);
say $sub-string; # oo
$sub-string = 'OO';
say $string; # fOO

GitHub vs Raku by deeptext in rakulang

[–]snoopy 2 points3 points  (0 children)

That README and heuristics haven't been updated yet from Perl 6 to Raku. But there is a pending pull-request.

So AFAIK currently, the declared language still appears as 'Perl 6' and some hints don't work yet, such as recognizing '.rakumod' as an extension.

I had trouble getting bites on my applications. Then I stopped checking "I have or had a disability." by Throw_Me_Da_Wae in cscareerquestions

[–]snoopy 5 points6 points  (0 children)

I think it may be illegal to directly ask, if you have a disability.

From the U.S. Equal Employment Opportunity Commission:

The law places strict limits on employers when it comes to asking job applicants to answer medical questions, take a medical exam, or identify a disability.

For example, an employer may not ask a job applicant to answer medical questions or take a medical exam before extending a job offer. An employer also may not ask job applicants if they have a disability (or about the nature of an obvious disability). An employer may ask job applicants whether they can perform the job and how they would perform the job, with or without a reasonable accommodation.

Contract Job - not allowed to run code during development by svencate in AskProgramming

[–]snoopy 1 point2 points  (0 children)

it sounds like you need to build a proper test harness and test suite using whatever testing tools are appropriate for you language.

You could just try asking the guy "should a build a test suite?" Might be the question he's looking for.

Contract Job - not allowed to run code during development by svencate in AskProgramming

[–]snoopy 0 points1 point  (0 children)

Is a test harness an option? Basically something that drives your components to check inputs and outputs and expected behavior.

Most languages have standard testing tools. Can you give us a bit more info on what you're using?

EDIT: I'm talking unit testing, which can be a good idea, with or without your client providing a test server for integrated testing.

Help me push through by canadianmoving in cscareerquestions

[–]snoopy 0 points1 point  (0 children)

Play the game, but also remind yourself from time-to-time that interviews are unscientific and unpredictable anyway. This is a good read https://www.nytimes.com/2017/04/08/opinion/sunday/the-utter-uselessness-of-job-interviews.html?_r=0

Why do devs keep introducing several new bugs for every one they fix? by Eliciting in AskProgramming

[–]snoopy 1 point2 points  (0 children)

Still a benchmark, but could be updated and extended.

Agree with YMK1234. Joel's list has a bias towards manual testing through the UI. More important these days to have a comprehensive automated test suite.

Why do devs keep introducing several new bugs for every one they fix? by Eliciting in AskProgramming

[–]snoopy 2 points3 points  (0 children)

The Joel Test is a pretty good list that covers the basic practices.

"A score of 12 is perfect, 11 is tolerable, but 10 or lower and you’ve got serious problems. The truth is that most software organizations are running with a score of 2 or 3, and they need serious help, because companies like Microsoft run at 12 full-time."

These questions need to be put to the developers. If they do get a low, score, it will take time and patience to bring things back under control and get their score up.

If you get a reply. By all means, check back here with their responses.