Masthash

#Programming

Jeremy Knope
1 hour ago

So I’m trying to test some network code in rust today, I was trying to use a VPS (Ubuntu) but damned if it just wedges somewhere. Futex wait I think? But of course it doesn’t do this on any local Ubuntu environments. Wtf! #Rust #programming #Linux

Come check out my latest C++ video. Leave a note in the comments letting me know how I did.

https://youtu.be/nyFHjKX1QG8

#LearnToCode #cpp #programmer #programming

Ruby Weekly
2 hours ago

002: Rails 7.1 Preps For CPKs & Async Records Destruction [Podcast] 🎙️

https://share.transistor.fm/s/6b134751

Discussions: https://discu.eu/q/https://share.transistor.fm/s/6b134751

#programming #rails #ruby #webdev

PHP Weekly
2 hours ago

From Freelancer Job Post to Web App: A Step-by-Step Guide Using Laravel

https://youtu.be/IyGqRoX7rA0

Discussions: https://discu.eu/q/https://youtu.be/IyGqRoX7rA0

#laravel #php #programming

Elendol
4 hours ago

Of course I am overengineering yet another project I won't finish. Why would you even ask? #programming

Leanpub
4 hours ago

End to End Testing in C#: Unit, Integration, and Acceptance Testing http://leanpub.com/set/leanpub/full-testing-csharp by EngineerSpock is the featured Track on the Leanpub homepage! https://leanpub.com #courses #programming

Leanpub
4 hours ago

Big Kotlin pack https://leanpub.com/b/kotlin_mm by Marcin Moskała is the featured bundle on the Leanpub homepage! https://leanpub.com #books #kotlin #programming #software

Sam Seltzer-Johnston
4 hours ago

#Rider has a couple handy shortcuts I didn't know existed that I will now be using every day:

Ctrl+Comma: brings up list of recent files to jump to, and you can just go straight into typing a name and it'll narrow the selection automatically

Ctrl+Shift+E: brings up a list of recent locations (i.e. 3-5 line snippets of files you recently visited) and similarly you can start typing to narrow down which snippet you want to revisit, which does a full text search of each snippet and their associated file name

#TIL #GameDev #programming

Hank G ☑️
5 hours ago
Having now been doing C, not C++, on and off again for the month of March I have to say that I fucking hate it more than I did when I was living it in it daily. There is a reason why I gravitate towards modern managed languages and leave C for the places where it is absolutely needed. C++ is better in some ways and way worse in others. Objective-C we won't get into. I'm just glad I can sit in Dart land for my projects of choice nowadays. #C #CPP #ObjectiveC #DartLang #programming
Vulkan
5 hours ago

Vulkan has a new sample on HPP timestamp queries that illustrates the usage of the C++ bindings of Vulkan provided by vulkan.hpp

https://github.com/KhronosGroup/Vulkan-Samples/tree/main/samples/api/hpp_timestamp_queries
#HPP #CPP #Programming

Webdev Weekly
6 hours ago

react.gg - the interactive way to master modern React (limited private beta begins this summer)

https://react.gg/

Discussions: https://discu.eu/q/https://react.gg/

#javascript #programming #reactjs #webdev

Erlang & Elixir Weekly
6 hours ago
patcm
6 hours ago

This is what the web application for GifMaker looks like.

Soon a docker container will be ready for you to deploy easily.

https://gitlab.com/mrpotatoqc9/giftmaker

#web #coding #python #docker #redis #flask #react #programming #foss #freesoftware #logiciellibre #opensource

Astra Kernel :verified:
7 hours ago

🐍+🦀 => Making Python 100x faster with less than 100 lines of Rust

https://ohadravid.github.io/posts/2023-03-rusty-python/

#rustlang #rust #python #programming

Pierre Palatin
8 hours ago

On Godot & Visual Basic (yes).

So, I caught up with https://retool.com/visual-basic/ . That's quite a nice history of Visual Basic, which origin is a lot more involved than I expected.

Worth reading, if only for nostalgia. For me, I have very good memories of Visual Basic. It was not my first programming tool, but I was still largely clueless at the time. And Visual Basic provided a well rounded environment, which was both a pleasure to use, all integrated and still quite powerful. Not that I had the skills to go into more advanced stuff at the time but still.

Obviously nowadays I have a much better picture, and I understand why people might not have that of a rosy picture of VB - but still, it provided an experience which was by itself enjoyable. And that is not something I've often encountered across the vast number of programming-related tools I've used over the years. Quite the contrary, I sometimes have the impression that it gets worse and worse.

Well, that is, until I've started playing with Godot. It offers a well integrated environment, incl. code editor, language and all the parts necessary to create games. Its philosophy is targeting the sweet spot between simplicity & enough features to be a solid Game engine. Not everything might be the most advanced stuff ever, but it is always well integrated and usable.

And Godot is so refreshing - it is a joy to use, like I remember the Visual Basic of my childhood. Except it comes up with modern features and a solid technical base. I'll probably never manage to create a game - I cannot design game loops to save my life - but that will be fun along the way :)

#godot #programming #visualbasic #godot4

Matt
8 hours ago

Hey Fedi, how do people name their Git branches?

#git #programming #coding

Kushal Das :python: :tor:
8 hours ago

#Programming is very easy. Programming & still having #secure things is a different story all together.

This shit I've been working on this week is just full of black fucking magic, holy fuck

spooky-action-at-a-distance.js

#programming #webdev #cursed

Jerry Orr
8 hours ago

Anyone know if there's a name for the file format #Apache uses for its config files? It's some weird mix of XML-like tags, space-delimited values, YAML/bash-style comments...

Is this a standard format of some sort? Or just Apache's own format?

#devops #programming #sysadmin

Excerpt from Apache's httpd.conf config file
clar fon
8 hours ago

I think that pre-1.0 #semver is a mistake

it comes from this mentality that version numbers are sacred and that bumping the major version number is only possible if your library hasn't passed an arbitrary "readiness" threshold

unless your library is outright broken or major functionality is missing, you should just make your version 1.0 and bump the major version if you change it

so what if the "good" version of your API is version 4 or 5? if people are using your library and relying on it, that's 1.0. a load of people (myself included) try and focus really hard on the presentation of their code and use the versions as a proxy for that. really, that doesn't matter at all. all you're doing by being pre-1.0 is removing the existence of micro versions, forcing every change to be at least a minor change

people even augment semver to add a fourth number for "build" or "release" because they feel that bumping the major version is just too much, and that the actual major version is the "PR version" and the second version number is actually the one where things break

version numbers are basically IDs; we don't care what number they actually are and mostly rely on comparison logic to determine when to bump them. so, it's better to stop treating everything like you can't bump the major version and just do it, and maybe keep the "epoch" or "PR version" separate, or not numbered at all

#SoftwareDevelopment #Programming

Marcel Gaida
8 hours ago

Got around to continuing some online courses on Python. In the exercise "Graph from links - Create a program that will create a graph or network from a series of links." - So I wrote a script that does just that - execute - enter a link to a website and it will create a scatter plot with all the links on that site. You can check out my version at the link below.

https://github.com/marcel-gaida/five_sugar/commit/2208f303ab7154d64731cda13a63db11946886e7

#elearning #education #programming #python #plotly

Jeremy Stephens
9 hours ago

Gotta love when you find a utility function that does exactly what you want, except for one situation. The function is complicated enough that reproducing it with the behavior you want is non-trivial. It's worse when the function comes from a compiled extension to a script-based language.

Is it worth it to patch and recompile the extension? How does that complicate your build process? How critical is the behavior that you need?

This is why things take longer than expected. #programming

Saustrup
9 hours ago

@koni Aaaaw, that reminds me of my two favorite books from when I was a teenager back in the early 90s. One was Peter Norton's Programmers Guide to the IBM PC, the other Ralph Brown's book of PC Interrupts (also available on Usenet, if I recall correctly). The Holy Grails of DOS programming. Pure gold! 😃

#peternorton #pc #programming #dos #ralphbrown #ibm

Cover of The Peter Norton Programmer's Guide to the IBM PC. Subtitled "The ultimate reference guide to the ENTIRE family of IBM personal computers"
Cover of the book "PC Interrupts - A programmer's reference to BIOS, DOS and third-party (interrupt) calls" by Ralf Brown and Jim Kyle.
Astra Kernel :verified:
9 hours ago

🪲 VSCode hack shows how supply chain attacks can extend to other software development tools

👉 Extensions are developed in Node.js
👉 Malicious npm packages to extensions
👉 Infected extensions & Auto update

https://www.reversinglabs.com/blog/vs-code-ide-hack-how-supply-chain-attacks-can-proliferate-between-developer-ecosystems

#vscode #infosec #programming #nodejs #npm

ozkriff🦀
10 hours ago

Not exactly fresh news but it turns out that @compiler_explorer got an amazing feature last year: ability to step through the individual LLVM optimization passes and see what exact effect it has on your code sample. Cool stuff! 🤯

Example: https://rust.godbolt.org/z/46P8MP3x1

#Programming #OpenSource #RustLang

An opened compiler explorer with many sub-windows: original code sample, its final asm form, long list of LLVM passes with one opened to see the diff
10 hours ago

"Duplication is far cheaper than the wrong abstraction."

- Sandi Metz

Amazing talk (from nearly 10 years ago!) https://www.youtube.com/watch?v=8bZh5LMaSmE

Also love that she admits to being 'boolean impaired' & argues code should pass 'the squint test' - narrow your eyes & see if the shape reveals too many nested conditionals...

#programming #code #refactoring

Ruby Weekly
10 hours ago

I've tried DragonRuby and I can admit it's not bad. What annoys me about it is that the engine framework has to be programmed entirely so that more complex functions can be scripted. So I had to script the architecture I'm used to from the Godot engine.

https://youtu.be/jrstjlWrnYs

Discussions: https://discu.eu/q/https://youtu.be/jrstjlWrnYs

#programming #ruby

Golang Weekly
10 hours ago
La malgranda feneko volas dormeti
10 hours ago

Question for the fediverse techy hive mind. What's the name for the variety of unit test engine where instead of simply writing specific (sumInts(1,5) equals 6) tests the idea is you give it patterns (sumInts if given two integers should return int1+int2) and then hits your code with hundreds or thousands of on the spot generated instances of the pattern? I know I saw a video but I'm drawing a total blank #programming

Mauve 👁💜
11 hours ago

Once again bringing folks attention to https://unit.land which is a live visual #programming environment using #JavaScript under the hood.

One thing I find interesting is that it's a lot more mobile friendly than others. I'm thinking it'll be easier to use on my steam deck than on a phone or tablet with the joysticks / buttons.

The docs recently got updated so it's a bit more approachable: https://github.com/samuelmtimbo/unit/tree/main/src/docs/start

The cool thing about #programming is that if you start out looking like the bottom left, on your 35th birthday the devil shows up and asks, “which way, western man?” and forces you to pick one of the other three.

Oh you're going to become a programmer? Pick your class

Top left: balding man in front of server with tie

Top right: unkempt long hair, beard

Bottom left: hipster looking ass here

Bottom right: trans girl thigh highs
IllusionOfMana
11 hours ago

I have 3 slots open for low poly commissions. I dont just do MegaMan Legends style shape language too!(See my previous work)

If you would like some 3D Pixels hmu via DM or over on Discord(illusionofmana#0402). Feel free to ask any questions!

#pixelart #3D #animation #lowpoly #gaming #gamedev #retro #art #artist #programming #fanart #mastoart #pribambase #3dart

Webdev Weekly
14 hours ago

Introducing Nori-Store: A Lightweight State Management Library for Web Applications

https://www.npmjs.com/package/nori-store

Discussions: https://discu.eu/q/https://www.npmjs.com/package/nori-store

#javascript #programming #webdev

Alvin Ashcraft 🐿️
17 hours ago

So, @ManningPublications is running a special sale for my birthday. Today, Mar 29 only, save 45% on all MEAPs—Early Access books. Read brand-new chapters as they land in your inbox.

http://bit.ly/3FZYbOh

#skilling #programming #LearnProgramming #learning #books #ebooks #ref #sale

Lobsters
17 hours ago
Alvin Ashcraft 🐿️
17 hours ago

How can I try to escape the disease-ridden hot-tubs known as the TEMP and Downloads directories? by Raymond Chen

#windows #cpp #windowsdev #programming

https://devblogs.microsoft.com/oldnewthing/20230328-00/?p=107978

Astra Kernel :verified:
20 hours ago

Rust is NOT a low level programming language

#rustlang #rust #programming

Webdev Weekly
22 hours ago

monoenv: better handling of multiple applications dotenv files in monorepos

https://github.com/omarahm3/monoenv

Discussions: https://discu.eu/q/https://github.com/omarahm3/monoenv

#javascript #programming #webdev

Webdev Weekly
1 day ago
Webdev Weekly
2 days ago
Rust Weekly
2 days ago

NIST added Rust to its list of “Safer Languages” as part of its Software Assurance Metrics and Tool Evaluation

https://www.nist.gov/itl/ssd/software-quality-group/safer-languages

Discussions: https://discu.eu/q/https://www.nist.gov/itl/ssd/software-quality-group/safer-languages

#programming #rustlang

Tobias Geyer
2 days ago

Assigning bugs to developers of a Java application and one person gets more tickets assigned than anyone else. After I expressed my surprise about that the response was:
"That person has their fingers in every JAR" 😂
#programming #humor

Astra Kernel :verified:
2 days ago

🦀 NIST(National Institute of Standards and Technology) added Rust to list of Safer languages list

https://www.nist.gov/itl/ssd/software-quality-group/safer-languages

#rustlang #rust #infosec #appsec #cpp #programming

"Rust has an ownership model that guarantees both memory safety and thread safety, at compile-time, without requiring a garbage collector. This allows users to write high-performance code while eliminating many bug classes. Though Rust does have an unsafe mode, its use is explicit, and only a narrow scope of actions is allowed. (14 Mar 2023)"
Golang Weekly
2 days ago

Coze: A cryptographic JSON messaging specification designed for human readability

https://github.com/Cyphrme/Coze

Discussions: https://discu.eu/q/https://github.com/Cyphrme/Coze

#compsci #cryptography #golang #programming #release #webdev

You don't need #ReactJS until your webpage changes. That's why it's called "React", it makes the #DOM *react* to changes in application state. If the state never changes, #React is unnecessary. #webDev #frameworks #web #dev #programming #frontend #JavaScript

ozkriff🦀
2 days ago

We've released #IntelliJRust #191 today! Highlights:

- Now the plugin shows parameter and chained method calls hints inside attribute procedural macro calls.
- LLDB debugger backend now shows the contents of references and pointers.
- A bunch of new Rust errors are detected by the plugin: mismatched members in trait impl, underscore expression in wrong place, etc.

https://intellij-rust.github.io/2023/03/27/changelog-191

#RustLang #OpenSource #Programming #JetBrains

LLDB debug session, the content of the vector is shown even for pointers or references to it.
Erlang & Elixir Weekly
2 days ago

On the way to achieve autonomous node communication Elixir | Hideki Takase | Code BEAM America 2022

https://youtu.be/Y4IASAU4Bjo

Discussions: https://discu.eu/q/https://youtu.be/Y4IASAU4Bjo

#elixir #programming

Webdev Weekly
3 days ago

Web Development recap for week 12/2023

https://discu.eu/weekly/webdev/2023/12/

#css #javascript #nodejs #programming #typescript #webassembly #webdev

Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium

Erlang & Elixir Weekly
3 days ago

Erlang & Elixir recap for week 12/2023

https://discu.eu/weekly/erlang/2023/12/

#elixir #erlang #programming

Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium

CrystalLanguage
3 days ago

Your chance to become a Crystal Influencer!!

Are you passionate about Crystal and want to elevate your interest in the language to take it to the local masses? Here is your chance to register your interests to become a Crystal Influencer, please submit the following form and we will reach out to you!

https://docs.google.com/forms/d/e/1FAIpQLSfQzxTKk2SlcuTmk7ytVOnO6k5UFqL3ltXJVVnrqDaIvRmgqQ/viewform

#CrystalLanguage #programming #community

I've always considered programming languages to be languages to communicate amongst humans (the computer doesn't care one bit what language it has to parse or interpret).

I was looking for material related to studying programming languages as natural languages, but couldn't find much besides people strongly arguing that programming languages are geared towards the computer and not humans.

Any less narrow-minded views out there?

#linguistics #programmingLanguages #languageDesign #programming

Webdev Weekly
3 days ago

I built a platform that generates CSS variables for your theme!

http://app.mirrorful.com

Discussions: https://discu.eu/q/http://app.mirrorful.com

#javascript #programming #webdev